You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: