Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
play

GitHub Action

Setup FFmpeg

v1

Setup FFmpeg

play

Setup FFmpeg

Download, cache and add to PATH ffmpeg and ffprobe binaries

Installation

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

              

- name: Setup FFmpeg

uses: federicocarboni/setup-ffmpeg@v1

Learn more about this action in federicocarboni/setup-ffmpeg

Choose a version

setup-ffmpeg

Setup FFmpeg in GitHub Actions to use ffmpeg and ffprobe. The action will download, cache and add to PATH a recent FFmpeg build for the current os.

Usage

To use ffmpeg and ffprobe, run the action before them.

steps:
  - uses: actions/checkout@v2
  - uses: FedericoCarboni/setup-ffmpeg@v1
    with:
      # Not strictly necessary, but it may prevent rate limit
      # errors especially on GitHub-hosted macos machines.
      token: ${{ secrets.GITHUB_TOKEN }}
    id: setup-ffmpeg
  - run: ffmpeg -i input.avi output.mkv

This action also sets a few outputs:

  • path: Path to the install directory
  • ffmpeg-path: Path to the ffmpeg executable
  • ffprobe-path: Path to the ffprobe executable

FFmpeg Version

The action uses a recent FFmpeg build provided by the following sources:

Note: This action only supports x64 operating systems.