github操作ffmpeg-gem找不到ffprobe



因此,我们一直在使用一种名为streamio ffmpeg的gem,它一直运行良好。我们一直在使用github操作来为我们的前端进行集成和E2E测试。我们还必须为我们正在使用的另一个依赖项添加python。现在,当我们在github操作上运行E2E套件时,streamio ffmpeg无法找到ffprobe二进制文件,因为操作运行程序上也安装了python。

我们得到以下消息:

Body: Puma caught this error: No such file or directory - the ffprobe binary could not be found in /home/runner/work/folder_name/another_folder_name/server/vendor/bundle/ruby/2.7.0/bin:/opt/hostedtoolcache/Python/3.10.8/x64/bin:/opt/hostedtoolcache/Python/3.10.8/x64:/opt/hostedtoolcache/Ruby/2.7.6/x64/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games (Errno::ENOENT)

streamio ffmpeg说:

Specify the path to ffmpeg
By default, the gem assumes that the ffmpeg binary is available in the execution path and named ffmpeg and so will run commands that look something like ffmpeg -i /path/to/input.file .... Use the FFMPEG.ffmpeg_binary setter to specify the full path to the binary if necessary:
FFMPEG.ffmpeg_binary = '/usr/local/bin/ffmpeg'

那么,我如何找到ffprobe二进制文件的位置,并告诉github操作这些信息??我尝试过在github操作运行程序中手动安装ffmpeg,但这没有帮助。

以下是我如何使用FedericoCarboni/setup-ffmpeg:

steps:
...
- name: Set up FFmpeg
uses: FedericoCarboni/setup-ffmpeg@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}

然后,我的包ffmpegio拾取了ffmpeg&ffprobe不存在系统路径中的任何问题。也许你没有包括代币?

最新更新