Read the statement by Michael Teeuw here.
[MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
-
Hello evroom,
our contribution has overlapped. The stream with BucksBunny works, I deleted it now from the config.
I would like to follow your suggestion and will look for the description next. -
Does this work by itself.
omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0
-
Hello sdetweil,
sorry i am new here. Should i copy this line direkt in config.js ? where exactly?
-
@Number_5
Command-line.
Better deactivate the module before (this in the config.js):module: "MMM-RTSPStream", disabled: true, etc
-
@Number_5 that’s the command the module is trying to execute ( from the log)
Open a command prompt, cut/paste that and see if it works
-
Hello ,
first I deactivated the config module.pi@raspberrypi:~/MagicMirror/config $ omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0
-bash: !?1971@192.168.2.108:80/cam/realmonitor?: event not found
pi@raspberrypi:~/MagicMirror/config $ pm2 start MagicMirror
[PM2] Applying action restartProcessId on app [MagicMirror](ids: 0)
[PM2] MagicMirror ✓
[PM2] Process successfully started
┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 30912 │ 0s │ 2 │ online │ 0% │ 2.5mb │ pi │ disabled │
│ 1 │ omx_stream1 │ default │ N/A │ fork │ 30880 │ 4s │ 741 │ online │ 0% │ 2.6mb │ pi │ disabled │
└─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
pi@raspberrypi:~/MagicMirror/config $ omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0
-bash: !?1971@192.168.2.108:80/cam/realmonitor?: event not found
pi@raspberrypi:~/MagicMirror/config $It does not work, :-(
-
Can you try with quotes (single, double) ?
omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd "rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0"
omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0'
when the command works, but still no video, then add
--genlog
omxplayer --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0'
This will creat a log file called
omxplayer.log
under the directory where you started omxplayer. -
Hello,
- First 1 start magic mirror.
- with 2 qoutes
- with 1 qoute
pi@raspberrypi:~/MagicMirror/config $ pm2 start MagicMirror
[PM2] Applying action restartProcessId on app [MagicMirror](ids: 0)
[PM2] MagicMirror ✓
[PM2] Process successfully started
┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 8843 │ 0s │ 2 │ online │ 0% │ 2.5mb │ pi │ disabled │
│ 1 │ omx_stream1 │ default │ N/A │ fork │ 8825 │ 2s │ 1000 │ online │ 0% │ 2.5mb │ pi │ disabled │
└─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘[1]+ Angehalten omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd "rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd "rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0’channel=2
pi@raspberrypi:~/MagicMirror/config $ omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd “rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0”
omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd "rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd "rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd “rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0’channel=2&subtype=0"channel=2&subtype=0’channel=2&subtype=0"channel=2&subtype=0”
[2] 9584
[3] 9585
pi@raspberrypi:~/MagicMirror/config $ omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd ‘rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0’
have a nice day ;)[2]+ Angehalten omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd "rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd "rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd "rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2
[3] Fertig subtype=0’channel=2&subtype=0"channel=2&subtype=0’channel=2
pi@raspberrypi:~/MagicMirror/config $ -
@Number_5 pm2 stop 0, pm2 stop 1
just from the commandline…(ctrl-alt-t) . does a video window open on any of these?
-
Better to stop MM temporarily or disable the module with
disabled: true,
and a restart of MM.
Also make sureomx_stream1
process is not running.pm2 status pm2 stop omx_stream1 pm2 delete omx_stream1 pm2 status
Then do the single quoted command, with logging enabled.
omxplayer --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0'