Since mplayer(2) itself does not detect if a source is interlaced or not I started a small project to analyse a source with mplayers pullup filter.
basically it collects the output of :
and:Code:mplayer2 -noframedrop -lavdopts threads=8 -speed 100 -v "path to input" -nosound -vo null -ao null -nosub -vf pullup
which both output stuff like:Code:mplayer2 -noframedrop -lavdopts threads=8 -speed 100 -v "path to input" -nosound -vo null -ao null -nosub -vf pp=lb,pullup
per frame.Code:V: 17.9 537/537 156% 513% 0.0% 0 0 100.00x affinity: .0++1..2+.3. breaks: .0..1..2|.3. duration: 2
Depending if there's a + or a ++ between the numbers in affinity it counts light (+) and strong (++) affinities, whether or not there is a break and how the duration changed.
Looking at the affinity, breaks and duration changed it than decides if the content is:
a. normal interlaced
b. telecine
c. field-blended
d. mixed progressive/interlaced
content.
I know that this can't replace detection with your own eyes using (avisynth and separate fields&co), but it might be a nice gimmick for those that don't know how to use avisynth.
Since I normally only have telecine or interlaced content I play with (+ I'm a n00b when it comes to interlacing&co) this decision isn't really tested well.
-> Would be nice if some of you could test it (drag&drop a file into it, than press Analyse) with some of your content and if you think/know that the tool is wrong, please post a small sample of the content which shows the problem and tell me what it should have detected.
Cu Selur
Ps.: Uploaded source to github: https://github.com/Selur/MPlayerInterlaceDetection
+ Reply to Thread
Results 1 to 1 of 1
-
Last edited by Selur; 9th May 2017 at 12:52.
Similar Threads
-
libx264 detection
By rzippert in forum LinuxReplies: 1Last Post: 24th Feb 2012, 08:31 -
Can an interlaced file appear not to be interlaced on the monitor?
By rcavanah in forum Authoring (DVD)Replies: 5Last Post: 10th Sep 2011, 22:09 -
Converting DV to H.264 and comparing interlaced/de-interlaced
By amirh1 in forum Video ConversionReplies: 5Last Post: 23rd Jun 2010, 09:16 -
No more hdtv detection
By bjjaddict in forum ComputerReplies: 0Last Post: 27th Nov 2009, 15:09 -
Convert interlaced HD to interlaced SD with AVISynth
By jorbje in forum Video ConversionReplies: 19Last Post: 22nd Mar 2008, 18:48