What's new

Remove all instances of first frame from mp4 in FFmpeg


Active member
Staff member
I have a frame occurring several times at the beginning of an MP4 and I'd like to get rid of the duplicate frames, such that it only occurs once.

I know that the ffmpeg -i input.mp4 -vf mpdecimate,setpts=N/FRAME_RATE/TB out.mp4 command will remove duplicates in the entire video, but is there any way to limit this to frames identical to the first one?

Continue reading...