Q:

Setting mp3 bitrate with xuggler

I need to convert audio files to mp3 format with a 192 kbps bitrate using xuggler.
The method addAudioStream, which implements the IWriter interface, is writing the audio files at 64 kbps.
How can I set the bit rate?

A:

Get the Stream Coder for the audio stream and call setBitrate like this:
getStreamCoder().setBitRate(192*1024);

