scikit-video / scikit-video

Video Processing in Python
http://www.scikit-video.org
BSD 3-Clause "New" or "Revised" License
672 stars 146 forks source link

ffmpeg/ffprobe not found in path #159

Open page200 opened 2 years ago

page200 commented 2 years ago

I get C:\Python27\lib\site-packages\skvideo\__init__.py:306: UserWarning: ffmpeg/ffprobe not found in path: C:\Python27\Lib\site-packages\skvideo\io even though that directory contains ffmpeg.py, ffmpeg.pyc, ffprobe.py, ffprobe.pyc. What might be the problem?

Calling setFFmpegPath a second time doesn't yield the warning anymore, but I still get Cannot find installation of real FFmpeg (which comes with ffprobe) when calling skvideo.io.vread.

page200 commented 2 years ago

Solution: import skvideo, then skvideo.setFFmpegPath('...'), then import skvideo.io in this order.

Please add that this order is important to the error message Cannot find installation of real FFmpeg (which comes with ffprobe).

Moreover, setFFmpegPath had to point to .exe files (from an installation of ffmpeg) rather than .pyc files that are in the skvideo\io directory.