I have three .wav files in my folder and I want to convert them into .mp3 with ffmpeg.
.wav
.mp3
I wrote this bash script, but when I execute it, onl
Use the -nostdin flag in the ffmpeg command line:
-nostdin
ffmpeg -nostdin -i "$name.wav" -ab 320k -ac 2 "$name.mp3"
See the -stdin/-nostdin flags in the ffmpeg documentation ➠ https://ffmpeg.org/ffmpeg.html
-stdin