I have a folder consisting of many subfolders, each with other subfolders and therein wav files.
I want to convert all of the files like this:
ffmpeg -i BmBmGG-BmBmBmBm.wav -acodec pcm_s16le -ar 44100 BmBmGG-BmBmBmBm.wav
BUT, I want the directory structures and names preserved. Either overwritten or in a parallel directory.
The above command words fine when the output file has a different name, however, with the same name I get an error:
Multiple frames in a packet from stream 0
[pcm_s24le @ 0x1538ac0] Invalid PCM packet, data has size 4 but at least a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
I first tried bulk converting like this:
ffmpeg -i */*/*.wav -acodec pcm_s16le -ar 44100 */*/*.wav
Unfortunately, this gives the same problem. How can I store them in a parallel directory? Say new///*.wav?