Skip to content

[6.x] Fix video thumbnail generation logging an error on success#14971

Merged
jasonvarga merged 1 commit into
statamic:6.xfrom
lazerg:fix-video-thumbnail-error-logging
Jul 10, 2026
Merged

[6.x] Fix video thumbnail generation logging an error on success#14971
jasonvarga merged 1 commit into
statamic:6.xfrom
lazerg:fix-video-thumbnail-error-logging

Conversation

@lazerg

@lazerg lazerg commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Generating a video thumbnail runs ffmpeg, which writes its banner and progress output to stderr even on a successful run. Since Process::logErrorOutput() logs any stderr output at error level regardless of the exit code, every successful thumbnail generation still logged an error (surfacing in Sentry, Bugsnag, etc.), and on FFmpeg 8 the image2 muxer additionally warned about the missing -update option when writing a single image. This adds -hide_banner and -loglevel error so the command only writes to stderr on an actual error, and switches -vframes 1 to -frames:v 1 -update 1 to write the single frame without the warning.

Fixes #14944

@jasonvarga jasonvarga merged commit 50f1bf6 into statamic:6.x Jul 10, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Video thumbnail generation logs an error on every successful run (ffmpeg writes to stderr; ffmpeg 8 adds an image2 -update warning)

2 participants