Log in

View Full Version : Add synthesized frame every fourth frame (95% finished, but ...)


johnmeyer
13th November 2012, 01:10
I have video that was apparently converted from 30p to 24p simply by decimating every fifth frame. Based on many previous posts in this forum, I have code which does an excellent job at identifying where the video "jumps" due to the missing frame.

Automatically fix dups followed (eventually) by drops (http://forum.doom9.org/showpost.php?p=1510813&postcount=6)

I also have code (created by MugFunky) which can synthesize the missing frame ("FillDrops").

Here's a short clip that shows the problem:

Decimated 23.976 video (http://dl.dropbox.com/u/1561578/Decimated%20video.mp4)

My problem is that I'm having a "brain freeze" on how to generate code that will look at each group of four frames, use the metric logic for each frame to determine where the jump occurs, and then insert a synthesized frame at that point.

I know that variations on this same problem has been discussed before, but I can't find anything that is quite the same as this. Any ideas, clues, or hints would be greatly appreciated. Thanks!

johnmeyer
13th November 2012, 02:11
Actually, I may be able to get results that are adequate simply by using the script I linked to above, using cycleR=6 & cycle=16 in TDecimate, and using a fairly high threshold for the detection metrics. The video is so lousy that if I end up creating a few synthesized frames where they aren't needed, it won't be visually noticeable.

So, I may not need the help after all.