Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
|
Thread Tools | Search this Thread | Display Modes |
31st January 2012, 13:38 | #20 | Link |
Registered User
Join Date: May 2010
Posts: 28
|
TheoRi, I like this idea. Maybe you should open a separate thread in Avisynth usage section.
However, nobody seems to have a solution "ready to use" for your problem. Maybe this can help - not tested. a = your first clip b = your second clip c = Interleave(a, b) # tweak the darker and the brighter clip (play with a_cont, b_cont, may be different thresholds) # so, that the results are similar as possible # (special clip borrowed from Fred) # maybe you need .converttoYv12() before tweak a_ref = a.tweak(cont=a_cont).MT_binarize(threshold=80).greyscale().invert() b_ref = b.tweak(cont=b_cont).MT_binarize(threshold=80).greyscale().invert() c_ref = Interleave(a_ref, b_ref).crop(32, 24, -32, -24) # calculate stabilization data mdata = DePanEstimate(c_ref,trust=1.0,dxmax=20,dymax=20) # stabilize c_stab = DePanInterleave(c, data=mdata) # Select the required frames # may be you have to crop the borders (consider aspect ration) b_stab = c_stab.SelectEvery(6, 2) a_stab = a Good Luck! If it works show a sample. |
Thread Tools | Search this Thread |
Display Modes | |
|
|