mirror of
https://github.com/kkroening/ffmpeg-python.git
synced 2025-11-26 23:31:16 +08:00
When trimming, FFmpeg 5.x retains the input presentation timestamp (PTS) in the output. This causes the trimmed output frames to be duplicates of the first. To prevent this, the output PTS needs to be recalculated.