Repository navigation
Fix video thumbnails on newer ffmpeg, add configurable ffmpeg path - #7037
Merged
jaymcnallie merged 1 commit intoNov 19, 2026
Merged
Conversation
- ffmpeg 9 dropped the -vsync option, so every thumbnail failed when the plugin ran against it. The thumbnail is now made in a single ffmpeg run that picks a frame from the start, a third in and two thirds in, and writes the GIF directly. GIF output doesn't pad the gaps between frames, so the sync option isn't needed anymore and the same command works on 4.3.1, 8.1.2 and 9.0.2. - Short clips now get a 3 frame GIF instead of a single PNG. Videos without a readable duration still get a PNG. - Add an optional ffmpegPath setting so an install can use its own ffmpeg instead of the bundled one, which is x86 only. Uninstalling only removes the bundled copy. - Fix testVideoThumbnail, which read sample.mp4 as a string and uploaded a corrupted file, so it never actually made a thumbnail. It now checks the metacard has one. - Add VideoThumbnailImplFakeFfmpegTest so the new setting and the error handling get tested on any arch.
vinamartin
requested review from
Lambeaux,
derekwilhelm,
jaymcnallie and
jrnorth
November 17, 2026 20:50
vinamartin
approved these changes
Nov 19, 2026
jaymcnallie
approved these changes
Nov 19, 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 does this PR do?
How should this be tested?
CI covers the unit tests and the itest. I also ran the new command against ffmpeg 4.3.1, 8.1.2 and 9.0.2, and tested it end to end in a downstream project with ffmpegPath pointed at 9.0.2.
Any background context you want to provide?
A downstream project moved to ffmpeg 9 and video thumbnails stopped generating. The old code passed -vsync vfr, which ffmpeg renamed to -fps_mode in 5.1 and removed in 9. I debated probing which flag the binary takes, but that seemed fragile. Instead, the GIF is now written directly, so there's no frame padding to turn off.
With the security manager on, a configured binary outside bin_third_party/ffmpeg needs an execute grant in configurations.policy. That's called out in the docs.
Checklist: