SCENARIO:
- 1 Windows XP, VLC 1.0.3, 172.16.0.1
- 1 Ubuntu Server 9.10, DSS 6.0.3, 172.16.0.2 (is directly connected to the PC) and a public address (89.X.X.X)
I want to use the VLC on the PC as an encoder for the DSS, which will then reflect the stream on the internet.
COMMANDS
Command 1: via http://wiki.videolan.org/Documentation: ... ile_Phones
Code: Select all
vlc -vvv --sout '#transcode{venc=ffmpeg{keyint=1},vcodec=mp4v,vb=100k,acodec=mp4a,fps=10,ab=8k,channels=1,samplerate=16000}:rtp{mp4a-latm,dst=172.16.0.2,port-audio=20000,port-video=20002,ttl=127,name=CHANNEL,sdp=file:///usr/local/movies/channel.sdp}'
Code: Select all
vlc -vvv -I dummy D:\movie.mp4
--sout '#transcode{vcodec=mp4v,vb=32,width=176,height=144,deinterlace,
acodec=mp4a,ab=24,channels=2,samplerate=22100}:rtp{dst=172.16.0.2,port-audio=20000,
port-video=20002,sdp=file:///usr/local/movies/test.sdp}' --ttl 12
Code: Select all
vlc D:\movie.mp4 -vvv --sout "#transcode:rtp" --sout-transcode-vcodec="mp4v" --sout-transcode-vb="512" --sout-transcode-width="360" --sout-transcode-height="288" --sout-transcode-deinterlace --sout-transcode-acodec="mp4a" --sout-transcode-ab="192" --sout-transcode-channels="2" --sout-rtp-port-audio="40000" --sout-rtp-port-video="40002" --sout-rtp-dst="172.16.0.2" --sout-rtp-ttl="127" --sout-rtp-sdp="file:///usr/local/movies/test.sdp"
If I run on the PC:
Command 1: stream_out_standard stream out error: no mux specified or found by extension ; ok, I understand I need to specify the mux (which should be ts or mp4? http://mailman.videolan.org/pipermail/s ... 04349.html) but where? I can't get the right syntax, with only the rpt module on and the mux option set.
Command 2,3:The UI shows that the file is streaming, however the SDP isn't published on the server(do I need to generate it locally and copy it to the server or use rtsp instead of file?). So, the sdp option can put the file on a remote machine, or only on the local machine (127.0.0.1)?
If I run on the server, with the dst address set to 127.0.0.1, just for tests:
I connect with VLC, on a third machine, at rtsp://server_public_ip:554/test.sdp
Command 1,2 : video ok, no sound
Command 3: no video, no sound
So, can anybody please help make this happen?
Thank you!