Enable libvpx in ffmpeg so VP9 is actually available#54
Merged
Conversation
libvpx-dev is installed as a build dependency, but ffmpeg's ./configure enabled only --enable-libx264 and --enable-libopus, so libvpx-vp9 was never compiled in. Any `-c:v libvpx-vp9` transcode then fails at runtime with "Unknown encoder 'libvpx-vp9'". Add --enable-libvpx to match the installed dependency.
There was a problem hiding this comment.
Pull request overview
Enables VP9 encoding support in the project’s custom-built FFmpeg Docker image by compiling FFmpeg with libvpx, aligning the build configuration with the already-installed libvpx dependencies.
Changes:
- Add
--enable-libvpxto the FFmpeg./configureflags in the Docker build stage. - Ensures the resulting FFmpeg binary includes the
libvpx-vp9encoder (withlibvpxalready present in the runtime image).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
roddylindsay
approved these changes
Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this fixes
libvpx-devis installed as a build dependency in theDockerfile, but ffmpeg's./configureenables only--enable-libx264and--enable-libopus. libvpx is therefore never compiled into the ffmpeg binary, so any-c:v libvpx-vp9transcode fails at runtime with:VP9 is a natural fit for Earshot's DASH/WebM output (and pairs with the Opus audio it already produces), but it is currently unreachable despite the dependency being present.
Fix
Add
--enable-libvpxto the ffmpeg configure, matching the already-installedlibvpx-dev. One line, no new dependencies, no image-size change beyond the already-present runtimelibvpx.Note on CI
The red
testcheck is unrelated to this change — the workflow'sactions/cache@v2is auto-rejected by GitHub, sotestfails before it runs (lintstill passes).