Skip to content
Commit c0316bbd authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Produce: Drop frames with a PTS equal or lower to the last frame

In some cases, we end up with frames that have an FFmpeg PTS equal to
the previous frame. When this happens, both libx264 and FFmpeg will
start complaining and we get a bunch of logging about frame writes
failing. I suspect this happens because we have nanosecond scale PTS in
KWin/PipeWire but FFmpeg only has millisecond scale PTS, so we end up
with frames with the same millisecond PTS after narrowing. Since FFmpeg
refuses to write these frames anyway, we may as well drop them before we
even pass them to the encoder.
parent edd6a675
Pipeline #487249 passed with stage
in 51 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment