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 |
![]() |
#21 | Link | |
Resize Abuser
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
|
KenBurnsEffect() Changes:
Quote:
http://hugin.sourceforge.net/tutorials/scans/en.shtml
__________________
Mine: KenBurnsEffect/ZoomBox CutFrames Helped: DissolveAGG ColorBalance LQ Animation Fixer |
|
![]() |
![]() |
![]() |
#22 | Link | |
Registered User
Join Date: May 2002
Posts: 384
|
Quote:
|
|
![]() |
![]() |
![]() |
#23 | Link | |
Resize Abuser
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
|
Quote:
And also upload the clip that it came from? http://www.megaupload.com/ And then we can go from there
__________________
Mine: KenBurnsEffect/ZoomBox CutFrames Helped: DissolveAGG ColorBalance LQ Animation Fixer |
|
![]() |
![]() |
![]() |
#24 | Link |
Registered User
Join Date: May 2002
Posts: 384
|
Don't have access to my usual pc for a few days, so i can't provide samples. I do still know characteristics of the last scene i worked on.
a sidepanscene of 144 frames, framerate 23.976, panoramic picture is 1504x480, and every framestep is 6 pixels x 144. |
![]() |
![]() |
![]() |
#25 | Link | |
Resize Abuser
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
|
Quote:
Code:
colorbars().trim(0,143).BilinearResize(1504,480) KenBurnsEffect(last, 0,0, 720,0, 784,0, 1504,0, 720,480, IgnoreAR=1) Code:
colorbars().trim(0,143).BilinearResize(1504,480) KenBurnsEffect(last, 0,0, 0,480, 784,0, 784,480, 720,480, IgnoreAR=1) Code:
X = colorbars().trim(0,143).BilinearResize(1504,480) KenBurnsEffect(x, 0,0, 0,480, 784,0, 784,480, 720,480, IgnoreAR=1) last + KenBurnsEffect(x, 784,0, 784,480, 0,0, 0,480, 720,480, IgnoreAR=1)
__________________
Mine: KenBurnsEffect/ZoomBox CutFrames Helped: DissolveAGG ColorBalance LQ Animation Fixer Last edited by mikeytown2; 10th May 2008 at 22:29. |
|
![]() |
![]() |
![]() |
#27 | Link | |
Resize Abuser
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
|
KenBurnsEffect() Changes:
ZoomBox() Changes:
Quote:
This example is more generalized, so it might be harder to follow. Code:
WidthFinal = 640 HeightFinal = 480 X = colorbars().trim(0,143).BilinearResize(1504,480) KenBurnsEffect(x, 0,0, 0,HeightFinal, width(x)-WidthFinal,0, width(x)-WidthFinal,HeightFinal, WidthFinal,HeightFinal, IgnoreAR=1) last + KenBurnsEffect(x, width(x)-WidthFinal,0, width(x)-WidthFinal,HeightFinal, 0,0, 0,HeightFinal, WidthFinal,HeightFinal, IgnoreAR=1) last.ConvertToYV12() x = x.ConvertToYV12() last + Animate(0, x.framecount()-1, "ZoomBox", x, 0.0,0.0, 0.0,Float(HeightFinal), WidthFinal, HeightFinal,1, x, Float(width(x)-WidthFinal),0.0, Float(width(x)-WidthFinal),Float(HeightFinal), WidthFinal, HeightFinal,1) last + Animate(0, x.framecount()-1, "ZoomBox", x, Float(width(x)-WidthFinal),0.0, Float(width(x)-WidthFinal),Float(HeightFinal), WidthFinal, HeightFinal,1, x, 0.0,0.0, 0.0,Float(HeightFinal), WidthFinal, HeightFinal,1)
__________________
Mine: KenBurnsEffect/ZoomBox CutFrames Helped: DissolveAGG ColorBalance LQ Animation Fixer Last edited by mikeytown2; 10th May 2008 at 23:22. |
|
![]() |
![]() |
![]() |
#29 | Link |
Resize Abuser
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
|
KenBurnsEffect() Changes:
Dreassica I made another change, KenBurnsEffect will now accept any colorspace if you set useZoomBox=2. Here is your example again, with the latest changes Code:
WidthFinal = 640 HeightFinal = 480 x = colorbars().trim(0,143).BilinearResize(1504,480).ConvertToYV12() KenBurnsEffect(x, 0,0, 0,HeightFinal, width(x)-WidthFinal,0, width(x)-WidthFinal,HeightFinal, WidthFinal,HeightFinal, IgnoreAR=1, useZoomBox=2) last + KenBurnsEffect(x, width(x)-WidthFinal,0, width(x)-WidthFinal,HeightFinal, 0,0, 0,HeightFinal, WidthFinal,HeightFinal, IgnoreAR=1, useZoomBox=2)
__________________
Mine: KenBurnsEffect/ZoomBox CutFrames Helped: DissolveAGG ColorBalance LQ Animation Fixer Last edited by mikeytown2; 11th May 2008 at 02:32. |
![]() |
![]() |
![]() |
#31 | Link | |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,430
|
Quote:
Surely that's against the spirit of this thread? ![]() There's a lesson here for all of us who have been following this thread - the simple approach is usually the best. To be fair, your requirements were also simpler - pure panning without zooming. Regarding your solution, if you find the movement jerky, it can be made smoother by using the subpixel cropping feature of the resizers, instead of simple Crop, ie Code:
Animate(0,143,"Lanczos4Resize",640,480, 864.0,0.0, 640,480, 640,480, 0.0,0.0, 640,480) @mikeytown2: your latest version seems to allow only zoombox=2, is this intentional? |
|
![]() |
![]() |
![]() |
#32 | Link | |
Resize Abuser
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
|
Quote:
Only allowing zoombox=2 was a bug, i commented out the one check that keeps doing that. I can't seem to make it work, i want to check that if they use the cubic option, zoombox should equal 1 or 0, not 2. I also thought the nop() would make this other line not execute, but it still returned. Code:
#short circuit function, return here if only using zoombox Return (useZoomBox==2) ? cAlt :nop() As for using a resize to do the crop, i didn't realize that it can take a float as input! http://avisynth.org/mediawiki/Resize I'm going to try to get my ZoomBox code to use this. KenBurnsEffect() Updated
__________________
Mine: KenBurnsEffect/ZoomBox CutFrames Helped: DissolveAGG ColorBalance LQ Animation Fixer Last edited by mikeytown2; 12th May 2008 at 10:08. |
|
![]() |
![]() |
![]() |
#33 | Link | |
Resize Abuser
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
|
Updated KenBurnsEffect() & ZoomBox()
Quote:
Both Code bases have been updated. ZoomBox quality went through the roof! I highly recommend setting useZoomBox=2 when ever using KenBurnsEffect().
__________________
Mine: KenBurnsEffect/ZoomBox CutFrames Helped: DissolveAGG ColorBalance LQ Animation Fixer |
|
![]() |
![]() |
![]() |
#34 | Link | |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,430
|
Quote:
Code:
Assert(!((cubic || cubicX || cubicY) && useZoomBox==2), "...") |
|
![]() |
![]() |
![]() |
#35 | Link | |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,430
|
Quote:
As often happens with new releases, your latest changes have also introduced a couple of bugs: - KBE wrong when useZoomBox=1 since using wrong clips start and end (seen more easily when in addition speed!=1, since fails completely); - ZoomBox fails with YV12 or YUY2 since wOut is no longer defined. There is also a minor gotcha with the new ZoomBox method: the extra parameters are not in the same place for all resizers, so have to be passed by name, which has to be taken into account when constructing the Eval string. (In fact only BicubicResize fails on this score, at least in 2.57, so it's not a showstopper). |
|
![]() |
![]() |
![]() |
#36 | Link | |
Resize Abuser
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
|
Quote:
__________________
Mine: KenBurnsEffect/ZoomBox CutFrames Helped: DissolveAGG ColorBalance LQ Animation Fixer |
|
![]() |
![]() |
![]() |
#37 | Link | |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,430
|
Quote:
Personally, I would go for a warning if the output size doesn't match the colorspace requirements, since if I ask for a given size I would expect to get exactly that, rather than have it corrected. |
|
![]() |
![]() |
![]() |
#38 | Link | |
Resize Abuser
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
|
Quote:
http://avisynth.org/mediawiki/Filter...e_as_a_user.3F Fixed A bug with KBE() if useZoomBox=2 and its not RGB. ZoomBox updated as well.
__________________
Mine: KenBurnsEffect/ZoomBox CutFrames Helped: DissolveAGG ColorBalance LQ Animation Fixer |
|
![]() |
![]() |
![]() |
#40 | Link |
Resize Abuser
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
|
Thanks! ZoomBox updated.
__________________
Mine: KenBurnsEffect/ZoomBox CutFrames Helped: DissolveAGG ColorBalance LQ Animation Fixer |
![]() |
![]() |
![]() |
Tags |
anamorphic, crop, dar, pan and scan, resize |
Thread Tools | Search this Thread |
Display Modes | |
|
|