mirror of
https://github.com/livepeer/lpms
synced 2026-04-23 00:07:25 +08:00
e8530933f8
Some inputs can trigger the FPS/filter pipeline to generate far more output frames than are actually decoded, leading to very long, disk-filling transcodes. Plumb decoded frame counts into the encoder path and, for video outputs, abort with `lpms_ERR_ENC_RUNAWAY` when encoded frames exceed 25x decoded frames, excluding `image2` inputs where expansion is expected. The exact inputs which trigger this behavior are unknown as of now but we can construct a contrived test which reproduces the issue.