ffmpeg-python icon indicating copy to clipboard operation
ffmpeg-python copied to clipboard

Pyinstaller Hidden import 'ffmpeg-python' not found

Open petunja opened this issue 1 year ago • 0 comments

Hi to all, Trying to convert python scipts to exe with pyinstaller.

In my code I use ffmpeg-python: def ffmpeg_save_clip(self,output_video: str, clip_start: str, clip_end: str): (ffmpeg .input(self.file.get_videopath(), ) .output(output_video, vcodec='copy', ss=clip_start, to=clip_end, acodec='copy') .global_args('-y') .run()) so i call pyinstaller from terminal with related flag: pyinstaller --windowed --hidden-import "ffmpeg-python" --noconsole --icon=app.ico --name "app" main.py

I checked also: pip install ffmpeg-python Requirement already satisfied: ffmpeg-python in c:\python38\lib\site-packages (0.2.0) Requirement already satisfied: future in c:\python38\lib\site-packages (from ffmpeg-python) (0.18.3)

but I get from pyinstaller: Hidden import 'ffmpeg-python' not found

App works in visual-studio, but when I run pyinstaller exe and try to save clip, it freeze without response. Tank you.

Note: I also added ffmpeg.exe into root folder of pyinstaller app.

petunja avatar Aug 08 '24 18:08 petunja