Skip to content

AnimMouse/setup-ffmpeg

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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