Can't find file with ffmpeg.input()
See original GitHub issueimport 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:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Problem solved. Thank you for your help! An error message like ‘ffmpeg is not installed’ cound be very helpful for beginners.
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.