Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RuntimeError: No ffmpeg exe could be found - FFMpeg error in Windows 10

Tags:

ffmpeg

I am trying to run

from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip

However I am continuously getting the followng error :

RuntimeError: No ffmpeg exe could be found. Install ffmpeg on your system, or set the IMAGEIO_FFMPEG_EXE environment variable.

I have installed ffmpeg in my system and have added it in path. Also in cmd,

ffmpeg

gives proper output.

So anything I am doing wrong here ?

like image 362
Soumya Boral Avatar asked Oct 20 '25 03:10

Soumya Boral


1 Answers

try this before importing moviepy:

import os
os.environ["IMAGEIO_FFMPEG_EXE"] = "/usr/bin/ffmpeg"
like image 117
ILIASS B. Avatar answered Oct 22 '25 03:10

ILIASS B.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!