Difference between revisions of "Bit-reservoir issues"
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
In RTP streaming it is desired that consecutive frames are independent. Otherwise, if a packet is lost, the next one or more frames cannot be properly decoded by the receiver, which results, depending on the decoder, either in noise (glitches) or silence. | In RTP streaming it is desired that consecutive frames are independent. Otherwise, if a packet is lost, the next one or more frames cannot be properly decoded by the receiver, which results, depending on the decoder, either in noise (glitches) or silence. | ||
On [[Instreamer 100 | Instreamer]] the bit-reservoir is configurable. Disable it when streaming RTP. | On [[Instreamer 100 | Instreamer]] the bit-reservoir is configurable. Disable ("kept empty") it when streaming RTP. | ||
== Streaming files == | == Streaming files == | ||
Line 16: | Line 16: | ||
lame --nores original_file.mp3 new_file_without_bit_reservoir.mp3 | lame --nores original_file.mp3 new_file_without_bit_reservoir.mp3 | ||
Back to [['''[[FAQ#Audio_FAQ]]''']] |
Latest revision as of 11:46, 12 April 2013
What is bit-reservoir
One of the features of the MP3 format is so called bit-reservoir, which can be simply explained as storing information from one frame to the next frame. If an MP3 file or stream is encoded with bit-reservoir feature enabled then the consecutive frames depend on each other. Otherwise they are completely self-contained.
The bit-reservoir feature slightly reduces the overall size of the file.
Bit-reservoir in streaming
In RTP streaming it is desired that consecutive frames are independent. Otherwise, if a packet is lost, the next one or more frames cannot be properly decoded by the receiver, which results, depending on the decoder, either in noise (glitches) or silence.
On Instreamer the bit-reservoir is configurable. Disable ("kept empty") it when streaming RTP.
Streaming files
PC files are usually encoded with bit-reservoir enabled. Therefore if you decide to stream files, make sure that you create the files for streaming without bit-reservoir. You can also re-encode your existing files using e.g. Lame:
lame --nores original_file.mp3 new_file_without_bit_reservoir.mp3
Back to [[FAQ#Audio_FAQ]]