Tool
Do you see horizontal comb lines along the edges of moving objects in a DVD, a broadcast recording or old camcorder footage? Paste the numbers that ffmpeg’s idet filter prints, and the tool tells you whether the video is truly interlaced, telecine from 24 fps film, or progressive and best left alone, then builds the matching filter command. Your input is processed only inside this browser.
The numbers behind the example buttons are made-up values to show how the tool works. To get the log for your own video, run: ffmpeg -i input.ts -vf idet -frames:v 2000 -an -f null -
The command below does not encode the video. It only analyzes the first 2000 frames. The result appears as the last three lines on the console (stderr). If the file has long stretches of subtitles, credits or still frames, skip to a point with a lot of motion, as in -ss 60, before measuring.
ffmpeg -ss 60 -i input.ts -vf idet -frames:v 2000 -an -f null -
You can see whether the file is flagged as interlaced with ffprobe -v error -select_streams v:0 -show_entries stream=field_order,r_frame_rate -of default=nw=1 input.ts. If you paste this output together with the idet lines, the tool compares the flag with what is actually in the video, because some files have a flag that does not match reality.
parity and order values correspond to these.The verdict follows simple rules set by this site. We have not yet run a measurement to check these thresholds against real video. The tool uses the interlaced share among the classified frames (TFF+BFF+Progressive), the Undetermined share of all frames, and the share of repeated fields.
| Condition (checked in order) | Verdict |
|---|---|
| Fewer than 100 frames in total | Not enough samples |
| Undetermined at 40% or more | Can’t tell, measure again on another section |
| Interlaced below 3% | Progressive |
| Interlaced at 90% or more | True interlaced (if repeated fields are 10% or more, suspect telecine) |
| Interlaced 25–60% + repeated fields at 5% or more | Suspected hard telecine |
| Anything else | Mixed source |
3:2 pulldown stretches 4 film frames into 5 TV frames, and it is known to leave 2 of every 5 frames with fields from two different frames mixed together. That is why an interlaced share near 40% is one clue, but the percentage idet actually reports depends on the source and the motion, so we set a wide range of 25–60%. Hard telecine is only marked as ‘suspected’, and the tool has you confirm the 5-frame cycle yourself with PNG frames.
bwdif or yadif. The two filters and their modes (mode=0 keeps the frame rate, mode=1 outputs one frame per field) are covered in the deinterlacing lesson. We have not measured which one looks better on this site, so encode a short section with both and compare by eye.fieldmatch to match the fields back into the original frames, clean up the frames it could not match with yadif=deint=interlaced, then remove duplicate frames with decimate. The ffmpeg documentation is known to recommend putting a deinterlacer after fieldmatch. The resulting fps drops one frame out of five, so 29.97 becomes 23.976.deint=interlaced processes only the frames ‘flagged as interlaced’. On a file whose flag wrongly says progressive, the filter effectively does nothing, so the tool gives you deint=all instead.-t 10) first and look for comb lines and jittery motion by eye.field_order and the fps with ffprobe. If you worry about quality, use the video quality improvement diagnoser to see whether the source is bitrate-limited, and pick the CRF with the CRF recommender.