skywind3000 / skywind3000/PyStand

如何打包ffmpeg

Open
#68 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.2k
Forks
146
PR merge metrics
No merged PRs in 30d

Description

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

请问该如何设置?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the reported PyInstaller --add-binary approach, the .int sibling directory, and the configuration added to the int file. Reproduce the packaging attempt and trace why the bundled ffmpeg.exe is not found; the issue is done when the generated exe can use the packaged ffmpeg successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.