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}'
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
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
I feel I miss something really simple about how to make vlc stream both video and audio.
Please help.