ffmpeg: better CFR frame duplication selection