所以,我們一直在使用一個名為 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,但這沒有幫助。
uj5u.com熱心網友回復:
這是我的使用方法FedericoCarboni/setup-ffmpeg:
steps:
...
- name: Set up FFmpeg
uses: FedericoCarboni/setup-ffmpeg@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
然后,我的包從系統路徑中ffmpegio提取了兩者ffmpeg并沒有任何問題。ffprobe也許您沒有包含令牌?
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/522996.html
