View Full Version : "TurnRight" to rotate a specific section of video?
MaximRecoil
31st May 2007, 23:07
I have a video I am going to encode, and I need a portion of it to be rotated to the right 90 degrees. Is there any way to specify a specific section of the video to be rotated, rather than having it be rotated for the entire duration of the video?
Terranigma
31st May 2007, 23:21
global use_secure = false
ovrC = "C:\ Applyrange.txt"
#Source
ovr=Last
function = TurnRight()
ConditionalFilter(ovr, function, ovr, "use_secure", "=","true")
ConditionalReader(ovrC, "use_secure", false)
(Now to apply a range via the Applyrange.txt file)
type bool
default false
r 1 299
frames 1-299 will have TurnRight applied.
ChiDragon
31st May 2007, 23:49
Or just use ApplyRange().
nonoitall
31st May 2007, 23:58
Why not just trim the part of the clip you want to rotate?
beginning = source.Trim(0, 100)
middle = source.Trim(101, 199).TurnRight()
end = source.Trim(200, 0)
#Crop, add borders and/or resize middle so that it matches the resolution of the original clip
source = beginning+middle+end
I'm a bit of a newbie, but if I understand what you want to do, this seems easier than having a separate file.
EDIT: Ack, ChiDragon beat me with an even easier alternative!
Terranigma
1st June 2007, 01:17
My way would be more efficient, if say, you'd like to call TurnRight() more than once. Using multiple calls of applyrange will just result in unnecessary memory usage. :)
stickboy
3rd June 2007, 21:16
My way would be more efficient, if say, you'd like to call TurnRight() more than once. Using multiple calls of applyrange will just result in unnecessary memory usage. :)Yeah, but all the ConditionalReader/ConditionalFilter stuff is gross. If you want to avoid repeated calls to ApplyRange, you might want to try my RemapFrames plug-in.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.