Read the statement by Michael Teeuw here.
[MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
-
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
--genlogomxplayer --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.logunder 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_stream1process is not running.pm2 status pm2 stop omx_stream1 pm2 delete omx_stream1 pm2 statusThen 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' -
Hello ,
- I started it from the command line
but no windows opens. or I’m doing something wrong.
pi@raspberrypi:~/MagicMirror/config $ --genlog
-bash: --genlog: Kommando nicht gefunden.
pi@raspberrypi:~/MagicMirror/config $ pm2 status
┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 8843 │ 13m │ 2 │ online │ 0% │ 2.5mb │ pi │ disabled │
│ 1 │ omx_stream1 │ default │ N/A │ fork │ 14967 │ 0s │ 1152 │ online │ 0% │ 2.6mb │ pi │ disabled │
└─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
pi@raspberrypi:~/MagicMirror/config $ pm2 stop omx_stream1
[PM2] Applying action stopProcessId on app [omx_stream1](ids: 1)
[PM2] omx_stream1 ✓
┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 8843 │ 14m │ 2 │ online │ 0% │ 2.5mb │ pi │ disabled │
│ 1 │ omx_stream1 │ default │ N/A │ fork │ 0 │ 0 │ 1156 │ stopped │ 0% │ 0b │ pi │ disabled │
└─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
pi@raspberrypi:~/MagicMirror/config $ pm2 delete omx_stream1
[PM2] Applying action deleteProcessId on app [omx_stream1](ids: 1)
[PM2] omx_stream1 ✓
┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 8843 │ 14m │ 2 │ online │ 0% │ 2.5mb │ pi │ disabled │
└─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
[PM2][WARN] Current process list running is not in sync with saved list. omx_stream1 differs. Type ‘pm2 save’ to synchronize.
pi@raspberrypi:~/MagicMirror/config $ pm2 status
┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 8843 │ 14m │ 2 │ online │ 0% │ 2.5mb │ pi │ disabled │
└─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
[PM2][WARN] Current process list running is not in sync with saved list. omx_stream1 differs. Type ‘pm2 save’ to synchronize.
pi@raspberrypi:~/MagicMirror/config $ 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’
have a nice day ;)
pi@raspberrypi:~/MagicMirror/config $ -
Could you please post commands and output using the </> tag ?
So, select the command or output and click on the </> symbol.Does the log say anything useful ?
more omxplayer.logPleas do not post the complete log, unless small.
30 lines tops.head -30 omxplayer.log -
ok sorry,
in future output and commands in </>thats the logfile
pi@raspberrypi:~/MagicMirror/config $ more omxplayer.log 20:14:18 T:1939277143 DEBUG: DllBcm: Using omx system library 20:14:18 T:1939278613 DEBUG: DllOMX: Using omx system library 20:14:18 T:1939279243 DEBUG: DllAvFormat: Using libavformat system library 20:14:18 T:1939280418 WARNING: Failed to acquire D-Bus name 'org.mpris.MediaPlayer2.omxplayer' 20:14:18 T:1939280521 WARNING: DBus connection failed, trying alternate 20:14:18 T:1939281594 DEBUG: DBus connection succeeded 20:14:18 T:1939282354 DEBUG: Keyboard: DBus connection succeeded 20:14:18 T:1939282502 DEBUG: OMXThread::Create - Thread with id -1387290944 started 20:14:18 T:1939282604 DEBUG: DllAvUtilBase: Using libavutil system library 20:14:18 T:1939282636 DEBUG: DllAvCodec: Using libavcodec system library 20:14:18 T:1939282654 DEBUG: DllAvFormat: Using libavformat system library 20:14:18 T:1939282994 DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0 20:14:18 T:1939283372 ERROR: COMXPlayer::OpenFile - avformat_open_input rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0 20:14:18 T:1939283465 DEBUG: OMXThread::Run - Exited thread with id -1387290944 20:14:18 T:1939283726 DEBUG: OMXThread::StopThread - Thread stopped pi@raspberrypi:~/MagicMirror/config $ -
@Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
ok sorry,
Nothing to be sorry for; you are learning as you go :-)
-
@Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
ERROR: COMXPlayer::OpenFile - avformat_open_input
Okay, without getting rid of this error, omxplayer and therefore MMM-RTSPStream using omxplayer will not work for you.
I have an Axis cam and there it did not work because to the resolution I used, had to use one of the resolutions that is supported by the cam.Where you able to open
http://your-mirror-ip:8080/MMM-RTSPStream/config.html
and see the cam there ?Could try ffmpeg, but there I have to pass.
What camera are we talking about ?
-
Can you try with another port number (554 iso 80) ?
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:554/cam/realmonitor?channel=2&subtype=0' -
Hello
it is a,DAHUA mini-dome Kamera hd-cvi 2 megapixels für indoor/outdoor g ip7. 30 m nightview fixe objektiv 2,8 mm. - AC/DC-Adapter : AC/DC-Adapter 12V 600mA (port 80)
also i have a Luna Hd
L-KA-2601 1 160,00 160,00
IR Bullet-Kamera (HD-CVI), Full HD,if i open
http://XXX.xxx,x.xxx:8080/MMM-RTSPStream/config.html
I am denied access -
@Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
I am denied access
probably have to use the url syntax for userid and password
http://admin:roland!?1971@example.com
that is going to the magic mirror port
so, in the config.js do you have
address: “0.0.0.0”,
and
ipWHiltelist:[], -
@Number_5
Try with port 554, see previous post.And see
https://github.com/shbatm/MMM-RTSPStream
“Using the module” on the config.html part I was referring to.
The IP there, is the MM IP, or localhost, not your cam IP. -
-
Hello
I’m just overwhelmed with the syntax.
http://admin:roland!?1971@example.com
and
http://XXX.xxx,x.xxx:8080/MMM-RTSPStream/config.htmI’ll try tomorrow and give feedback, thanks for your support
-
thats the result with the port 554
pi@raspberrypi:~/MagicMirror/config $ 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:554/cam/realmonitor?channel=2&subtype=0' have a nice day ;) pi@raspberrypi:~/MagicMirror/config $ head -30 omxplayer.log 21:33:25 T:18446744071806154291 DEBUG: DllBcm: Using omx system library 21:33:25 T:18446744071806155602 DEBUG: DllOMX: Using omx system library 21:33:25 T:18446744071806156277 DEBUG: DllAvFormat: Using libavformat system library 21:33:25 T:18446744071806157458 WARNING: Failed to acquire D-Bus name 'org.mpris.MediaPlayer2.omxplayer' 21:33:25 T:18446744071806157567 WARNING: DBus connection failed, trying alternate 21:33:25 T:18446744071806158687 DEBUG: DBus connection succeeded 21:33:25 T:18446744071806159455 DEBUG: Keyboard: DBus connection succeeded 21:33:25 T:18446744071806159602 DEBUG: OMXThread::Create - Thread with id -1387290944 started 21:33:25 T:18446744071806159705 DEBUG: DllAvUtilBase: Using libavutil system library 21:33:25 T:18446744071806159738 DEBUG: DllAvCodec: Using libavcodec system library 21:33:25 T:18446744071806159756 DEBUG: DllAvFormat: Using libavformat system library 21:33:25 T:18446744071806160118 DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://admin:roland!?1971@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0 21:33:25 T:18446744071806160518 ERROR: COMXPlayer::OpenFile - avformat_open_input rtsp://admin:roland!?1971@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0 21:33:25 T:18446744071806179771 DEBUG: OMXThread::Run - Exited thread with id -1387290944 21:33:25 T:18446744071806180025 DEBUG: OMXThread::StopThread - Thread stopped pi@raspberrypi:~/MagicMirror/config $
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login