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 |
25th July 2008, 18:39 | #81 | Link |
Registered User
Join Date: Jul 2007
Posts: 157
|
Actually nevermind. What I'm seeking is a way to grow the alpha layer by a certain amount of pixels - not really the same thing as a zoom. It's more like "Grow Selection" in GIMP. But that's a thing for another thread.
The remove logo plugin seems to have that capability so I'll fiddle around with it.
__________________
f=33 |
20th August 2008, 04:27 | #82 | Link |
Resize Abuser
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
|
Added AvsP function Definitions for KenBurnsEffect and ZoomBox, Get them at the bottom of this post
http://forum.doom9.org/showthread.ph...71#post1112171
__________________
Mine: KenBurnsEffect/ZoomBox CutFrames Helped: DissolveAGG ColorBalance LQ Animation Fixer |
4th October 2008, 16:22 | #83 | Link |
Registered User
Join Date: Jun 2007
Location: Washington, DC
Posts: 130
|
I'm trying to upgrade to the latest KBE Script, June 12, 2008, and when I load it in my plugins directory, I get the not-too-helpful "Your computer is running low on Memory" error message. I've had this before, the problem isn't memory, but something wrong in the plugins directory.
Works fine with the June 7 release. I've done a compare, but nothing stands out as what the problem would be. I've simply taken the two scripts at the top of this page, combined them into a file called kbe.avsi and added it to my plugins directory, then tried to run the simple Version() script. I'm using 2.58RC4, not sure if that's relevant. Any ideas? Mike, this is such a great script, have you considered putting it into a zip file with some examples to show it off some more (and make for an easier download of these two scripts)? The other advantage would be not having to worry about the line endings issue, which I've had before when cutting and pasting scripts from the forum. I'm even wondering if that's the issue here. Thx Tac |
4th October 2008, 20:08 | #84 | Link |
Resize Abuser
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
|
Here's a link to my KenBurnsEffect.avsi - There is nothing new, should be the same as the first 2 posts.
http://rapidshare.com/files/15092626...ffect.zip.html There are a couple other scripts in there as well: ResizeKAR(), SplitScreen(), DissolveAGG(). Let me know if this one bombs out as well. How much ram do u have? Examples as well as AvsP stuff is located here. If you have some examples to share, please do so
__________________
Mine: KenBurnsEffect/ZoomBox CutFrames Helped: DissolveAGG ColorBalance LQ Animation Fixer |
4th October 2008, 21:58 | #85 | Link |
Registered User
Join Date: Jun 2007
Location: Washington, DC
Posts: 130
|
Thanks! That worked, so it must be something to do with the cut-and-paste from Firefox into UltraEdit. Perhaps you could mofidy the message that started this thread to include either that link, or put it in the attachments field of the message.
Tac |
27th May 2009, 20:56 | #86 | Link |
Registered User
Join Date: Apr 2008
Posts: 18
|
Help zooming in and then out
I'm trying to use the KenBurnsEffect function to first zoom in on a video and then zoom back to 100%. I get it to zoom in, but then it just stays zoomed in for the rest of the video.
Here's what I have. ############## fr=5 clip = DirectShowSource("test.avi") #this works fine, video is zoomed in for the first 3 seconds clip.KenBurnsEffect(startFrame=0, endFrame=3*fr, startAlign=6, endAlign=4, endZoomFactor=150) #this is where I'm stuck how to get the rest of the video to zoom back to 100% - my guess is something like this, but it is not working: #clip.KenBurnsEffect(startFrame=16, endFrame=500, startAlign=5, endAlign=5, startZoomFactor=150, endZoomFactor=100) ############ Any help would be greatly appreciated. Great function by the way! Thanks. |
27th May 2009, 21:35 | #87 | Link |
Resize Abuser
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
|
It's been a little while since I've done some video work, but heres how I would do it
Code:
clip = ColorBars() fr=30 clip.KenBurnsEffect(startFrame=0, endFrame=3*fr, endAlign=4, endZoomFactor=150).trim(0,3*fr) last + clip.KenBurnsEffect(startFrame=3*fr, endFrame=6*fr, startAlign=4, startZoomFactor=150).trim(3*fr,0)
__________________
Mine: KenBurnsEffect/ZoomBox CutFrames Helped: DissolveAGG ColorBalance LQ Animation Fixer |
27th May 2009, 22:12 | #88 | Link |
Resize Abuser
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
|
Updated first post with a new version!
Now the above example can be done like this Code:
fr=5 ColorBars() KenBurnsEffect(startFrame=0, endFrame=3*fr, KeepState=false, endAlign=4, endZoomFactor=150) KenBurnsEffect(startFrame=3*fr+1, endFrame=6*fr, KeepState=false, startAlign=4, startZoomFactor=150)
__________________
Mine: KenBurnsEffect/ZoomBox CutFrames Helped: DissolveAGG ColorBalance LQ Animation Fixer |
27th May 2009, 23:20 | #89 | Link |
Registered User
Join Date: Apr 2008
Posts: 18
|
Thanks for getting back to me and that is a great update. But I'm still having trouble accomplishing this:
I'd like to zoom in and then out at various points during a clip: Something like this (pseudocode): - Given a 1 minute clip: - Start zooming in at 00:10 for 3 seconds (zoom to 150%) - Play zoomed in for 10 seconds, then - Zoom back down to 100%, and then - Let the clip play till the end... Is that possible? I tried this: clip = DirectShowSource("1278.avi") fr=5 clip.KenBurnsEffect(startFrame=0, endFrame=3*fr, KeepState=false, endAlign=4, endZoomFactor=150) last+ clip.KenBurnsEffect(startFrame=3*fr+1, endFrame=6*fr, KeepState=false, startAlign=4, startZoomFactor=150) but, it doubles the length of my clip. Any ideas? Thanks again. |
27th May 2009, 23:51 | #90 | Link |
Resize Abuser
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
|
ah, r u a little green when it comes to avisynth syntax?
Anyway this will do your first request. Code:
DirectShowSource("1278.avi") fr=5 KenBurnsEffect(startFrame=0, endFrame=3*fr, KeepState=false, endAlign=4, endZoomFactor=150) KenBurnsEffect(startFrame=3*fr+1, endFrame=6*fr, KeepState=false, startAlign=4, startZoomFactor=150) Anyway this will do your first request. Code:
clip = DirectShowSource("1278.avi") fr=5 clip = clip.KenBurnsEffect(startFrame=0, endFrame=3*fr, KeepState=false, endAlign=4, endZoomFactor=150) clip = clip.KenBurnsEffect(startFrame=3*fr+1, endFrame=6*fr, KeepState=false, startAlign=4, startZoomFactor=150) clip To do your second request I would do it this way Code:
DirectShowSource("1278.avi") fr=5 KenBurnsEffect(startFrame=10*fr , endFrame=13*fr, KeepState=false, endAlign=4, endZoomFactor=150) KenBurnsEffect(startFrame=13*fr+1, endFrame=23*fr, KeepState=false, startAlign=4, startZoomFactor=150, endAlign=4, endZoomFactor=150) KenBurnsEffect(startFrame=23*fr+1, endFrame=26*fr, KeepState=false, startAlign=4, startZoomFactor=150)
__________________
Mine: KenBurnsEffect/ZoomBox CutFrames Helped: DissolveAGG ColorBalance LQ Animation Fixer |
29th May 2009, 02:12 | #92 | Link |
Registered User
Join Date: Apr 2008
Posts: 18
|
KenBurnsEffect Mode 1 usage
I think I've pretty much got Mode 2 usage down, but am try to figure out how to zoom a particular area using Mode 1.
For example, if I have a 640x480 clip and I want to zoom in to an area that has these coordinates: x coordinate: 100 (down 100 pixels) y coordinate: 250 (over to the left 250 pixels) width: 176 pixels height: 144 pixels After zooming into this area, I'd like to zoom back out to the regular video size. Basically, I want to just zoom into a small boxed area with the main video. I can think of it in terms of x,y and width, height, but am having trouble translating that into the 8 parameters of the KenBurnsEffect function. Any help would be greatly appreciated. Thanks. |
29th May 2009, 02:25 | #93 | Link |
Resize Abuser
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
|
Code:
ColorBars().trim(0,99) KenBurnsEffect(startframe=0, endframe=20, keepstate=false, endY1=250, endX1=100, endX2=276) KenBurnsEffect(startframe=21, endframe=50, keepstate=false, endY1=250, endX1=100, endX2=276, startY1=250, startX1=100, startX2=276) KenBurnsEffect(startframe=51, endframe=70, keepstate=false, startY1=250, startX1=100, startX2=276) Only 3 out of the 4 points are needed.
__________________
Mine: KenBurnsEffect/ZoomBox CutFrames Helped: DissolveAGG ColorBalance LQ Animation Fixer |
29th May 2009, 02:39 | #94 | Link |
Resize Abuser
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
|
You can also use mode 2 and the startPanX, startPanY, endPanX, endPanY if align is close but not perfect. Takes a float btw so you can do stuff like endPanX=15.5
__________________
Mine: KenBurnsEffect/ZoomBox CutFrames Helped: DissolveAGG ColorBalance LQ Animation Fixer |
29th May 2009, 14:43 | #96 | Link |
Registered User
Join Date: Apr 2008
Posts: 18
|
@Gavino - yes, that is exactly what I meant, sorry about that.
@mikeytown2 - thank you very much (again)! I'm still trying to wrap my head around zooming in/out on various areas of my video, but I think this will get me started. Ultimately, I'm trying to accomplish this within a single video clip: 1) zoom in to a smaller area (a small box -> x, y, width, height) 2) hold the zoom for a while, then 3) zoom back out to normal size. 4) Then repeat steps 1-3 (zoom in/hold/zoom back out) with another small boxed area in the same video I think I can do it with what mikeytown2 provided, I'll continue testing - thanks so such for the assistance. |
20th December 2009, 16:54 | #98 | Link |
Registered User
Join Date: Oct 2002
Location: The Pandorica
Posts: 527
|
SplineCalc seems to be missing... I get the error that the function is missing when I try any example above.
__________________
PC specs for bug reports: Intel Core i7-4790K @4Ghz Win10(Linux VM) PCI express NVIDIA RTX 2060 SUPER graphics card http://twitter.com/cwebdesign |
20th December 2009, 18:48 | #99 | Link |
Registered User
Join Date: Oct 2002
Location: The Pandorica
Posts: 527
|
I found SplineCalc on the Internet. It works if I add it.
It's the following: Function SplineCalc(clip c, int mode, int startFrame, float startF, int endFrame, float endF) { splineString = mode==1 ? \ "spline(n, " \ + String(startFrame-1) + "," + String(startF) + ", " \ + String(startFrame) + "," + String(startF) + ", " \ + String(endFrame) + "," + String(endF) + ", " \ + String(endFrame+1) + "," + String(endF) + ", true)" \ : mode==2 ? "spline(n, " \ + String(startFrame) + "," + String(startF) + ", " \ + String(startFrame+(endFrame-startFrame)/3.0) + "," + String(startF) + ", " \ + String(endFrame-(endFrame-startFrame)/3.0) + "," + String(endF) + ", " \ + String(endFrame) + "," + String(endF) + ", true)" \ : mode==3 ? "spline(n, " \ + String(startFrame) + "," + String(startF) + ", " \ + String(startFrame+(endFrame-startFrame)/3.0) + "," + String(endF) + ", " \ + String(endFrame-(endFrame-startFrame)/3.0) + "," + String(startF) + ", " \ + String(endFrame) + "," + String(endF) + ", true)" \ : mode==4 ? "spline(n, " \ + String(startFrame) + "," + String(startF) + ", " \ + String((endFrame-startFrame)/2.0) + "," + String(startF) + ", " \ + String(endFrame) + "," + String(endF) + ", true)" \ : mode==5 ? "spline(n, " \ + String(startFrame) + "," + String(startF) + ", " \ + String((endFrame-startFrame)/2.0) + "," + String(endF) + ", " \ + String(endFrame) + "," + String(endF) + ", true)" \ : "spline(n, " \ + String(startFrame) + "," + String(startF) + ", " \ + String(endFrame) + "," + String(endF) + ", true)" Return splineString }
__________________
PC specs for bug reports: Intel Core i7-4790K @4Ghz Win10(Linux VM) PCI express NVIDIA RTX 2060 SUPER graphics card http://twitter.com/cwebdesign |
20th December 2009, 20:07 | #100 | Link |
Resize Abuser
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
|
thanks for pointing that out; updated second post with the missing function.
__________________
Mine: KenBurnsEffect/ZoomBox CutFrames Helped: DissolveAGG ColorBalance LQ Animation Fixer |
Tags |
anamorphic, crop, dar, pan and scan, resize |
|
|