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

如何打包ffmpeg #68

Open
zty1122zty opened this issue Dec 21, 2023 · 1 comment
Open

如何打包ffmpeg #68

zty1122zty opened this issue Dec 21, 2023 · 1 comment

Comments

@zty1122zty
Copy link

请教一下如何将ffmpeg打包到exe中。参照pyinstaller的打包方法,是通过--add-binary安装ffmpeg。
已尝试过:将ffmpeg安装包bin目录下的ffmpeg.exe放在.int同级目录下,并在int文件中添加如下配置
os.environ['PATH'] = r'.\ffmpeg\bin\ffmpeg.exe’
未能生效。

请问该如何设置?

@skywind3000
Copy link
Owner

skywind3000 commented Dec 21, 2023

放到同级目录下的话,直接在 py 里执行即可,用不着设置 os.environ,再,你的设置方法也是错的,PATH 环境变量设置的是目录,而不是具体文件。

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

2 participants