View Full Version : Avisynth "fast forward" plugin
Reino
19th November 2008, 23:25
Hi there,
I've been searching all over the internet (this forum, google, avisynth.org/warpenterprises, etc.) for a "fast-forward"/"timewarp" Avisynth plugin, but I couldn't find any...
Two examples of what I mean:
http://img511.imageshack.us/img511/6016/snapshot20081119211011zl3.th.jpg (http://img511.imageshack.us/img511/6016/snapshot20081119211011zl3.jpg) http://img530.imageshack.us/img530/4306/snapshot20081119225733qy1.th.jpg (http://img530.imageshack.us/img530/4306/snapshot20081119225733qy1.jpg)
These effects were made by Adobe Premiere, or Sony Vegas, or something alike. I was wondering if this is also possible with Avisynth.
p.s. are the following codes the only ones available to speed up video fragments, or are there other possibilities?
1) Selectevery(5).AssumeFPS(25)
2) ConvertFPS(5,zone=80,vbi=49).AssumeFPS(25)
Thanks in advance.
Leak
20th November 2008, 00:53
I was wondering if this is also possible with Avisynth.
If those images were made by overlaying several consecutive frames of a video for each frame, you might want to look at AviSynth's built in TemporalSoften with 255 for the thresholds...
np: Rhythm & Sound with Tikiman - Never Tell You (Version) (Showcase)
Reino
20th November 2008, 18:41
Thanks Leak, that's what I was looking for. Although it's not exactly the same, it's showing good results. Thanks!
TO-Avalanche(secret).mkv - 4.96MB (http://www.zshare.net/download/5160360227d40eac/) MKV[H.264+Vorbis]
AVISource("C:\video\TO-Avalanche(secret).avi") # AVI[FPS1+PCM] (1024x768)
ConvertToYV12()
Lanczos4Resize(640,480)
LimitedSharpenFaster()
vid = Last
vida = vid.Trim(0,139)
vidb = vid.Trim(140,319).Selectevery(5).AssumeFPS(25).TemporalSoften(1,255,30, scenechange=39, mode=2).TimeStretch(tempo=500)
vidc = vid.Trim(320,660)
vidd = vid.Trim(661,961).Selectevery(5).AssumeFPS(25).TemporalSoften(1,255,30, scenechange=39, mode=2).TimeStretch(tempo=500)
vide = vid.Trim(962,0)
vida++vidb++vidc++vidd++vide
I do have another question though...
Since only 25 / 5 returns a round number, how can I realize 2x, 3x, or 4x fastforward?
Gavino
20th November 2008, 20:57
I do have another question though...
Since only 25 / 5 returns a round number, how can I realize 2x, 3x, or 4x fastforward?
Use SelectEvery(2), SelectEvery(3) or SelectEvery(4).
With TimeStretch of 200, 300 or 400.
Reino
20th November 2008, 23:45
Omg, of course!
I some how thought in case of 4x ffwd for instance I had to enter 25/4=6.25 for TimeStretch... :s
I don't know how I got it in my head, but I must've been really confused at that time! Thanks, Gavino! ;)
2Bdecided
21st November 2008, 00:39
I'd do the temporal soften before the select every. Unless that's not the effect you want.
Cheers,
David.
Reino
21st November 2008, 11:56
I've just done some testing. When I put TemperalSoften in front of SelectEvery, the timewarp-effect is MUCH less noticable (and even less after encoding)!! Sorry, this was not my intention.
Thanks for your input though.
2Bdecided
21st November 2008, 12:40
Not instead, as well, like this (I think - not tested)...
vidb = vid.Trim(140,319).TemporalSoften(2,255,255).Selectevery(5).AssumeFPS(25).TemporalSoften(1,255,30, scenechange=39, mode=2).TimeStretch(tempo=500)
I could be wrong - I'm not sure how it'll interact with TimeStretch.
Cheers,
David.
Reino
21st November 2008, 18:25
First I thought, what's the use of using the same filter twice, but at the same time I was curious to know if it would make any difference... I was shocked!
The result was actually much better than before:
http://img175.imageshack.us/img175/4848/1timevs2timestempsoftgu8.gif
Everything looks so much smoother now. Also those "ripples" on the big mountain in front are gone now.
I'm also pleased it doesn't affects the center of the image, but only the surrounding area. This wasn't possible by using TemporalSofter(radius=3) for instance!
Thanks a lot 2Bdecided! :goodpost:
TimeStretch, as expected, wasn't affected at all. No problem with that.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.