(2 instances changefps() and fieldseparated video does not work for unknow reasons... I've gotten such weirdness in past, too) this is much easier to achieve with a full framerate deinterlacer (bobber) like kerneldeint. my script to do so: Code:
you rock, thank you... nice to know my theary was corret and it was just an avisynth strangness... this should be fixxed as the events leading up the error can be very common.
wow, that is a tricky script... good thing I use alot of (a ? b : c) in my perl scripting or I would not be able to grasp it... as it is, it looks nice, and I can grasp it, and it seems as tho it would work in all sorts of strange situations. did you develop the routine after reading my question, or did you have it before?
I've done this kiind of speedup/slowdown earlier but it wasn't built into an AVS function. I've just written down it out of my head within some minutes... Tested it a little bit, and now you have the ultimative speed-changer for AVS :)
To affect just some frames clip.Trim(900,1025),ChangeSpeed(....) This will return just those clips changed in speeds, then use the ++ operator to join the sections you did not want changed. To change the speed of audio without pitch distortions use the timestretch command: put "sound = a.TimeStretch(tempo=((1/factor)*100))" at the beggining, and: "AudioDub(sound)" at the end.
Q1 - scharfis_brain's "changespeed" function works well except when attempting to uses mode "2" (motion compensated frame interpolation). I am assuming this is due to my using MaskTools_1.5.1.0. Does it no longer include the required "mvconvertfps"? While on the subject of the "changespeed" function...anyone see a reason why "KernelDeint" could not be replaced with "LeakKernelDeint"? Just don't want to be unpleasantly surprised. Q2 - Valky! How did you get that script to allow a segmented slow-motion request? My attempts keep failing. I was also advised that mixed framerates are illegal in an avs script. Regards, Tio
--------------------- Pete 2002 M Coupe 2011 X3 2008 M3/4 sold 1998 M3/4 sold
Tio - 1. mvtools and masktools are entirely different filters. You can find both on that page. 1a. The simple API this function uses is fully compatible with Leak's. 2. changespeed does not change the fps, it inserts or removes frames as necessary, but more intelligently than my earlier lame suggestion. ;p Thanks for digging this up, I should save that script. Edit: You might need to use one of the old versions, since later versions changed a lot of the internals. In particular, 0.9.5 was current when this thread was hot.
@foxyshadis Thanks for tagging along and setting me on the straight and narrow again regarding the items listed above. ;-) Me thinks the frustration factor blinded me to the fact I was looking at two completely different filters. I can verify though that the latest "mvtools" is different from the one suggested by scharifs_brain and will not work with the "changespeed" function. The earlier one is 5kb larger so I am guessing that functionality may have been removed. I might also add that now being able to use that mode has stunned me. The output looks great but getting there is a trial of patience. I usually encode HD material at 6fps but using mode 2 on this function/filter I get 3spf (seconds per frame)! Thankfully I am only encoding 3 seconds of slo-motion. Appreciate all your input!
--------------------- The most effective way to hide the truth is to make those that see it appear as fools.