question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't find file with ffmpeg.input()

See original GitHub issue
import ffmpeg
import os

file1 = 'input.avi'
file2 = 'output.avi'
print(os.path.isfile(file1))   #True

stream = ffmpeg.input(file1)
stream = ffmpeg.hflip(stream)
stream = ffmpeg.output(stream, file2)
print(stream.get_args())
ffmpeg.run(stream)   #FileNotFoundError: [WinError 2] The system could not find the specified file.

Here is the print:

True
['-i', 'input.avi', '-filter_complex', '[0]hflip[s0]', '-map', '[s0]', 'output.avi']
---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
tossorrowcommented, Dec 19, 2018

Problem solved. Thank you for your help! An error message like ‘ffmpeg is not installed’ cound be very helpful for beginners.

1reaction
kkroeningcommented, Dec 19, 2018

Make sure ffmpeg is installed and on your system path. Note that ffmpeg-python does not try to automatically install ffmpeg. It’s simply a python wrapper for ffmpeg, and it’s up to you to make sure it’s installed in whatever way makes sense for how you’re using it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The system cannot find the file specified with ffmpeg
My solution was to copy ffmpeg.exe into the Python environment where python.exe is. This workaround seems far from ideal but it seems to...
Read more >
No such file or directory in FFmpeg - Super User
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...
Read more >
ffmpeg Documentation
ffmpeg reads from an arbitrary number of input "files" (which can be regular files, pipes, network streams, grabbing devices, etc.), specified by the...
Read more >
How to Install FFmpeg on Windows - Adaptive Samples
But ffmpeg cannot find my pictures and videos. Where should I place the files that I wish to use with ffmpeg? i put...
Read more >
Using FFMPEG, how does one manage to find the file to ...
If a filename or its folder has spaces or other special characters, you need to enclose it in quotes i.e.. ffmpeg -i "c:\this\file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found