I will do something like this:
public void convertToMP3(File input, File output, int kbps) {
input File (AAC / WAV / WMA) you want to convert and output a new .mp3 file (Xuggler figure from conversion extension).
You can increase the quality of kbps (i.e. by 320 kbps, which must be transmitted to 320,000).
Hope that helps :-)
FYI: for Java projects, you will need to import the following if you have not already done so:
import com.xuggle.mediatool.MediaListenerAdapter; import com.xuggle.mediatool.event.IAddStreamEvent; import com.xuggle.xuggler.IStreamCoder;
source share