[SOLVED] openRTSP LIVE555 Streaming Media setup

Forum for questions and support relating to the 1.28.x releases only.
Locked
cookiemonster
Posts: 32
Joined: Sat Aug 15, 2015 1:46 pm

[SOLVED] openRTSP LIVE555 Streaming Media setup

Post by cookiemonster »

Hello,
Could someone of you clever people help a zoneminder newbie? I can't find the right combination of settings in zoneminder version 1.28 for my ipcamera Sinocam SN-IPC-7004A-WI-UK.
However I get these details from a command line using openRTSP:

Code: Select all

root@Plex:/ # openRTSP rtsp://192.168.1.8:554
Opening connection to 192.168.1.8, port 554...
...remote connection opened
Sending request: OPTIONS rtsp://192.168.1.8:554 RTSP/1.0
CSeq: 2
User-Agent: openRTSP (LIVE555 Streaming Media v2015.02.26)


Received 120 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 2
Server: HiIpcam/V100R003 VodServer/1.0.0
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY


Sending request: DESCRIBE rtsp://192.168.1.8:554 RTSP/1.0
CSeq: 3
User-Agent: openRTSP (LIVE555 Streaming Media v2015.02.26)
Accept: application/sdp


Received 550 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 200 OK
CSeq: 3
Server: HiIpcam/V100R003 VodServer/1.0.0
Content-Type: application/sdp
Content-Length: 390
Content-Base: rtsp://192.168.1.8:554

v=0
o=StreamingServer 3433055887 1360307302917838 IN IP4 192.168.1.8
s=rtsp session
e=NONE
c=IN IP4 0.0.0.0
t=0 0
m=video 0 RTP/AVP 96
b=AS:70
a=control:trackID=0
a=rtpmap:96 H264/90000
a=fmtp:96 profile-level-id=4d001f; packetization-mode=1; sprop-parameter-sets=Z00AH5WoFAFuQA==,aO48gA==
a=framesize:96 1280-720
m=audio 0 RTP/AVP 8
a=control:trackID=1
a=rtpmap:8 PCMA/8000

Opened URL "rtsp://192.168.1.8:554", returning a SDP description:
v=0
o=StreamingServer 3433055887 1360307302917838 IN IP4 192.168.1.8
s=rtsp session
e=NONE
c=IN IP4 0.0.0.0
t=0 0
m=video 0 RTP/AVP 96
b=AS:70
a=control:trackID=0
a=rtpmap:96 H264/90000
a=fmtp:96 profile-level-id=4d001f; packetization-mode=1; sprop-parameter-sets=Z00AH5WoFAFuQA==,aO48gA==
a=framesize:96 1280-720
m=audio 0 RTP/AVP 8
a=control:trackID=1
a=rtpmap:8 PCMA/8000

Unable to determine our source address: This computer has an invalid IP address: 0.0.0.0
Unable to determine our source address: This computer has an invalid IP address: 0.0.0.0
Unable to determine our source address: This computer has an invalid IP address: 0.0.0.0
Created receiver for "video/H264" subsession (client ports 40756-40757)
Unable to determine our source address: This computer has an invalid IP address: 0.0.0.0
Unable to determine our source address: This computer has an invalid IP address: 0.0.0.0
Created receiver for "audio/PCMA" subsession (client ports 49128-49129)
Sending request: SETUP rtsp://192.168.1.8:554/trackID=0 RTSP/1.0
CSeq: 4
User-Agent: openRTSP (LIVE555 Streaming Media v2015.02.26)
Transport: RTP/AVP;unicast;client_port=40756-40757


Received 213 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
CSeq: 4
Server: HiIpcam/V100R003 VodServer/1.0.0
Session: 610770502480616
Transport: RTP/AVP;unicast;mode=play;source=192.168.1.8;client_port=40756-40757;server_port=6008-6009;ssrc=011edf68


Setup "video/H264" subsession (client ports 40756-40757)
Sending request: SETUP rtsp://192.168.1.8:554/trackID=1 RTSP/1.0
CSeq: 5
User-Agent: openRTSP (LIVE555 Streaming Media v2015.02.26)
Transport: RTP/AVP;unicast;client_port=49128-49129
Session: 610770502480616

Received 213 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
CSeq: 5
Server: HiIpcam/V100R003 VodServer/1.0.0
Session: 610770502480616
Transport: RTP/AVP;unicast;mode=play;source=192.168.1.8;client_port=49128-49129;server_port=6010-6011;ssrc=6db51e31

Setup "audio/PCMA" subsession (client ports 49128-49129)
Created output file: "video-H264-1"
Created output file: "audio-PCMA-2"
Sending request: PLAY rtsp://192.168.1.8:554 RTSP/1.0
CSeq: 6
User-Agent: openRTSP (LIVE555 Streaming Media v2015.02.26)
Session: 610770502480616
Range: npt=0.000-

Received 222 new bytes of response data.
Received a complete PLAY response:
RTSP/1.0 200 OK
CSeq: 6
Server: HiIpcam/V100R003 VodServer/1.0.0
Session: 610770502480616
RTP-Info:url=rtsp://192.168.1.8:554/trackID=0;seq=0;rtptime=0 RTP-Info:url=rtsp://192.168.1.8:554/trackID=1;seq=0;rtptime=0 

Started playing session
Receiving streamed data (signal with "kill -HUP 69293" or "kill -USR1 69293" to terminate)...
I've tried many combinations setting up the monitor. I've set it to source type "Ffmpeg", function "monitor".
Source tab:
-source path: openRTSP://192.168.1.8:554
-remote method: RTP/RTSP/HTTP
-options:
I've put many of the variations on the source path and options, but I still can't see video.
In some of the best results in the zm logs I get:

Code: Select all

onitor-1: 847000 - Capturing at 500.00 fps	zm_monitor.cpp	2907
2015-08-15 07:01:55.320948	zmc_m1	10052	INF	Monitor-1: 846000 - Capturing at 500.00 fps	zm_monitor.cpp	2907
2015-08-15 07:01:53.330240	zmc_m1	10057	ERR	Unable to open input openRTSP://192.168.1.8:554 due to: Success	zm_ffmpeg_camera.cpp	264
2015-08-15 07:01:53.012355	zmc_m1	10052	INF	
I'd really appreciate some pointers how to best use these results to complete the monitor setup.
Many thanks in advance.
Last edited by cookiemonster on Tue Aug 18, 2015 3:01 pm, edited 1 time in total.
cookiemonster
Posts: 32
Joined: Sat Aug 15, 2015 1:46 pm

Re: openRTSP LIVE555 Streaming Media setup

Post by cookiemonster »

Anyone please? How do I use the details from the camera response in zone minder's monitor remote tabs?
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: openRTSP LIVE555 Streaming Media setup

Post by knight-of-ni »

The url you are using in the source path is wrong.

You used the right one here:

Code: Select all

root@Plex:/ # openRTSP rtsp://192.168.1.8:554
But when you entered it into the zoneminder source path field, you changed it to:

Code: Select all

openRTSP://192.168.1.8:554
openRTSP is a third party application. It is not a protocol, which is why this doesn't work. Change it to:

Code: Select all

rtsp://192.168.1.8:554
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
cookiemonster
Posts: 32
Joined: Sat Aug 15, 2015 1:46 pm

[SOLVED] openRTSP LIVE555 Streaming Media setup

Post by cookiemonster »

I had tried with combinations of OPEN rtsp:// , SETUP rtsp:// and others but not just rtsp://192.168.1.8:554 as you advised. That's given a healthier response in the logs. I've got a blue monitor but that's another issue.
Thanks knnniggett.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: openRTSP LIVE555 Streaming Media setup

Post by knight-of-ni »

Try using a remote method of "RTP/unicast"
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
cookiemonster
Posts: 32
Joined: Sat Aug 15, 2015 1:46 pm

Re: openRTSP LIVE555 Streaming Media setup

Post by cookiemonster »

Done by fluke but you were right again.
The remote method I used to make it work was RTP/RTSP and is working now.
Thanks again.
Locked