I am trying to covert mp3 file into mp4 files with a for loop.
The files are in the same directory where for loop is running is running.
for f in *.mp3; do ffmpeg -i "$f" -c:a libmp3lame "outputs/${f%.mp3}.mp4"; done
I am getting an error:
No such file or directory
I am able to convert files with ffmpeg one by one with this command. It seems that ffmpeg gets the full name from just the name of the file, but in the loop that does not happen
ffmpeg.exe -loop 1 -i .\Plutarch.jpg -i 'Plutarh.mp3' -shortest -c:v libx264 -c:a copy result.mkv