Skip to content
play

GitHub Action

Setup FFmpeg action

v1 Latest version

Setup FFmpeg action

play

Setup FFmpeg action

Setup/Install FFmpeg for GitHub Actions

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup FFmpeg action

uses: AnimMouse/setup-ffmpeg@v1

Learn more about this action in AnimMouse/setup-ffmpeg

Choose a version

Setup FFmpeg for GitHub Actions

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.

Usage

FFmpeg

To use ffmpeg, run this action before ffmpeg.

steps:
  - name: Setup FFmpeg
    uses: AnimMouse/setup-ffmpeg@v1
    
  - run: ffmpeg -i in.mkv out.mkv

FFprobe

To use ffprobe, run this action before ffprobe.

steps:
  - name: Setup FFmpeg
    uses: AnimMouse/setup-ffmpeg@v1
    
  - run: ffprobe in.mkv

Specific version

You can specify the version you want. By default, this action downloads the latest release version if version is not specified.

Latest master

steps:
  - name: Setup FFmpeg
    uses: AnimMouse/setup-ffmpeg@v1
    with:
      version: master

Specific release

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

GitHub token

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 }}

Similar actions

  1. FedericoCarboni/setup-ffmpeg