You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Normalize reserved color_trc in Preview transcoder
Same swscaler failure that broke VideoH264 (7ec46fe) also hit the
lowres preview transcoder on ProRes inputs with reserved/unknown
color_transfer ("Operation not supported", exit 161). Insert the
setparams=color_trc=bt709 filter ahead of scale in both Preview
filter graphs — the video-only branch and the video+audio branch
via buildVUMeterFilters.
Collapse the two NormalizeColorTRCFilter variants into a single
helper that takes a StreamInfo and picks the first video stream
internally, so VideoH264 and Preview share one code path.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
-`services/transcode/preview.go::GrowingPreview` has the same `trc:reserved` swscaler-failure exposure that was just fixed in `Preview` and `VideoH264`. The function reads from a pipe (`pipe:0`) so it cannot probe upfront. Options to consider: probe `input.FilePath` once before starting (race-y while the file is still growing), unconditionally insert `setparams=color_trc=bt709` since the workflow is SDR-only, or accept the trc explicitly from the caller.
0 commit comments