FFmpeg script on all files in folder

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?

1

1 Answer

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).

0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like