I am trying to convert a full folder of audio files(.wav) to .mp3 by changing the bitrate. The problem is each audio file name consist of multiple '.' and ends with .wav. I am using gnu-parallel to convert the audio signals bitrate and save them as .mp3. My command line:
ls wavs | cut -d '.' -f 1 | parallel -I% ffmpeg -i wavs/%.wav -codec:a libmp3lame -qscale:a 2 wavs_2/%.mp3
but i am getting error due to multiple '.' in my audio file name. Since 'cut' will only accept one delimeter, it just giving "No such file or directory" error. How do I solve this? Here is the example of my audio files: wav_1.wav_norm_mono.wav.
NB: Each directory of the audio files contains more than 1000 audio files.