Remove 3:2 Pulldown in FFmpeg

This article provides a quick guide on how to perform Inverse Telecine (IVTC) in FFmpeg to remove a 3:2 pulldown pattern from a video. By using the fieldmatch and decimate filters, you can successfully reconstruct the original progressive frames and restore your video from 29.97 fps to its native 23.976 fps.

The Inverse Telecine (IVTC) Process

When film (shot at 24 frames per second) is converted to NTSC television format (29.97 frames per second), a process called 3:2 pulldown is used to stretch the frames across interlaced fields. To reverse this and restore the original progressive video, FFmpeg utilizes a two-step filter chain:

  1. fieldmatch: Reconstructs the original progressive frames by matching complementary interlaced fields.
  2. decimate: Identifies and removes the duplicate frames resulting from the field matching process, reducing the frame rate back to 23.976 fps.

The Basic FFmpeg Command

To remove the 3:2 pulldown pattern, run the following command in your terminal:

ffmpeg -i input.mp4 -vf "fieldmatch,decimate" -c:a copy output.mp4

How the Command Works

Advanced Adjustments

In most cases, the default settings for these filters work perfectly. However, if your source video has specific properties, you can tweak the filter parameters: