Streaming both video and audio via RTSP

About encoding, codec settings, muxers and filter usage
wuuru
New Cone
New Cone
Posts: 2
Joined: 04 Apr 2006 11:51

Streaming both video and audio via RTSP

Postby wuuru » 04 Apr 2006 17:50

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.

wang
Blank Cone
Blank Cone
Posts: 31
Joined: 17 Mar 2006 15:02

Postby wang » 06 Apr 2006 15:43

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?


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 17 guests