Read the statement by Michael Teeuw here.
[MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
-
One more thing.
Can you also try with subtype=1 and subtype=2 ?Looks to be a decoding issue and subtype=0 might be too new for omxplayer.
Someone claims this is working:channel=1&subtype=2
-
here the result
p``` i@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=1'
[rtsp @ 0xaf9770] method OPTIONS failed: 401 Unauthorized have a nice day ;) pi@raspberrypi:~/MagicMirror $ more omxplayer.log 21:22:31 T:18446744072654331549 DEBUG: DllBcm: Using omx system library 21:22:31 T:18446744072654332606 DEBUG: DllOMX: Using omx system library 21:22:31 T:18446744072654333203 DEBUG: DllAvFormat: Using libavformat system library 21:22:31 T:18446744072654334714 DEBUG: DBus connection succeeded 21:22:31 T:18446744072654335626 DEBUG: Keyboard: DBus connection succeeded 21:22:31 T:18446744072654335771 DEBUG: OMXThread::Create - Thread with id -1387290944 started 21:22:31 T:18446744072654335867 DEBUG: DllAvUtilBase: Using libavutil system library 21:22:31 T:18446744072654335887 DEBUG: DllAvCodec: Using libavcodec system library 21:22:31 T:18446744072654335903 DEBUG: DllAvFormat: Using libavformat system library 21:22:31 T:18446744072654336238 DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=1 21:22:31 T:18446744072654372616 ERROR: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=1 21:22:31 T:18446744072654377098 DEBUG: OMXThread::Run - Exited thread with id -1387290944 21:22:31 T:18446744072654377333 DEBUG: OMXThread::StopThread - Thread stopped
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=2'
[rtsp @ 0xd1d770] method OPTIONS failed: 401 Unauthorized have a nice day ;) pi@raspberrypi:~/MagicMirror $ more omxplayer.log 21:23:48 T:18446744072731535779 DEBUG: DllBcm: Using omx system library 21:23:48 T:18446744072731536888 DEBUG: DllOMX: Using omx system library 21:23:48 T:18446744072731537505 DEBUG: DllAvFormat: Using libavformat system library 21:23:48 T:18446744072731538801 DEBUG: DBus connection succeeded 21:23:48 T:18446744072731539526 DEBUG: Keyboard: DBus connection succeeded 21:23:48 T:18446744072731539667 DEBUG: OMXThread::Create - Thread with id -1387290944 started 21:23:48 T:18446744072731539768 DEBUG: DllAvUtilBase: Using libavutil system library 21:23:48 T:18446744072731539790 DEBUG: DllAvCodec: Using libavcodec system library 21:23:48 T:18446744072731539805 DEBUG: DllAvFormat: Using libavformat system library 21:23:48 T:18446744072731540190 DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=2 21:23:48 T:18446744072731573465 ERROR: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=2 21:23:48 T:18446744072731579918 DEBUG: OMXThread::Run - Exited thread with id -1387290944 21:23:48 T:18446744072731580203 DEBUG: OMXThread::StopThread - Thread stopped pi@raspberrypi:~/MagicMirror $
-
@Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
401 Unauthorized
401 Unauthorized
means user password combination is not correct.admin:roland
Note the
:
and of course your correct password. -
sorry,
with subtype=0 the second attemptpi@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' Input #0, rtsp, from 'rtsp://admin:RoKu1234@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0':
Metadata: title : Media Server Duration: N/A, start: 0.080000, bitrate: N/A Stream #0:0: Video: hevc (Main), yuvj420p(pc, bt709), 1920x1080, 25 fps, 25 tbr, 90k tbn, 90k tbc have a nice day ;) pi@raspberrypi:~/MagicMirror $ more omxplayer.log 21:49:12 T:545640871 DEBUG: DllBcm: Using omx system library 21:49:12 T:545641966 DEBUG: DllOMX: Using omx system library 21:49:12 T:545642575 DEBUG: DllAvFormat: Using libavformat system library 21:49:12 T:545643867 DEBUG: DBus connection succeeded 21:49:12 T:545644603 DEBUG: Keyboard: DBus connection succeeded 21:49:12 T:545644749 DEBUG: OMXThread::Create - Thread with id -1387290944 started 21:49:12 T:545644849 DEBUG: DllAvUtilBase: Using libavutil system library 21:49:12 T:545644870 DEBUG: DllAvCodec: Using libavcodec system library 21:49:12 T:545644885 DEBUG: DllAvFormat: Using libavformat system library 21:49:12 T:545645216 DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0 21:49:12 T:545805065 DEBUG: COMXPlayer::OpenFile - avformat_open_input enabled SEEKING 21:49:13 T:546749810 DEBUG: OMXThread::Run - Exited thread with id -1387290944 21:49:13 T:546750434 DEBUG: OMXThread::StopThread - Thread stopped
-
@Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
with subtype=0 the second attempt
And with subtype=1 and subtype=2 ?
And with channel=1&subtype=1 ?You can leave out the omxplayer.log for the moment.
-
subtyp 0
pi@raspberrypi:~ $ 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=1&subtype=0' Input #0, rtsp, from 'rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=0': Metadata: title : Media Server Duration: N/A, start: 0.040000, bitrate: N/A Stream #0:0: Video: hevc (Main), yuvj420p(pc, bt709), 1920x1080, 100 tbr, 90k tbn, 90k tbc have a nice day ;)
subtyp 1
pi@raspberrypi:~ $ 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=1&subtype=1' Input #0, rtsp, from 'rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=1': Metadata: title : Media Server Duration: N/A, start: 0.080000, bitrate: N/A Stream #0:0: Video: hevc (Main), yuvj420p(pc, bt709), 352x288, 100 tbr, 90k tbn, 90k tbc have a nice day ;)
subtype 2
pi@raspberrypi:~ $ 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=1&subtype=2' have a nice day ;) pi@raspberrypi:~ $
-
subtype 2 , with error in the log.
pi@raspberrypi:~ $ more omxplayer.log
22:23:44 T:18446744072031941972 DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=2 22:24:14 T:18446744072062033195 ERROR: COMXPlayer::interrupt_cb - Timed out 22:24:14 T:18446744072062033629 ERROR: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=2 22:24:14 T:18446744072062034345 DEBUG: OMXThread::Run - Exited thread with id -1387290944 22:24:14 T:18446744072062034889 DEBUG: OMXThread::StopThread - Thread stopped
-
@Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
Video: hevc
It looks like this is the problem.
The omxplayer cannot handle this, as it seems.Do you have access to this Dahua Config Tool GUI stuff:
(I hope the picture shows)Cannot upload a picture to the forum :disappointed_face: :face_with_steam_from_nose:
http://www.dh-vision.com/index.php/dahuaencoding
How many Channels do you have ?
Is there a channel with Compression H.264 (something not H.265) ?
Is there a Sub Stream that is enabled with Compression H.264 (something not H.265) ?
What Compresion options are there ?We are looking for a "channel=X&subtype=Y"combination that might work.
-
Hello evroom,
here the results
How many Channels do you have ? 4 (LUNA DVR Player)
channel 1 luna camera is connected and with channel 2 there is the dahua camera , channel 3 and 4 are free,Is there a channel with Compression H.264 (something not H.265) ? yes, i have changed it now from H265 to H264
Is there a Sub Stream that is enabled with Compression H.264 (something not H.265) ?there is a extrastream i have set it from h265 to h264
also there was a Zero-Channel at the option “display” disabled , i have it enabled now with h264What Compresion options are there ? h264, h264b , h264 , h264h , h265
subtype=0 with h264
pi@raspberrypi:~ $ 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=1&subtype=0' Input #0, rtsp, from 'rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=0': Metadata: title : Media Server Duration: N/A, start: 0.270000, bitrate: N/A Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1920x1080, 100 tbr, 90k tbn, 180k tbc have a nice day ;)
subtype=1 with h264
pi@raspberrypi:~ $ 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=1&subtype=1' Input #0, rtsp, from 'rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=1': Metadata: title : Media Server Duration: N/A, start: 0.480000, bitrate: N/A Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 352x288, 100 tbr, 90k tbn, 180k tbc have a nice day ;)
subtype=2 with h264, its not working log with error
pi@raspberrypi:~ $ 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=1&subtype=2' have a nice day ;) pi@raspberrypi:~ $su
-
@Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
subtype=1 with h264
Can you try the subtype=1 option and remove the
--info
part from the command?