Skip to content

Instantly share code, notes, and snippets.

@kmdarshan
Created August 21, 2019 19:58
Show Gist options
  • Save kmdarshan/2c015c0d0b7746df4a10a15aeb18acf3 to your computer and use it in GitHub Desktop.
Save kmdarshan/2c015c0d0b7746df4a10a15aeb18acf3 to your computer and use it in GitHub Desktop.
Detecting interlaced videos using ffmpeg
/Users/darshan/Downloads/ffmpeg -filter:v idet -frames:v 100 -an -f rawvideo -y /dev/null -i /Users/darshan/Dropbox/Public/1080i/interlaced/Mug\ Drop_Interlaced_4ss.mp4
video:303750kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
[Parsed_idet_0 @ 0x7facaf200000] Repeated Fields: Neither: 63 Top: 20 Bottom: 18
[Parsed_idet_0 @ 0x7facaf200000] Single frame detection: TFF: 81 BFF: 0 Progressive: 20 Undetermined: 0
[Parsed_idet_0 @ 0x7facaf200000] Multi frame detection: TFF: 101 BFF: 0 Progressive: 0 Undetermined: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment