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.
#726 detects and ignores the duplicate frames. This PR prevents the duplicate frames by recalculating the PTS.