[Live-devel] About RTSP Url

alexkid.live55 at gmail.com alexkid.live555 at gmail.com
Wed Dec 7 09:05:57 PST 2005


Thanks for your answer Ross,

I have test this feature with testOnDemandeRTSPServer. I have set up the 
URL of the mpeg4ESVideoTest to 
"rtsp://192.168.1.98:8554/mpeg4ESVideoTest/toto".
And try to stream it with openRTSP : -V option and openRTSP can't find 
the stream:

You find enclosed the outpout of openRtsp :


User-Agent: openrtsp (LIVE555 Streaming Media v2005.09.23)

Received OPTIONS response: RTSP/1.0 200 OK
CSeq: 1
Date: Wed, Dec 07 2005 07:53:13 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE


Sending request: DESCRIBE rtsp://192.168.1.98:8554/mpeg4ESVideoTest/toto 
RTSP/1.
0
CSeq: 2
Accept: application/sdp
User-Agent: openrtsp (LIVE555 Streaming Media v2005.09.23)


Received DESCRIBE response: RTSP/1.0 404 Stream Not Found
CSeq: 2
Date: Wed, Dec 07 2005 07:53:13 GMT


Failed to get a SDP description from URL 
"rtsp://192.168.1.98:8554/mpeg4ESVideoT
est/toto": cannot handle DESCRIBE response: RTSP/1.0 404 Stream Not Found

Ross Finlayson a écrit :

>
>> I'm new with live media!
>> I have made a piece of software that stream 4 lives video sources, 
>> from a MPEG4 encoder card, using unicast RTSP portocol.
>> It's work fine,  but I would like set my RTSP URL like this :
>>    * 
>> <rtsp://x.x.x.x:8554/streamer/camera0>rtsp://x.x.x.x:8554/streamer/camera0 
>> for having both sound and video from camera 0,
>>    * 
>> <rtsp://x.x.x.x:8554/streamer/camera0/video>rtsp://x.x.x.x:8554/streamer/camera0/video 
>> for having only the video from camera 0,
>>    * and 
>> <rtsp://x.x.x.x:8554/streamer/camera0/audio>rtsp://x.x.x.x:8554/streamer/camera0/audio 
>> for having sound only.
>> but actually I just can set up only this url : 
>> <rtsp://x.x.x.x:8554/camera0>rtsp://x.x.x.x:8554/camera0 wich 
>> contains both sound and video.
>>
>> Must I make a new RTSPServer, or something like this?
>
>
> No, just use a single "RTSPServer", but add to it three different 
> "ServerMediaSession" objects, one for each of the three streams that 
> you want to support.  See "testProgs/testOnDemandRTSPServer.cpp" for 
> an example of this.
>
> Note that the RTSPServer implementation treats the "streamName" 
> parameter as being an opaque string, so it's OK to have it include "/" 
> characters - e.g., "streamer/camera0/video".
>
> Note also that you will need to add *new* "ServerMediaSubsession" 
> objects to each "ServerMediaSession" object.  So, for example, the 
> audio "ServerMediaSubsession" object that you add to your 'audio-only' 
> "ServerMediaSession" will be different from the audio 
> "ServerMediaSubsession" object that you add to your'audio+video' 
> "ServerMediaSession".  (Ditto for video.)  Because you're streaming 
> from a live source, you will need to change the "reuseFirstSource" 
> variable to "True" (see "testProgs/testOnDemandRTSPServer.cpp").
>
>
>     Ross Finlayson
>     Live Networks, Inc. (LIVE555.COM)
>     <http://www.live555.com/>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>



More information about the live-devel mailing list