[Live-devel] Antwort: Re: Empty data file with the "-S <byte-offset>" option

costantino.cerbo at gebit.de costantino.cerbo at gebit.de
Wed Aug 6 08:11:48 PDT 2014


Thanks for the prompt answer!
Unfortunately even with the "-t" option the problem persists.


Here the RTSP protocol exchange (without the "-t" option):


$ openRTSP -S 10 rtsp://192.168.100.1:1554/profile/1/local.sdp

Opening connection to 192.168.100.1, port 1554...
...remote connection opened
Sending request: OPTIONS rtsp://192.168.100.1:1554/profile/1/local.sdp 
RTSP/1.0
CSeq: 2
User-Agent: /home/c.cerbo/dev/live/testProgs/openRTSP (LIVE555 Streaming 
Media v2014.07.25)
EasyPassword: 123456


Received 100 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 2
Public: OPTIONS,DESCRIBE,SETUP,PLAY,PAUSE,TEARDOWN
ForwardRequired: 1


Sending request: DESCRIBE rtsp://192.168.100.1:1554/profile/1/local.sdp 
RTSP/1.0
CSeq: 3
User-Agent: /home/c.cerbo/dev/live/testProgs/openRTSP (LIVE555 Streaming 
Media v2014.07.25)
EasyPassword: 123456
Accept: application/sdp


Received 435 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 200 OK
CSeq: 3
Server: FaramCam/1.0.0
Date: Tue, 18 Jan 2005 22:56:43 GMT
Expires: Tue, 18 Jan 2005 22:56:43 GMT
Content-Base: rtsp://192.168.100.1:1554/profile/1/local.sdp/
Content-Type: application/sdp
Content-Length: 192

v=0
o=- 1 1 IN IP4 192.168.100.1
s=RTSP Session
c=IN IP4 192.168.100.1
t=0 0
a=range:npt=now-
a=control:*
m=video 0 RTP/AVP 125
b=AS:80
a=rtpmap:125 MJPEG/90000
a=control:trackID=0

Opened URL "rtsp://192.168.100.1:1554/profile/1/local.sdp", returning a 
SDP description:
v=0
o=- 1 1 IN IP4 192.168.100.1
s=RTSP Session
c=IN IP4 192.168.100.1
t=0 0
a=range:npt=now-
a=control:*
m=video 0 RTP/AVP 125
b=AS:80
a=rtpmap:125 MJPEG/90000
a=control:trackID=0

Created receiver for "video/MJPEG" subsession (client ports 36242-36243)
Sending request: SETUP 
rtsp://192.168.100.1:1554/profile/1/local.sdp/trackID=0 RTSP/1.0
CSeq: 4
User-Agent: /home/c.cerbo/dev/live/testProgs/openRTSP (LIVE555 Streaming 
Media v2014.07.25)
EasyPassword: 123456
Transport: RTP/AVP;unicast;client_port=36242-36243


Received 193 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
CSeq: 4
Server: FaramCam/1.0.0
Date: Tue, 18 Jan 2005 22:56:53 GMT
Expires: Tue, 18 Jan 2005 22:56:53 GMT
Session: 70706
Transport: RTP/AVP/TCP;unicast;interleaved=0-1


Setup "video/MJPEG" subsession (client ports 36242-36243)
Created output file: "video-MJPEG-1"
Sending request: PLAY rtsp://192.168.100.1:1554/profile/1/local.sdp/ 
RTSP/1.0
CSeq: 5
User-Agent: /home/c.cerbo/dev/live/testProgs/openRTSP (LIVE555 Streaming 
Media v2014.07.25)
EasyPassword: 123456
Session: 70706
Range: npt=0.000-


Received 232 new bytes of response data.
Received a complete PLAY response:
RTSP/1.0 200 OK
CSeq: 5
Server: FaramCam/1.0.0
Date: Tue, 18 Jan 2005 22:56:53 GMT
Expires: Tue, 18 Jan 2005 22:56:53 GMT
Session: 70706
RTP-info: 
url=rtsp://192.168.100.1:1554/profile/1/local.sdp/trackID=0;seq=0;rtptime=0


Started playing session
Receiving streamed data (signal with "kill -HUP 29043" or "kill -USR1 
29043" to terminate)...
Received 1448 new bytes of response data.
Received 915 new bytes of response data.
Received 1448 new bytes of response data.
Received 907 new bytes of response data.
Received 40 new bytes of response data.
Received 2371 new bytes of response data.
Received 111 new bytes of response data.
[...]



Von:
Ross Finlayson <finlayson at live555.com>
An:
LIVE555 Streaming Media - development & use <live-devel at ns.live555.com>
Datum:
06.08.2014 16:35
Betreff:
Re: [Live-devel] Empty data file with the "-S <byte-offset>" option



I'd like to use openRTPS to receive the RTSP stream of my IP cam. 

The first try failed becouse of the following error: 
 "Unable to create receiver for "video/MJPEG" subsession: RTP payload 
format unknown or not supported" 

This appears to be a bug in your IP camera.  The IETF has not defined a 
RTP payload format named "MPEG".  Perhaps they meant "JPEG"?



Then I put the option '-S 5' and the connection was succesfully created: 
 Setup "video/MJPEG" subsession (client ports 55546-55547) 
 Created output file: "video-MJPEG-1" 
 Sending request: PLAY rtsp://192.168.100.1:1554/profile/1/local.sdp/ 
RTSP/1.0 

but the output file: "video-MJPEG-1" is empty

See http://www.live555.com/liveMedia/faq.html#openRTSP-empty-files

Try adding the "-t" option to RTSP.

If this still doesn't work, then please send us the complete RTSP protocol 
exchange (i.e., printed by "openRTSP" to 'stderr'), and we'll take a look 
at it, to see if it tells us anything.

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/ 
_______________________________________________
live-devel mailing list
live-devel at lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20140806/768c1357/attachment.html>


More information about the live-devel mailing list