2

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
  • 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? Jul 24, 2019 at 22:41

1 Answer 1

2

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .