Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pyinstaller Hidden import 'ffmpeg-python' not found #849

Open
petunja opened this issue Aug 8, 2024 · 0 comments
Open

Pyinstaller Hidden import 'ffmpeg-python' not found #849

petunja opened this issue Aug 8, 2024 · 0 comments

Comments

@petunja
Copy link

petunja commented Aug 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant