No such file or directory in FFmpeg

ffmpeg

I am attempting to use FFmpeg to extract audio from a mp4 and I keep running into this error:

CFileffmpegvideo.mp4: No such file or directory exist. 

I am in command prompt (in Windows 7) and have the path as C:\Files\ffmpeg (Where ffmpeg is).

I run this command line

ffmpeg -i C:\Files\ffmpeg\video.mp4 -f mp3 -ab 320000 -vn music.mp3

The file is in the same folder as ffmpeg. I know I am missing something simple here but what is it?

Here is a short video showing the exact process.

Screenshot Showing Error

Best Answer

I recreated your situation (as best I could) on this computer after I watched your video. I downloaded the same version of ffmpeg (don't know about build, since I am limited to using the 32 bit version), copied the executable from the bin folder into the main one, put an mp4 file called "video.mp4" in there, and used your exact command line parameters, minus the absolute path...

ffmpeg -i video.mp4 -f mp3 -ab 320000 -vn music.mp3

enter image description here

..and it worked perfectly for me. Now, I didn't do it from the same directory structure as you had set up (c:\files\ffmpeg). Do you have ffmpeg installed anywhere else on the computer? Have you considered trying a previous build/version? What about 32 bit vs. 64 bit... or vice versa? Is this the first time you've used this version of ffmpeg? Or... has it worked perfectly up until now? Have you tried renaming the input file (silly, I know)?

Related Question