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. |
19th December 2005, 11:16 | #1 | Link |
interlace this!
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,555
|
automated framedrop filler script :)
yo, i just got a clip that i was meant to put a slowmo on (using clouded's script), and found that it was full of dropped frames which were b0rking the motion-interpolation.
so i wrote a little function to replace all frames that are identical to the previous one with a motion-interpolation of the adjacent frames. it could be useful for captures that you can't get again, but are full of drops (this one's got heaps... i odn't know what happened there). Code:
function filldrops (clip c) { vf=c.mvanalyse(truemotion=true,pel=2,isb=false,delta=1,idx=1) vb=c.mvanalyse(truemotion=true,pel=2,isb=true,delta=1,idx=1) global filldrops_d = c.mvflowinter(vb,vf,time=50,idx=1) global filldrops_c = c c.scriptclip("""ydifferencefromprevious()==0? filldrops_d : filldrops_c""") } xxxsource("blah.xxx") filldrops() currently it doesn't support interlaced frames (though that would be quite handy, and very do-able, but i don't care enough right now). hope someone finds a use for this [edit] oh, forgot to say (but it's kinda important...) that this requires fizick's latest version of manao's MVtools. you can get it from http://bag.hotmail.ru [edit 2] thanks Didée, i just put your changes in.
__________________
sucking the life out of your videos since 2004 Last edited by Mug Funky; 28th January 2006 at 04:11. |
19th December 2005, 11:43 | #2 | Link |
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 5,389
|
Why took it one year and a half to make this appear?
BTW, those not equipped with that much memory might add Code:
[...] vf=c.mvanalyse(truemotion=true,pel=2,isb=false,delta=1, idx=1) vb=c.mvanalyse(truemotion=true,pel=2,isb=true,delta=1, idx=1) global filldrops_d = c.mvflowinter(vb,vf,time=50, idx=1) [...] In case other MVTools-based operations are running in the same script, eventually use another positive number for idx ... it must be unique for each instance where MVTools are working on a given instance of input. In this case here, without specifying "idx", MVTools would interpolate the input stream three times, and would buffer all three interpolations as well ... but they're all the same.
__________________
- We´re at the beginning of the end of mankind´s childhood - My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!) |
19th December 2005, 13:52 | #3 | Link |
interlace this!
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,555
|
thanks for the tip i've been getting increasingly lazy in my scripts lately, and tend to just fall back on presets for everything.
so long as it works in concept
__________________
sucking the life out of your videos since 2004 |
Thread Tools | Search this Thread |
Display Modes | |
|
|