[vlc-devel] how to make VLC VOD Server to stream content as MPEG2 TS

MRUKANT POPAT mrukant at gmail.com
Thu Dec 1 10:19:54 CET 2005


****
plz do not get intimated by the size of this email, you may want to
read between these lines
               %%%%%%IMPORTANT START%%%%%%%%
                %%%%%%IMPORTANT END  %%%%%%%%
******



hi Friends,
I am using "VLC" and "BitBand " as VOD server.

****BITBAND STORY*****
I use VLC as player to play content. The content is a MPEG2 TS. Name
of file is content.mpg
Server IP is 10.201.42.201.
When play vlc using this command "vlc
rtsp://10.201.42.201:554//Video/content.mpg"  below is the
communication happening between VLC client and Bitband server as
captured using ethereal.

-------------Bitband communication start------------
Request: OPTIONS rtsp://10.201.42.201:554//Video/content.mpg RTSP/1.0\r\n
Method: OPTIONS
URL: rtsp://10.201.42.201:554//Video/content.mpg
CSeq: 1\r\n
User-Agent: VLC Media Player (LIVE.COM Streaming Media v2005.06.16)\r\n
\r\n


Response: RTSP/1.0 200 OK\r\n
Status: 200
CSeq: 1\r\n
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS\r\n
Server: BitBand-Vision\r\n
Accept-Scale: -24,-16,-8,-4,-2,1,2,4,8,16,24\r\n
\r\n

Request: DESCRIBE rtsp://10.201.42.201:554//Video/content.mpg RTSP/1.0\r\n
Method: DESCRIBE
URL: rtsp://10.201.42.201:554//Video/content.mpg
CSeq: 2\r\n
Accept: application/sdp\r\n
User-Agent: VLC Media Player (LIVE.COM Streaming Media v2005.06.16)\r\n
\r\n

Response: RTSP/1.0 200 OK\r\n
Status: 200
CSeq: 2\r\n
Content-type: application/sdp
Content-length: 236
\r\n
Session Description Protocol
Session Description Protocol Version (v): 0
Owner/Creator, Session Id (o): - 3342410404 0 IN IP4 0.0.0.0
Owner Username: -
Session ID: 3342410404
Session Version: 0
Owner Network Type: IN
Owner Address Type: IP4
Owner Address: 0.0.0.0
Session Name (s): BitBand RTSP Server
Time Description, active time (t): 3342410404 0
Session Start Time: 3342410404
Session Stop Time: 0
Session Attribute (a): ServerLoad:0
Session Attribute Fieldname: ServerLoad
Session Attribute Value: 0
Media Description, name and address (m): video 0 RTP/AVP 33
Media Type: video
Media Port: 0
Media Proto: RTP/AVP
Media Format: MPEG-II transport streams
Media Attribute (a): rtpmap:33 MP2T/90000
Media Attribute Fieldname: rtpmap
Media Attribute Value: 33 MP2T/90000
Media Attribute (a): control:rtsp://10.201.42.201:554//Video/content.mpg
Media Attribute Fieldname: control
Media Attribute Value: rtsp://10.201.42.201:554//Video/content.mpg
Media Attribute (a): range:npt=0.0-235.541
Media Attribute Fieldname: range
Media Attribute Value: npt=0.0-235.541
Media Attribute (a): bitrate:5221
Media Attribute Fieldname: bitrate
Media Attribute Value: 5221

Request: SETUP rtsp://10.201.42.201:554//Video/content.mpg RTSP/1.0\r\n
Method: SETUP
URL: rtsp://10.201.42.201:554//Video/content.mpg
CSeq: 3\r\n
Transport: RTP/AVP;unicast;client_port=3004-3005
User-Agent: VLC Media Player (LIVE.COM Streaming Media v2005.06.16)\r\n
\r\n

Response: RTSP/1.0 200 OK\r\n
Status: 200
CSeq: 3\r\n
Session: 25753301;timeout=60
Transport: RTP/AVP;unicast;source=10.201.42.201;client_port=3004-3005;mode="PLAY"
Content-type: application/sdp
Content-length: 236
\r\n
Session Description Protocol
Session Description Protocol Version (v): 0
Owner/Creator, Session Id (o): - 3342410405 0 IN IP4 0.0.0.0
Owner Username: -
Session ID: 3342410405
Session Version: 0
Owner Network Type: IN
Owner Address Type: IP4
Owner Address: 0.0.0.0
Session Name (s): BitBand RTSP Server
Time Description, active time (t): 3342410405 0
Session Start Time: 3342410405
Session Stop Time: 0
Session Attribute (a): ServerLoad:0
Session Attribute Fieldname: ServerLoad
Session Attribute Value: 0

                        %%%%%%IMPORTANT START%%%%%%%%
Media Description, name and address (m): video 0 RTP/AVP 33
Media Type: video
Media Port: 0
Media Proto: RTP/AVP
Media Format: MPEG-II transport streams
Media Attribute (a): rtpmap:33 MP2T/90000
Media Attribute Fieldname: rtpmap
Media Attribute Value: 33 MP2T/90000
Media Attribute (a): control:rtsp://10.201.42.201:554//Video/content.mpg
Media Attribute Fieldname: control
Media Attribute Value: rtsp://10.201.42.201:554//Video/content.mpg
Media Attribute (a): range:npt=0.0-235.541
Media Attribute Fieldname: range
Media Attribute Value: npt=0.0-235.541
Media Attribute (a): bitrate:5221
Media Attribute Fieldname: bitrate
Media Attribute Value: 5221
                        %%%%%%IMPORTANT END%%%%%%%%

Request: PLAY rtsp://10.201.42.201:554//Video/content.mpg RTSP/1.0\r\n
Method: PLAY
URL: rtsp://10.201.42.201:554//Video/content.mpg
CSeq: 4\r\n
Session: 25753301
Range: npt=0.000-\r\n
User-Agent: VLC Media Player (LIVE.COM Streaming Media v2005.06.16)\r\n
\r\n

Response: RTSP/1.0 200 OK\r\n
Status: 200
CSeq: 4\r\n
Session: 25753301
Range: npt=0.000-235.541\r\n
Scale: 1\r\n
Speed: 1.0\r\n
RTP-Info: url=10.201.42.201:554//Video/content.mpg;seq=14909;rtptime=0;ssrc=2255\r\n
\r\n
-------------Bitband communication end------------
this shows that the content is being streaming as MPEG2 TS in UDP packets.


*********VLC VOD SERVER STORY**********
1) I started VLC as VOD server using this command on windows 2000
"vlc --ttl 12 -vvv --color -I telnet --telnet-password videolan
--rtsp-host 0.0.0.0:554"

2) I did a telnet using this command on same machine "telnet localhost 4212"
3) Then I configured VLC server using these commands :-
"new test vod enabled"
"setup test input content.mpg"

4) I used VLC player to play the content with this command:-
"vlc rtsp://10.201.42.36:554/test" . The content is being played properly.

Below is the communication between VLC player and VLC VOD server as
taken from ethereal.

--------------vlc server communication start---------------------
Request: OPTIONS rtsp://10.201.42.36:554/test RTSP/1.0\r\n
        Method: OPTIONS
        URL: rtsp://10.201.42.36:554/test
    CSeq: 15\r\n
    User-Agent: VLC Media Player (LIVE.COM Streaming Media v2005.06.16)\r\n
    \r\n

Response: RTSP/1.0 200 Ok\r\n
        Status: 200
    Cseq: 15\r\n
    Server: VLC Server\r\n
    Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE\r\n
    Content-length: 0
    \r\n

 Request: DESCRIBE rtsp://10.201.42.36:554/test RTSP/1.0\r\n
        Method: DESCRIBE
        URL: rtsp://10.201.42.36:554/test
    CSeq: 16\r\n
    Accept: application/sdp\r\n
    User-Agent: VLC Media Player (LIVE.COM Streaming Media v2005.06.16)\r\n
    \r\n

Response: RTSP/1.0 200 OK\r\n
        Status: 200
    Content-type: application/sdp
    Server: VLC Server\r\n
    Content-length: 265
    Cseq: 16\r\n
    Cache-Control: no-cache\r\n
    \r\n
Session Description Protocol
    Session Description Protocol Version (v): 0
    Owner/Creator, Session Id (o): - 9081576036 3 IN IP4 127.0.0.1
    Time Description, active time (t): 0 0
    Session Attribute (a): tool:vlc 0.8.2
    Connection Information (c): IN IP4 0.0.0.0/0

                        %%%%%%IMPORTANT START%%%%%%%%
    Media Description, name and address (m): audio 0 RTP/AVP 14
        Media Type: audio
        Media Port: 0
        Media Proto: RTP/AVP
        Media Format: MPEG-I/II Audio
    Media Attribute (a): rtpmap:14 MPA/90000
        Media Attribute Fieldname: rtpmap
        Media Attribute Value: 14 MPA/90000
    Media Attribute (a): control:rtsp://0.0.0.0:554/test/trackid=0
        Media Attribute Fieldname: control
        Media Attribute Value: rtsp://0.0.0.0:554/test/trackid=0
    Media Description, name and address (m): video 0 RTP/AVP 32
        Media Type: video
        Media Port: 0
        Media Proto: RTP/AVP
        Media Format: MPEG-I/II Video
    Media Attribute (a): rtpmap:32 MPV/90000
        Media Attribute Fieldname: rtpmap
        Media Attribute Value: 32 MPV/90000
    Media Attribute (a): control:rtsp://0.0.0.0:554/test/trackid=1
        Media Attribute Fieldname: control
        Media Attribute Value: rtsp://0.0.0.0:554/test/trackid=1
                        %%%%%%IMPORTANT END%%%%%%%%

Request: SETUP rtsp://0.0.0.0:554/test/trackid=0 RTSP/1.0\r\n
        Method: SETUP
        URL: rtsp://0.0.0.0:554/test/trackid=0
    CSeq: 17\r\n
    Transport: RTP/AVP;unicast;client_port=3048-3049
    User-Agent: VLC Media Player (LIVE.COM Streaming Media v2005.06.16)\r\n
    \r\n

Response: RTSP/1.0 200 OK\r\n
        Status: 200
    Transport: RTP/AVP/UDP;client_port=3048-3049
    Server: VLC Server\r\n
    Content-length: 0
    Cseq: 17\r\n
    Cache-Control: no-cache\r\n
    Session: 29358
    \r\n

Request: SETUP rtsp://0.0.0.0:554/test/trackid=1 RTSP/1.0\r\n
        Method: SETUP
        URL: rtsp://0.0.0.0:554/test/trackid=1
    CSeq: 18\r\n
    Transport: RTP/AVP;unicast;client_port=3050-3051
    Session: 29358
    User-Agent: VLC Media Player (LIVE.COM Streaming Media v2005.06.16)\r\n
    \r\n

Response: RTSP/1.0 200 OK\r\n
        Status: 200
    Transport: RTP/AVP/UDP;client_port=3050-3051
    Server: VLC Server\r\n
    Content-length: 0
    Cseq: 18\r\n
    Cache-Control: no-cache\r\n
    Session: 29358
    \r\n

Request: PLAY rtsp://10.201.42.36:554/test RTSP/1.0\r\n
        Method: PLAY
        URL: rtsp://10.201.42.36:554/test
    CSeq: 19\r\n
    Session: 29358
    Range: npt=0.000-\r\n
    User-Agent: VLC Media Player (LIVE.COM Streaming Media v2005.06.16)\r\n
    \r\n

Response: RTSP/1.0 200 OK\r\n
        Status: 200
    Server: VLC Server\r\n
    Content-length: 0
    Cseq: 19\r\n
    Cache-Control: no-cache\r\n
    Session: 29358;timeout=5
    \r\n

--------------vlc server communication end---------------------

This shows that VLC VOD server's response to DESCRIBE is audio and
video as different stream with differrent trackids. so the player does
setup twice in this case.

MY PROBLEM:-

I want VLC VOD server to stream content as MPEG2 TS over UDP, the same
way in which BITBAND is doing. and any one please let me know how
should I configure/start VLC so that I can make is stream content as
MPEG2TS over UDP.

Thanks in advance.

regards,
MRUKANT

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list