GitHub Action
Setup FFmpeg action
Setup FFmpeg on GitHub Actions to use ffmpeg
and ffprobe
.
This action installs FFmpeg for use in actions by installing it on tool cache using AnimMouse/tool-cache.
Ubuntu and Windows builds are provided by BtbN/FFmpeg-Builds.
macOS builds are provided by evermeet.cx.
This action is implemented as a composite action.
To use ffmpeg
, run this action before ffmpeg
.
steps:
- name: Setup FFmpeg
uses: AnimMouse/setup-ffmpeg@v1
- run: ffmpeg -i in.mkv out.mkv
To use ffprobe
, run this action before ffprobe
.
steps:
- name: Setup FFmpeg
uses: AnimMouse/setup-ffmpeg@v1
- run: ffprobe in.mkv
You can specify the version you want. By default, this action downloads the latest release version if version is not specified.
steps:
- name: Setup FFmpeg
uses: AnimMouse/setup-ffmpeg@v1
with:
version: master
For Ubuntu and Windows, specify the major and minor version only. Visit BtbN/FFmpeg-Builds for the list of release tags.
steps:
- name: Setup FFmpeg
uses: AnimMouse/setup-ffmpeg@v1
with:
version: 5.1
For macOS, specify the major, minor, and patch version. Visit evermeet.cx for the list of release tags.
steps:
- name: Setup FFmpeg
uses: AnimMouse/setup-ffmpeg@v1
with:
version: 5.1.2
This action automatically uses a GitHub token in order to authenticate with GitHub API and avoid rate limiting. You can also specify your own read-only fine-grained personal access token.
steps:
- name: Setup FFmpeg
uses: AnimMouse/setup-ffmpeg@v1
with:
token: ${{ secrets.GH_PAT }}