Hey,
I am trying to detect the difference between a matted/letterboxed 2.23:1 picture and a matted/letterboxed 1.85:1 picture. Is this possible and is there any program available that can do this? Have tried looking through Windows Media Player API, DirectShow API and Windows Media Center API. Came across a couple of potential items, but can anyone shed any light if this is actually possible before I go wasting more time?
Cheers,
Matt
+ Reply to Thread
Results 1 to 4 of 4
Thread: Video resolution detection
Thread
-
not likely. the only thing the video headers will supply is what the video is now - 4:3, not what it was before the black bars were permanently encoded into the video.
If you're asking how to crop and resize them automatically, AutoGK has that feature. Maybe run the 2 of them through AGK and study the AviSynth scripts it generates. AviSynth's Autocrop.dll does the cropping.I am trying to detect the difference between a matted/letterboxed 2.23:1 picture and a matted/letterboxed 1.85:1 picture.
Otherwise I'm not quite sure what you're asking. I can tell the difference with my eyes.
Mask the frame with a rectangle exactly the same size and location of the active region of a 2.23:1 image and measure the amount of black in the resulting image. A 2.23:1 will result in a wholly black frame. A 1.85:1 will have residual active image data. You could create a histogram of the masked image to count the number of pixels of a given color. You may need to fine tune things to account for things such as the bars not being perfectly black etc.
John Miller
enosoft - high performance tools for music and video
Home of the Enosoft DV Processor - Free for personal use!
Similar Threads
-
video censor detection
By epsi1on in forum Newbie / General discussionsReplies: 12Last Post: 13th Sep 2009, 12:24 -
video breakup and glitch detection software
By Zone3 in forum Newbie / General discussionsReplies: 4Last Post: 16th Feb 2009, 22:22 -
viewing a QVGA/VGA resolution video with NTSC DV resolution (with a TV)
By Lightbreaker in forum EditingReplies: 1Last Post: 6th Jan 2009, 02:57 -
Black Frame Detection for Splitting Video
By sorefinger in forum EditingReplies: 2Last Post: 6th Mar 2006, 13:11 -
I want to do edge detection in a video file
By sundar2011 in forum LinuxReplies: 9Last Post: 23rd Nov 2004, 19:39
Statistics
Newest guides
Latest tool updates
New media comments



Quote