Introduction
VideoLAN Streaming Howto
Send an audio stream to two unicast IP addresses
video_server# cvlc -vvv audio.mp3 --sout '#duplicate{
dst=rtp{mux=ts,dst=192.168.0.1,port=2001},
dst=rtp{mux=ts,dst=192.168.0.2,port=2002}
}'
client_1# cvlc -vvv rtp://@:2001
client_2# cvlc -vvv rtp://@:2002
Send an audio stream transcoded to MPEG, 16kbps, 8kHz and mono
video_server# cvlc -vvv audio.mp3 --sout '#transcode{
acodec=mpga,ab=16,channels=1,samplerate=8000
}:
duplicate{
dst=rtp{mux=ts,dst=192.168.0.1,port=2001},
dst=rtp{mux=ts,dst=192.168.0.2,port=2002}
}'
Bitrate calculation
bitrate = bits/second (bps)
samplerate = samples/seconds (Hz)
bit_resolution = bits/sample
channels = 1 (mono), 2 (stereo)
bitrate = samplerate * bit_resolution * channels
For example:
16kbps = 8kHz * 2b * 1
No comments:
Post a Comment