Chapter 4. Examples for advanced use of VLC’s
stream output (transcoding, multiple streaming, etc...)
Transcoding
Transcode the input stream and send it to a multicast IP address with the associated SAP announce:
% vlc -vvv input_stream --sout ’#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:
rtp{mux=ts,dst=239.255.12.42,port=5004,sdp=sap://,name="TestStream"}’
Display the input stream, transcode it and send it to a multicast IP address with the associated SAP announce:
% vlc -vvv input_stream --sout ’#duplicate{dst=display,dst=
"transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:
rtp{mux=ts,dst=239.255.12.42,port=5004,sdp=sap://,name="TestStream"}"}’
Transcode the input stream, display the transcoded stream and send it to a multicast IP address with the associated SAP
announce:
% vlc -vvv input_stream --sout ’#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:
duplicate{dst=display,dst=rtp{mux=ts,dst=239.255.12.42,port=5004,sdp=sap://,name="TestStream"}}’
Multiple streaming
Send a stream to a multicast IP address and a unicast IP address:
% vlc -vvv input_stream --sout ’#duplicate{dst=
rtp{mux=ts,dst=239.255.12.42,port=5004,sdp=sap://,name="TestStream"},
dst=rtp{mux=ts,dst=192.168.1.2,port=50000}}’
Display the stream and send it to two unicast IP addresses:
% vlc -vvv input_stream
--sout ’#duplicate{dst=display,
dst=rtp{mux=ts,dst=192.168.1.12,port=50002},
dst=rtp{mux=ts,dst=192.168.1.42,port=50004}}’
Send parts of a multiple program input stream:
% vlc -vvv multiple_program_input_stream
--sout ’#duplicate{dst=rtp{mux=ts,dst=239.255.12.42,port=5004},select="program=12345",
dst=rtp{mux=ts,dst=239.255.12.43,port=5004}, select="video,program=1234-2345"}’
This command sends the program of the input stream which id is 12345 to 239.255.12.42 and all video programs with id
between 1234 and 2345 to 239.255.12.43.
Transcoding and multiple streaming
Transcode the input stream, display the transcoded stream and send it to a multicast IP address with the associated SAP
announce and an unicast IP address:
32
Kommentare zu diesen Handbüchern