So, hum....
I didin't understand anything... i've putted the script on a txt file, but when i try do load my video with this script on Window Movie Maker, it said that it doesn't support that type of file...
What should i do ?
I googled but i can't find anything x_x
Sometimes they said it's a codec problem, sometimes not x_x
Note : I tryed using it with VirtualDub,too but i can't even see it when i choose a file....
EDIT :
Now i forced it into Window Movie Maker, and.....i get this :
http://imageshack.us/photo/my-images/207/erroraj.png/
I'm doing it for a GBA game (Zelda : The Minish Cap), the file is in .avi
Also, here's the script :
a = AVISource("C:\Users\benjamin\Documents\Walkthroughs\zelda minish cap\minishcap10_Archos_ - Copie.avi").ConvertToRGB32().Trim(0,-0)
# Replace -0 with the last frame of the movie to be displayed, or
# leave it as is if no trimming is required.
# Set this to true if this is a handheld console to disable aspect correction
handheld = true
# Should we reduce the FPS (by default, to 30FPS)?
# This may need to be adjusted to account for other
fps = true
# If fps is true and tb is false, what frame rate should we use?
targetfps = 30
# Should we use TASBlend for FPS reduction?
# This is only enabled if fps is true.
tb = true
# Script functionality starts here.
function TASBlend(clip c, float "ratio") {
# reduces framerate to 1/2 but leaves flicker effects partly visible
# blends frame pairs with alternating opacity (default is 2/3+1/3;1/3+2/3)
# optional "ratio" is the opacity of the first frame out of the four
ratio = default(ratio, 2.0 / 3)
opacity1 = round((1 - ratio) * 257)
opacity2 = round(( ratio) * 257)
c
Interleave(Layer(SelectEvery(4, 0), SelectEvery(4, 1), level=opacity1),
\ Layer(SelectEvery(4, 2), SelectEvery(4, 3), level=opacity2))
}
function gcd(int x, int y)
{
t = x % y
x = y
y = t
return (y > 0) ? gcd(x, y) : x
}
(handheld) ? Eval("""
factor = (a.height > 540) ? 2 : \
(a.height > 270) ? 4 : \
(a.height > 180) ? 6 : 8
width = a.width * factor
height = a.height * factor
multi = factor
""") : Eval("""
w1 = a.height * 4
h1 = a.width * 3
thegcd = gcd(w1, h1)
w1 = w1 * 2 / thegcd
h1 = h1 * 2 / thegcd
width = a.width * w1
height = a.height * h1
multi = h1
""")
g = a.PointResize(width, height)