Closed nfavrod closed 9 years ago
Hi,
The encoding code is there: https://github.com/savonet/liquidsoap/blob/master/src/encoder/lame_encoder.ml#L163 and in the lame binding: https://github.com/savonet/ocaml-lame
As far as I can tell, we use the lame library quite straightforwardly, setting initial parameters then passing data down to the encoder and reading out encoded data..
Do you have an encoded file to share so we can look at it? Also, have you tried with the %shine
encoder?
I'll close as incomplete due to inactivity. Feel free to reopen.
I have a problem streaming a playlist with liquidsoap (both in airtime and liquidsoap standalone).
output.icecast(%mp3(bitrate = 256, stereo = true), ... ) stream to an external icecast but the coder is very unstable. It bursts a lot more than 300kbps, and it makes the stream drop some packets and cut very often. I use a professional codec (Barix like) to receive this stream and even with a big buffer, it drops a lot of packets.
When I encode the stream with Darkice, the stream is very stable. I don't have the variations. The CBR coder doesn't variate more than 5kbps. It's much more stable.
I also tried to use VBR ( %mp3.vbr(quality=3) ) and it's a little better but it's not perfect either.
Can you tell me a little more how liquidsoap encodes and check if the processing could be improved?