Page 1 of 1

Streaming both video and audio via RTSP

Posted: 04 Apr 2006 17:50
by wuuru
Hi,

I am trying to stream a mpeg file via RTSP. I use the following command line:

Code: Select all

vlc -vvv FILE.MPEG --loop --sout '#rtp{dst=DEST_IP,port=1234,sdp=rtsp://MY-SERVER:8080/test.sdp}'
After that I can receive this stream on DEST_IP by connecting to rtsp://MY-SERVER:8080/test.sdp .

However, if FILE.MPEG contains both video and audio, only audio is being streamed. If FILE.MPEG contains no audio, then video is being streamed.

An RTSP request "DESCRIBE /test.sdp" to my server only returns information about the only track with trackID=0 that is either audio or video.

That is, if FILE.MPEG contains both video and audio, the server responds:

Code: Select all

v=0 o=- 1144165631390720 2 IN IP4 127.0.0.1 s=NONE t=0 0 a=tool:vlc 0.8.5-test1 c=IN IP4 85.30.228.50 m=audio 1230 RTP/AVP 14 a=rtpmap:14 MPA/90000 a=control:trackID=0
Here we can see m=audio, but no information about video.

If FILE.MPEG contains video and no audio, the server responds:

Code: Select all

v=0 o=- 1144165738841814 2 IN IP4 127.0.0.1 s=NONE t=0 0 a=tool:vlc 0.8.5-test1 c=IN IP4 85.30.228.50 m=video 1232 RTP/AVP 32 a=rtpmap:32 MPV/90000 a=control:trackID=0
So now we got video, but could not get it when audio is present.

I feel I miss something really simple about how to make vlc stream both video and audio.

Please help.

Posted: 06 Apr 2006 15:43
by wang
Hi :)
I read your message, because I am interested in setting up a VOD server with VLC using RTSP.

I have tried many command lines and I didn't succeed in setting up a VOD service with VLC on my WinXP machine. :cry:

Each time I have tried the command lines configuration, a new VLC interface was launched, and then nothing seemed to happen as if the service had stopped by itself...

Do I have to launch vlm on HTTP interface before?

Could you post here some guidance for me please?