Read the statement by Michael Teeuw here.
[MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
-
@Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
after execute the commando "vi ~/MagicMirror/config/config.js " in commandline , the config.js openend
Yes, sorry about that, vi is a text editor.
Close it with:q!
or[ESC]:q!
(where [ESC] is the escape key)
Then use the editor of your choice, like nano.nano ~/MagicMirror/config/config.js
-
@Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
ok, sorry,
I am sorry too :-)
Did you change the actual password of your cam or just changed the text in the admin:roland!?1971 part ?
I do not have a Dahua cam, so I do not know where and how to set it.
Probably there is a GUI (a web page) where you can do this.
I guess you can open it like this:
http://192.168.2.108
But once you did set it to the password we are seeing right now, so you ought to know :-) -
Hello,
would like to give you an interim report.- password has been changed, none
!?
- Stream with VlC programm possible, without query , :-)
- no error in the log file, see below
- i will try more on Friday or Saturday
pi@raspberrypi:~/MagicMirror $ omxplayer --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0' Vcodec id unknown: ad have a nice day ;)
pi@raspberrypi:~/MagicMirror $ omxplayer --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108/cam/realmonitor?channel=2&subtyp e=0' Vcodec id unknown: ad have a nice day ;)
pi@raspberrypi:~/MagicMirror $ omxplayer --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0' Vcodec id unknown: ad have a nice day ;)
pi@raspberrypi:~/MagicMirror $ omxplayer --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&su btype=0' Vcodec id unknown: ad have a nice day ;)
pi@raspberrypi:~/MagicMirror $ more omxplayer.log 18:31:12 T:1550613812 DEBUG: DllBcm: Using omx system library 18:31:12 T:1550615108 DEBUG: DllOMX: Using omx system library 18:31:12 T:1550615746 DEBUG: DllAvFormat: Using libavformat system library 18:31:12 T:1550617254 DEBUG: DBus connection succeeded 18:31:12 T:1550618196 DEBUG: Keyboard: DBus connection succeeded 18:31:12 T:1550618346 DEBUG: OMXThread::Create - Thread with id -1388339520 started 18:31:12 T:1550618446 DEBUG: DllAvUtilBase: Using libavutil system library 18:31:12 T:1550618468 DEBUG: DllAvCodec: Using libavcodec system library 18:31:12 T:1550618487 DEBUG: DllAvFormat: Using libavformat system library 18:31:12 T:1550618829 DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0 18:31:12 T:1550714583 DEBUG: COMXPlayer::OpenFile - avformat_open_input enabled SEEKING 18:31:13 T:1551680437 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.clock input port 80 output port 81 m_handle 0x6d6140 18:31:13 T:1551681127 DEBUG: OMXClock::OMXStop 18:31:13 T:1551681450 DEBUG: OMXClock::OMXSetSpeed(0.00) pause_resume:1 18:31:13 T:1551681918 DEBUG: DllAvUtilBase: Using libavutil system library 18:31:13 T:1551681973 DEBUG: DllAvCodec: Using libavcodec system library 18:31:13 T:1551682018 DEBUG: DllAvFormat: Using libavformat system library 18:31:13 T:1551682225 DEBUG: OMXClock::OMXStop 18:31:13 T:1551684333 DEBUG: OMXThread::Run - Exited thread with id -1388339520 18:31:13 T:1551684932 DEBUG: OMXThread::StopThread - Thread stopped 18:31:13 T:1551688082 DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.clock handle 0x6d6140
Thanks for your help
-
Hello,
thats the logfile without a port:omxplayer --genlog --avdict rtsp_transport:tcp -pi@raspberrypi:~/MagicMirror $ omxplayer --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx:xxx@192.168.2.108/cam/realmonitor?channel=2&subtype=0'
Vcodec id unknown: ad have a nice day ;)
pi@raspberrypi:~/MagicMirror $ more omxplayer.log 20:09:20 T:18446744072557925778 DEBUG: DllBcm: Using omx system library 20:09:20 T:18446744072557926899 DEBUG: DllOMX: Using omx system library 20:09:20 T:18446744072557927508 DEBUG: DllAvFormat: Using libavformat system library 20:09:20 T:18446744072557928896 DEBUG: DBus connection succeeded 20:09:20 T:18446744072557929631 DEBUG: Keyboard: DBus connection succeeded 20:09:20 T:18446744072557929778 DEBUG: OMXThread::Create - Thread with id -1388339520 started 20:09:20 T:18446744072557929873 DEBUG: DllAvUtilBase: Using libavutil system library 20:09:20 T:18446744072557929894 DEBUG: DllAvCodec: Using libavcodec system library 20:09:20 T:18446744072557929910 DEBUG: DllAvFormat: Using libavformat system library 20:09:20 T:18446744072557930230 DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx:xxx@192.168.2.108/cam/realmonitor?channel=2&subtype=0 20:09:20 T:18446744072558104967 DEBUG: COMXPlayer::OpenFile - avformat_open_input enabled SEEKING 20:09:21 T:18446744072559101936 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.clock input port 80 output port 81 m_handle 0x79d170 20:09:21 T:18446744072559102429 DEBUG: OMXClock::OMXStop 20:09:21 T:18446744072559102650 DEBUG: OMXClock::OMXSetSpeed(0.00) pause_resume:1 20:09:21 T:18446744072559103080 DEBUG: DllAvUtilBase: Using libavutil system library 20:09:21 T:18446744072559103130 DEBUG: DllAvCodec: Using libavcodec system library 20:09:21 T:18446744072559103172 DEBUG: DllAvFormat: Using libavformat system library 20:09:21 T:18446744072559103634 DEBUG: OMXClock::OMXStop 20:09:21 T:18446744072559115423 DEBUG: OMXThread::Run - Exited thread with id -1388339520 20:09:21 T:18446744072559115981 DEBUG: OMXThread::StopThread - Thread stopped 20:09:21 T:18446744072559118051 DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.clock handle 0x79d170
-
Can you try this, to try to see what codec is used?
omxplayer --info --genlog --avdict rtsp_transport:tcp --win,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0'
-
pi@raspberrypi:~/MagicMirror $ omxplayer --info --genlog --avdict rtsp_transport:tcp --win,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0'
/usr/bin/omxplayer.bin: unrecognized option '--win,424,1138,666'
pi@raspberrypi:~/MagicMirror $ more omxplayer.log 20:09:20 T:18446744072557925778 DEBUG: DllBcm: Using omx system library 20:09:20 T:18446744072557926899 DEBUG: DllOMX: Using omx system library 20:09:20 T:18446744072557927508 DEBUG: DllAvFormat: Using libavformat system library 20:09:20 T:18446744072557928896 DEBUG: DBus connection succeeded 20:09:20 T:18446744072557929631 DEBUG: Keyboard: DBus connection succeeded 20:09:20 T:18446744072557929778 DEBUG: OMXThread::Create - Thread with id -1388339520 started 20:09:20 T:18446744072557929873 DEBUG: DllAvUtilBase: Using libavutil system library 20:09:20 T:18446744072557929894 DEBUG: DllAvCodec: Using libavcodec system library 20:09:20 T:18446744072557929910 DEBUG: DllAvFormat: Using libavformat system library 20:09:20 T:18446744072557930230 DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx:xxxx@192.168.2.108/cam/realmonitor?channel=2&subtype=0 20:09:20 T:18446744072558104967 DEBUG: COMXPlayer::OpenFile - avformat_open_input enabled SEEKING 20:09:21 T:18446744072559101936 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.clock input port 80 output port 81 m_handle 0x79d170 20:09:21 T:18446744072559102429 DEBUG: OMXClock::OMXStop 20:09:21 T:18446744072559102650 DEBUG: OMXClock::OMXSetSpeed(0.00) pause_resume:1 20:09:21 T:18446744072559103080 DEBUG: DllAvUtilBase: Using libavutil system library 20:09:21 T:18446744072559103130 DEBUG: DllAvCodec: Using libavcodec system library 20:09:21 T:18446744072559103172 DEBUG: DllAvFormat: Using libavformat system library 20:09:21 T:18446744072559103634 DEBUG: OMXClock::OMXStop 20:09:21 T:18446744072559115423 DEBUG: OMXThread::Run - Exited thread with id -1388339520 20:09:21 T:18446744072559115981 DEBUG: OMXThread::StopThread - Thread stopped 20:09:21 T:18446744072559118051 DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.clock handle 0x79d170 pi@raspberrypi:~/MagicMirror $
-
Copy/paste error on my side
omxplayer --info --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0'
Hope this works better.
-
Hello evroom,
thats the result.pi@raspberrypi:~/MagicMirror $ omxplayer --info --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0'
[rtsp @ 0x1e70770] method OPTIONS failed: 401 Unauthorized have a nice day ;)
pi@raspberrypi:~/MagicMirror $ more omxplayer.log 20:59:38 T:1866439265 DEBUG: DllBcm: Using omx system library 20:59:38 T:1866440312 DEBUG: DllOMX: Using omx system library 20:59:38 T:1866440900 DEBUG: DllAvFormat: Using libavformat system library 20:59:38 T:1866442436 DEBUG: DBus connection succeeded 20:59:38 T:1866443340 DEBUG: Keyboard: DBus connection succeeded 20:59:38 T:1866443488 DEBUG: OMXThread::Create - Thread with id -1387290944 started 20:59:38 T:1866443585 DEBUG: DllAvUtilBase: Using libavutil system library 20:59:38 T:1866443604 DEBUG: DllAvCodec: Using libavcodec system library 20:59:38 T:1866443620 DEBUG: DllAvFormat: Using libavformat system library 20:59:38 T:1866443952 DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx.xxx@192.168.2.108:554/cam/re almonitor?channel=2&subtype=0 20:59:38 T:1866474815 ERROR: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx.xxx@192.168.2.108:554/cam/re almonitor?channel=2&subtype=0 20:59:38 T:1866484802 DEBUG: OMXThread::Run - Exited thread with id -1387290944 20:59:38 T:1866485061 DEBUG: OMXThread::StopThread - Thread stopped pi@raspberrypi:~/MagicMirror $
-
@Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
401 Unauthorized
Did you supply your user and password iso xxx.xxx ?
-
Yes, I changed it in xxx.xxx when I send the log to the the fourm