Chapter 4. Examples for advanced use of VLC’s stream output (transcoding, multiple streaming, etc...)
RTSP
See VLM - Multiple streaming and Video on demand
MMS / MMSH streaming to Windows Media Player
% vlc -vvv input_stream --sout ’#transcode{vcodec=DIV3,vb=256,scale=1,acodec=mp3,ab=32,channels=2}:std{access=mmsh,mux=asfh,dst=:8080}’
VLC media player can connect to this by using the following url : mmsh://server_ip_address:8080 .
Windows Media Player can connect to this by using the following url : mms://server_ip_address:8080 .
Use the es module
Separate audio and video in two PS files:
% vlc -vvv input_stream --sout
’#es{access=file,mux=ps,url_audio=audio-%c.%m,url_video=video-%c.%m}’
Extract the audio track of the input stream to a TS file:
% vlc -vvv input_stream --sout ’#es{access_audio=file,mux_audio=ts,url_audio=audio-%c.%m}’
Stream in unicast the audio track on a port and the video track on another port (NOTE: This will not only work with VLC
0.8.6 or older - FIXME?)
• on the server side:
% vlc -vvv input_stream --sout
’#es{access=rtp,mux=ts,url_audio=192.168.1.2:50002,url_video=192.168.1.2:50004}’
• on the client side: to receive the audio:
% vlc rtp://@:50002
to receive the video:
% vlc rtp://@:50004
Stream in multicast the video and dump the audio in a file:
% vlc -vvv input_stream --sout ’#es{access-video=udp,mux-video=ts,dst-video=239.255.12.42,
access-audio=file,mux-audio=ps,dst-audio=audio-%c.%m}’
Note: You can also combine the es module with the other modules to set-up even more complex solution.
34
Comentarios a estos manuales