EncodingAttributes attrs = new EncodingAttributes();
attrs.setFormat("mp3");
attrs.setAudioAttributes(audio);
Encoder encoder = new Encoder(new Myffmpeg());
encoder.encode(source, target, attrs);
}
static void copyFileToOgg(File source) throws IllegalArgumentException, InputFormatException, EncoderException{
File target = new File(getDirByExtension("ogg"), changeExtension(getRelativePath(source), ".ogg"));
if (target.exists()) return;