ffmpeg - 'No such file or directory' though the file exists

4.8k views Asked by At

I am running following command to extract audio from videos and merge them into a single file:

-y -hide_banner -i /storage/emulated/0/Videos/video_4.mp4 -i /storage/emulated/0/WhatsApp/Media/WhatsApp Video/VID-20210430-WA0010.mp4 -i /storage/emulated/0/WhatsApp/Media/WhatsApp Video/VID-20210430-WA0052.mp4 -filter_complex [0:a]atrim=duration=1119.028,volume=1[a_0];[1:a]atrim=duration=84.057,volume=1[a_1];[2:a]atrim=duration=278.029,volume=1[a_2];[a_0][a_1][a_2]concat=n=3:v=0:a=1[audio] -map [audio] -acodec aac -vn /storage/emulated/0/Videos/audio.aac 

But ffmpeg says

/storage/emulated/0/Videos/video_4.mp4: No such file or directory

I can ensure that the file exist on that specified path. What might cause the issue?

Note: The same error occures for some other comands too, but in all the cases the video file exist in the specified path.

1

There are 1 answers

0
Cristiano Nascimento On

I had the same problem, I installed it using snap.

So, as a solution, I tried uninstalling using remove and purge, and then I used mv /snap/bin/ffmpeg /snap/bin/ffmpeg_old.

Then I installed using apt-get install ffmpeg, and worked. I guess the problem was the version of ffmpeg.