When I uploaded my Oracle of Ages video to Youtube, for some reason, some of the audio glitches out, such as at 19:54-21:14, or any time the cavern theme is playing...
http://www.youtube.com/watch?v=QGzhnOAE-Vw
I used this script for encoding...
a = AVISource("Zelda (2).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
""")
last = a.PointResize(width, height)
fps ? (tb ? TASBlend() : ChangeFPS(targetfps)) : last
ConvertToYV24(matrix="Rec709", chromaresample="point")
ConvertToYV12(matrix="Rec709", chromaresample="point")
And I have x264, FLAC, and MKVmerge for encoding. So, does anyone have an idea about what might be going on?