I've seen lots of answers for this.

I'm trying to convert all videos in a folder to audio with.

for i in *.mp4; do ffmpeg -i "$i" -vn -acodec copy "${i%.*}.aac"; done

FFmpeg throws the error:

*.mp4: No such file or directory

Can anyone let me know how to do this?

  • 3
    Are there actually any .mp4 files in (the top level of) the current directory? or are they all inside subdirectories? Does ls *.mp4 return anything? – steeldriver Jul 24 at 22:41

Thanks @steeldriver for the comment suggesting there might not be any files with that name in the current directory and they might be in subdirectories instead.

It was dumber than that... the files were all .MP4 (note the case).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.