[Live-devel] Open Questions Regarding Directory Setup

Li, Chen Chen.Li2 at boeing.com
Mon Aug 20 13:02:24 PDT 2007


I only ask because I see this example and it makes me think an entire
directory is being setup.

     C->V: SETUP rtsp://video.example.com/twister/video RTSP/1.0
           CSeq: 1
           Transport: RTP/AVP/UDP;unicast;client_port=3058-3059

Section 14.1 of the RTSP spec.  Any help would be appreciated.

Full section:
C->W: GET /twister.sdp HTTP/1.1
           Host: www.example.com
           Accept: application/sdp

     W->C: HTTP/1.0 200 OK
           Content-Type: application/sdp



Schulzrinne, et. al.        Standards Track                    [Page 63]

RFC 2326              Real Time Streaming Protocol            April 1998


           v=0
           o=- 2890844526 2890842807 IN IP4 192.16.24.202
           s=RTSP Session
           m=audio 0 RTP/AVP 0
           a=control:rtsp://audio.example.com/twister/audio.en
           m=video 0 RTP/AVP 31
           a=control:rtsp://video.example.com/twister/video

     C->A: SETUP rtsp://audio.example.com/twister/audio.en RTSP/1.0
           CSeq: 1
           Transport: RTP/AVP/UDP;unicast;client_port=3056-3057

     A->C: RTSP/1.0 200 OK
           CSeq: 1
           Session: 12345678
           Transport: RTP/AVP/UDP;unicast;client_port=3056-3057;
                      server_port=5000-5001

     C->V: SETUP rtsp://video.example.com/twister/video RTSP/1.0
           CSeq: 1
           Transport: RTP/AVP/UDP;unicast;client_port=3058-3059

     V->C: RTSP/1.0 200 OK
           CSeq: 1
           Session: 23456789
           Transport: RTP/AVP/UDP;unicast;client_port=3058-3059;
                      server_port=5002-5003

     C->V: PLAY rtsp://video.example.com/twister/video RTSP/1.0
           CSeq: 2
           Session: 23456789
           Range: smpte=0:10:00-

     V->C: RTSP/1.0 200 OK
           CSeq: 2
           Session: 23456789
           Range: smpte=0:10:00-0:20:00
           RTP-Info: url=rtsp://video.example.com/twister/video;
             seq=12312232;rtptime=78712811

     C->A: PLAY rtsp://audio.example.com/twister/audio.en RTSP/1.0
           CSeq: 2
           Session: 12345678
           Range: smpte=0:10:00-

     A->C: RTSP/1.0 200 OK
           CSeq: 2
           Session: 12345678



Schulzrinne, et. al.        Standards Track                    [Page 64]

RFC 2326              Real Time Streaming Protocol            April 1998


           Range: smpte=0:10:00-0:20:00
           RTP-Info: url=rtsp://audio.example.com/twister/audio.en;
             seq=876655;rtptime=1032181

     C->A: TEARDOWN rtsp://audio.example.com/twister/audio.en RTSP/1.0
           CSeq: 3
           Session: 12345678

     A->C: RTSP/1.0 200 OK
           CSeq: 3

     C->V: TEARDOWN rtsp://video.example.com/twister/video RTSP/1.0
           CSeq: 3
           Session: 23456789

     V->C: RTSP/1.0 200 OK
           CSeq: 3

   Even though the audio and video track are on two different servers,
   and may start at slightly different times and may drift with respect
   to each other, the client can synchronize the two using standard RTP
   methods, in particular the time scale contained in the RTCP sender
   reports.

-----Original Message-----
From: Ross Finlayson [mailto:finlayson at live555.com] 
Sent: Monday, August 20, 2007 12:37 PM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] Open Questions Regarding Directory Setup

>This question is a little basic, but I see an ability to setup a 
>session for an entire folder.  I want to be able to set up one session 
>for all the files in one folder, but from what I see it does not seem 
>to work as I get a 404 stream not found.  Are there limits to what can 
>be recognized as a valid rtsp command that does not specify a file, but

>instead specifies a directory?

A RTSP "DESCRIBE" command (and a subsequent "SETUP","PLAY") applies only
to a single, specific stream.  There is nothing in the RTSP protocol
that applies to a set of streams, e.g., multiple files in a directory.
(In fact, the RTSP protocol has no concept of a 'directory' at all.)

If you want to - for example - list the files in a directory, then you
will need to use some other protocol, such as HTTP.
-- 

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


More information about the live-devel mailing list