}
static void copyFileToWav(File source) throws IllegalArgumentException, InputFormatException, EncoderException{
File target = new File(getDirByExtension("wav"), changeExtension(getRelativePath(source), ".wav"));
if (target.exists()) return;
AudioAttributes audio = new AudioAttributes();
audio.setCodec("pcm_s16le");
audio.setBitRate(new Integer(128000));
audio.setChannels(new Integer(2));
audio.setSamplingRate(new Integer(44100));
EncodingAttributes attrs = new EncodingAttributes();
attrs.setFormat("wav");
attrs.setAudioAttributes(audio);
Encoder encoder = new Encoder(new Myffmpeg());
encoder.encode(source, target, attrs);