Detecting interlaced video with ffmpeg

Created on 2023-06-06T19:44:40-05:00

Return to the Index

This card pertains to a resource available on the internet.

This card can also be read via Gemini.

Interlaced content is relatively rare to encounter in the wild now.

ffmpeg -filter:v idet \
    -frames:v 100 \
    -an \
    -f rawvideo -y /dev/null \
    -i ~/Downloads/some_interlaced_video.mkv
# Example output (this is interlaced, TFF style)
# [Parsed_idet_0 @ 0x1ccf7c0] Single frame detection: TFF:167 BFF:0 Progressive:1 Undetermined:0
# [Parsed_idet_0 @ 0x1ccf7c0] Multi frame detection: TFF:168 BFF:0 Progressive:0