RTSP error
Posted: Wed Dec 30, 2009 12:31 am
After Maygion released a new firmware for my IPCamera which supports RTSP streaming, I've tried getting it working in ZoneMinder but with no success.
I can view it fine in VLC by opening rtsp://admin:admin@192.168.2.103:80
However, with the following settings in ZM:
Remote Protocol: RTSP
Remote Method: RTP/Unicast
Remote Host Name: admin:admin@192.168.2.103
Remote Host Port: 80
Remote Host Path: (left blank)
I get these errors:
I've tried the different Remote Methods with no success.
Also, if I try to set the Source Type to ffmpeg and the source path to rtsp://admin:admin@192.168.2.103:80 I get:
If I try ffmpeg -i rtsp://admin:admin@192.168.2.103:80 /tmp/cam.avi on the command line, it just hangs with:
until I ^C it.
Does anyone know what is causing this, and how to fix it?
Thanks
I can view it fine in VLC by opening rtsp://admin:admin@192.168.2.103:80
However, with the following settings in ZM:
Remote Protocol: RTSP
Remote Method: RTP/Unicast
Remote Host Name: admin:admin@192.168.2.103
Remote Host Port: 80
Remote Host Path: (left blank)
I get these errors:
Code: Select all
12/30/09 00:16:44.112397 zmc_m6[5005].INF-zm_debug.c/296 [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.05005]
12/30/09 00:16:44.112935 zmc_m6[5005].DB1-zm_monitor.cpp/2273 [Got 1 monitors]
12/30/09 00:16:44.114063 zmc_m6[5005].DB1-zm_thread.cpp/241 [Creating thread]
12/30/09 00:16:44.114160 zmc_m6[5005].DB2-zm_rtsp.cpp/187 [RTSP Local SSRC is 5ff8c86a]
12/30/09 00:16:44.114180 zmc_m6[5005].DB1-zm_thread.cpp/280 [Starting thread]
12/30/09 00:16:44.114341 zmc_m6[5006].DB2-zm_thread.cpp/253 [Invoking thread]
12/30/09 00:16:44.114640 zmc_m6[5005].DB1-zm_thread.cpp/301 [Started thread 5006]
12/30/09 00:16:44.115308 zmc_m6[5006].DB2-zm_rtsp.cpp/46 [Sending RTSP message: DESCRIBE rtsp://192.168.2.103:80/ RTSP/1.0
Authorization: Basic YWRtaW46YWRtaW4=
User-Agent: ZoneMinder/1.24.2
CSeq: 1
]
12/30/09 00:16:44.119863 zmc_m6[5005].DB1-zm_monitor.cpp/338 [monitor purpose=1]
12/30/09 00:16:44.119914 zmc_m6[5005].DB1-zm_monitor.cpp/345 [mem.size=36865192]
12/30/09 00:16:44.120007 zmc_m6[5005].DB1-zm_monitor.cpp/369 [Unable to map file /dev/shm/zm.mmap.6 (36865192 bytes) to locked memory, trying unlocked]
12/30/09 00:16:44.213896 zmc_m6[5005].DB1-zm_zone.cpp/50 [Initialised zone 0/All - 1 - 640x480 - Rgb:ff0000, CM:3, MnAT:15, MxAT:0, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0, OF: 0]
12/30/09 00:16:44.229434 zmc_m6[5005].DB1-zm_monitor.cpp/458 [Monitor Drive-Front has function 2]
12/30/09 00:16:44.229486 zmc_m6[5005].DB1-zm_monitor.cpp/459 [Monitor Drive-Front LBF = '%N - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
12/30/09 00:16:44.229503 zmc_m6[5005].DB1-zm_monitor.cpp/460 [Monitor Drive-Front IBC = 40, WUC = 25, pEC = 10, PEC = 10, EAF = 1, FRI = 1000, RBP = 7, FM = 0]
12/30/09 00:16:44.229799 zmc_m6[5005].DB1-zm_zone.cpp/889 [Got 1 zones for monitor Drive-Front]
12/30/09 00:16:44.229843 zmc_m6[5005].DB5-zm_zone.cpp/918 [Parsing polygon 0,0 639,0 639,479 0,479]
12/30/09 00:16:44.229860 zmc_m6[5005].DB3-zm_zone.cpp/758 [Parsing polygon string '0,0 639,0 639,479 0,479']
12/30/09 00:16:44.229876 zmc_m6[5005].DB3-zm_zone.cpp/796 [Got coordinate 0,0 from polygon string]
12/30/09 00:16:44.229892 zmc_m6[5005].DB3-zm_zone.cpp/796 [Got coordinate 639,0 from polygon string]
12/30/09 00:16:44.229909 zmc_m6[5005].DB3-zm_zone.cpp/796 [Got coordinate 639,479 from polygon string]
12/30/09 00:16:44.229925 zmc_m6[5005].DB3-zm_zone.cpp/796 [Got coordinate 0,479 from polygon string]
12/30/09 00:16:44.229947 zmc_m6[5005].DB3-zm_zone.cpp/816 [Successfully parsed polygon string]
12/30/09 00:16:44.229968 zmc_m6[5005].DB1-zm_zone.cpp/50 [Initialised zone 6/All - 1 - 640x480 - Rgb:ff0000, CM:3, MnAT:25, MxAT:0, MnAP:9216, MxAP:230400, FB:3x3, MnFP:9216, MxFP:230400, MnBS:6144, MxBS:0, MnB:1, MxB:0, OF: 0]
12/30/09 00:16:44.244380 zmc_m6[5005].DB1-zm_monitor.cpp/2470 [Loaded monitor 6(Drive-Front), 1 zones]
12/30/09 00:16:44.244435 zmc_m6[5005].INF-zmc.cpp/188 [Starting Capture]
12/30/09 00:16:44.244710 zmc_m6[5005].DB2-zm_remote_camera_rtsp.cpp/112 [Waiting for sources]
12/30/09 00:16:45.115555 zmc_m6[5006].DB2-zm_rtsp.cpp/72 [Received RTSP response: RTSP/1.0 200 OK
CSeq: 1
Content-Base: maygion_rtsp_ipcamera
Content-type: application/sdp
Content-length: 322
v=0
s=MJPEG RTSP stream(www.maygion.com)
i=MJPEG RTSP stream(www.maygion.com)
t=0 0
a=tool:MJPEG RTSP stream(www.maygion.com)
a=control:*
a=range:ntp=0-
a=x-qt-text-nam:MJPEG RTSP stream(www.maygion.com)
a=x-qt-text-inf:MJPEG RTSP stream(www.maygion.com)
m=video 0 RTP/AVP 26
c=IN IP4 0.0.0.0
a=control:track1
(439 bytes)]
12/30/09 00:16:45.115690 zmc_m6[5006].DB1-zm_rtsp.cpp/304 [Processing SDP 'v=0
s=MJPEG RTSP stream(www.maygion.com)
i=MJPEG RTSP stream(www.maygion.com)
t=0 0
a=tool:MJPEG RTSP stream(www.maygion.com)
a=control:*
a=range:ntp=0-
a=x-qt-text-nam:MJPEG RTSP stream(www.maygion.com)
a=x-qt-text-inf:MJPEG RTSP stream(www.maygion.com)
m=video 0 RTP/AVP 26
c=IN IP4 0.0.0.0
a=control:track1
']
12/30/09 00:16:45.115771 zmc_m6[5006].DB3-zm_sdp.cpp/126 [Processing SDP line 'v=0']
12/30/09 00:16:45.115793 zmc_m6[5006].DB3-zm_sdp.cpp/126 [Processing SDP line 's=MJPEG RTSP stream(www.maygion.com)']
12/30/09 00:16:45.115911 zmc_m6[5006].DB3-zm_sdp.cpp/126 [Processing SDP line 'i=MJPEG RTSP stream(www.maygion.com)']
12/30/09 00:16:45.115931 zmc_m6[5006].DB3-zm_sdp.cpp/126 [Processing SDP line 't=0 0']
12/30/09 00:16:45.115947 zmc_m6[5006].DB3-zm_sdp.cpp/126 [Processing SDP line 'a=tool:MJPEG RTSP stream(www.maygion.com)']
12/30/09 00:16:45.115976 zmc_m6[5006].DB3-zm_sdp.cpp/259 [Ignoring general SDP attribute 'tool:MJPEG RTSP stream(www.maygion.com)']
12/30/09 00:16:45.115997 zmc_m6[5006].DB3-zm_sdp.cpp/126 [Processing SDP line 'a=control:*']
12/30/09 00:16:45.116022 zmc_m6[5006].DB3-zm_sdp.cpp/259 [Ignoring general SDP attribute 'control:*']
12/30/09 00:16:45.116042 zmc_m6[5006].DB3-zm_sdp.cpp/126 [Processing SDP line 'a=range:ntp=0-']
12/30/09 00:16:45.116067 zmc_m6[5006].DB3-zm_sdp.cpp/259 [Ignoring general SDP attribute 'range:ntp=0-']
12/30/09 00:16:45.116084 zmc_m6[5006].DB3-zm_sdp.cpp/126 [Processing SDP line 'a=x-qt-text-nam:MJPEG RTSP stream(www.maygion.com)']
12/30/09 00:16:45.116106 zmc_m6[5006].DB3-zm_sdp.cpp/259 [Ignoring general SDP attribute 'x-qt-text-nam:MJPEG RTSP stream(www.maygion.com)']
12/30/09 00:16:45.116124 zmc_m6[5006].DB3-zm_sdp.cpp/126 [Processing SDP line 'a=x-qt-text-inf:MJPEG RTSP stream(www.maygion.com)']
12/30/09 00:16:45.116147 zmc_m6[5006].DB3-zm_sdp.cpp/259 [Ignoring general SDP attribute 'x-qt-text-inf:MJPEG RTSP stream(www.maygion.com)']
12/30/09 00:16:45.116165 zmc_m6[5006].DB3-zm_sdp.cpp/126 [Processing SDP line 'm=video 0 RTP/AVP 26']
12/30/09 00:16:45.116199 zmc_m6[5006].DB3-zm_sdp.cpp/126 [Processing SDP line 'c=IN IP4 0.0.0.0']
12/30/09 00:16:45.116234 zmc_m6[5006].DB3-zm_sdp.cpp/126 [Processing SDP line 'a=control:track1']
12/30/09 00:16:45.116855 zmc_m6[5006].DB1-zm_sdp.cpp/305 [Looking for codec for video payload type 26 / ]
12/30/09 00:16:45.116879 zmc_m6[5006].DB1-zm_sdp.cpp/318 [Got static payload type 26, JPEG]
12/30/09 00:16:45.117079 zmc_m6[5006].DB2-zm_rtsp.cpp/139 [Assigned RTP port range is 40200-40499]
12/30/09 00:16:45.117147 zmc_m6[5006].DB2-zm_rtsp.cpp/46 [Sending RTSP message: SETUP rtsp://192.168.2.103:80//track1 RTSP/1.0
Transport: RTP/AVP;unicast;client_port=40200-40201
Authorization: Basic YWRtaW46YWRtaW4=
User-Agent: ZoneMinder/1.24.2
CSeq: 2
]
12/30/09 00:16:45.128937 zmc_m6[5006].DB2-zm_rtsp.cpp/72 [Received RTSP response: RTSP/1.0 200 OK
CSeq: 2
Session: 176
Transport: RTP/AVP;unicast;interleaved=0-1
(86 bytes)]
12/30/09 00:16:45.129016 zmc_m6[5006].DB2-zm_rtsp.cpp/396 [Got RTSP session 176, timeout 0 secs]
12/30/09 00:16:45.129035 zmc_m6[5006].DB2-zm_rtsp.cpp/401 [Got RTSP transport RTP/AVP;unicast;interleaved=0-1]
12/30/09 00:16:45.129095 zmc_m6[5006].DB2-zm_rtsp.cpp/449 [RTSP Method is RTP/RTSP]
12/30/09 00:16:45.129130 zmc_m6[5006].DB2-zm_rtsp.cpp/450 [RTSP Distribution is unicast]
12/30/09 00:16:45.129148 zmc_m6[5006].DB2-zm_rtsp.cpp/451 [RTSP SSRC is 0]
12/30/09 00:16:45.129165 zmc_m6[5006].DB2-zm_rtsp.cpp/452 [RTSP Local Host is ]
12/30/09 00:16:45.129183 zmc_m6[5006].DB2-zm_rtsp.cpp/453 [RTSP Local Ports are 40200/40201]
12/30/09 00:16:45.129201 zmc_m6[5006].DB2-zm_rtsp.cpp/454 [RTSP Remote Ports are 0/0]
12/30/09 00:16:45.129217 zmc_m6[5006].DB2-zm_rtsp.cpp/455 [RTSP Remote Channels are 0/1]
12/30/09 00:16:45.129249 zmc_m6[5006].DB2-zm_rtsp.cpp/46 [Sending RTSP message: PLAY rtsp://192.168.2.103:80/ RTSP/1.0
Session: 176
Range: npt=0.000-
Authorization: Basic YWRtaW46YWRtaW4=
User-Agent: ZoneMinder/1.24.2
CSeq: 3
]
12/30/09 00:16:45.143886 zmc_m6[5006].DB2-zm_rtsp.cpp/72 [Received RTSP response: RTSP/1.0 200 OK
CSeq: 3
Session: 176
(42 bytes)]
12/30/09 00:16:45.143939 zmc_m6[5006].FAT-zm_rtsp.cpp/471 [Unable to get RTP Info identifier from response 'RTSP/1.0 200 OK
CSeq: 3
Session: 176
']
Also, if I try to set the Source Type to ffmpeg and the source path to rtsp://admin:admin@192.168.2.103:80 I get:
Code: Select all
12/30/09 00:42:54.859489 zms[6323].INF-zm_debug.c/296 [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.06323]
12/30/09 00:42:54.859739 zms[6323].DB1-zms.cpp/98 [Query: mode=jpeg&monitor=6&scale=100&maxfps=15&buffer=1000&connkey=536821&rand=1262133774]
12/30/09 00:42:54.860153 zms[6323].DB1-zm_monitor.cpp/2273 [Got 1 monitors]
12/30/09 00:42:54.865606 zms[6323].DB1-zm_monitor.cpp/338 [monitor purpose=0]
12/30/09 00:42:54.865666 zms[6323].DB1-zm_monitor.cpp/345 [mem.size=36865192]
12/30/09 00:42:54.865764 zms[6323].DB1-zm_monitor.cpp/369 [Unable to map file /dev/shm/zm.mmap.6 (36865192 bytes) to locked memory, trying unlocked]
12/30/09 00:42:54.865959 zms[6323].DB1-zm_zone.cpp/50 [Initialised zone 0/All - 1 - 640x480 - Rgb:ff0000, CM:3, MnAT:15, MxAT:0, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0, OF: 0]
12/30/09 00:42:54.880972 zms[6323].DB1-zm_monitor.cpp/458 [Monitor Drive-Front has function 2]
12/30/09 00:42:54.881029 zms[6323].DB1-zm_monitor.cpp/459 [Monitor Drive-Front LBF = '%N - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
12/30/09 00:42:54.881049 zms[6323].DB1-zm_monitor.cpp/460 [Monitor Drive-Front IBC = 40, WUC = 25, pEC = 10, PEC = 10, EAF = 1, FRI = 1000, RBP = 7, FM = 0]
12/30/09 00:42:54.881070 zms[6323].DB1-zm_monitor.cpp/2470 [Loaded monitor 6(Drive-Front), 0 zones]
12/30/09 00:42:54.881284 zms[6323].DB3-zm_stream.cpp/58 [FPS:0.00, MXFPS:15.00, BFPS:0.00, EFPS:0.00, FM:1]
12/30/09 00:42:54.881337 zms[6323].DB3-zm_stream.cpp/65 [aEFPS:0.00, aFM:1]
12/30/09 00:42:54.881474 zms[6323].DB2-zm_monitor.cpp/3385 [Checking swap image location]
12/30/09 00:42:54.881494 zms[6323].DB3-zm_monitor.cpp/3386 [Checking swap image path]
12/30/09 00:42:54.881557 zms[6323].DB3-zm_monitor.cpp/2879 [Swap path '/tmp/zmswap-m6/zmswap-q536821' missing, creating]
12/30/09 00:42:54.881702 zms[6323].DB2-zm_monitor.cpp/3407 [Assigning temporary buffer]
12/30/09 00:42:54.892692 zms[6323].DB2-zm_monitor.cpp/3410 [Assigned temporary buffer]
12/30/09 00:42:55.393049 zms[6323].ERR-zm_monitor.cpp/3590 [Terminating, last frame sent time 1262133774.892803 secs more than maximum of 10.000000]
12/30/09 00:42:55.393292 zms[6323].DB1-zm_monitor.cpp/3599 [Cleaning swap files from /tmp/zmswap-m6/zmswap-q536821]
12/30/09 00:42:55.393424 zms[6323].DB1-zm_monitor.cpp/3627 [Can't glob '/tmp/zmswap-m6/zmswap-q536821/*.*': 3]
Code: Select all
FFmpeg version SVN-r20969, Copyright (c) 2000-2009 Fabrice Bellard, et al.
built on Dec 29 2009 23:39:58 with gcc 4.3.3
configuration: --enable-gpl --enable-postproc --enable-pthreads
libavutil 50. 7. 0 / 50. 7. 0
libavcodec 52.45. 0 / 52.45. 0
libavformat 52.44. 0 / 52.44. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 2 / 0. 7. 2
libpostproc 51. 2. 0 / 51. 2. 0
Does anyone know what is causing this, and how to fix it?
Thanks