esby
21st January 2004, 11:37
function dec(src) {
src = src.telecide()
src = src.decimate(cycle=5)
return src
}
function correctFPS1( clip src , int fl) {
src = src.changeFPS(src.Framecount()/fl*29.76)
src = src.assumeFPS(29.76)
src = dec(src)
src = src.assumeFPS(23.976)
return src
}
function correctFPS2( clip src , int fl) {
src = dec(src.trim(0,fl)).assumeFPS(23.976)
return src
}
function correctFPS( clip src , int fl ) {
src = (src.frameCount()<=fl) ? correctFPS1(src,fl) : correctFPS2(src,fl)
return src
}
clip = correctFPS(clip,165)
if clip>165 frames correctFPS call correctFPS2()
and it works correctly...
But when it comes to clip<=165 frames...
correctFPS1() returns a clip with 0 frame...
So is there an evaluation problem, or is it a bug?
or is it normal?
if i'm not wrong,
the line causing the problem is :
src = src.changeFPS(src.Framecount()/fl*29.76)
but src.framecount should be != 0
since it is evaluated correctly with clip>165 frames
so if anyone can help...
esby
src = src.telecide()
src = src.decimate(cycle=5)
return src
}
function correctFPS1( clip src , int fl) {
src = src.changeFPS(src.Framecount()/fl*29.76)
src = src.assumeFPS(29.76)
src = dec(src)
src = src.assumeFPS(23.976)
return src
}
function correctFPS2( clip src , int fl) {
src = dec(src.trim(0,fl)).assumeFPS(23.976)
return src
}
function correctFPS( clip src , int fl ) {
src = (src.frameCount()<=fl) ? correctFPS1(src,fl) : correctFPS2(src,fl)
return src
}
clip = correctFPS(clip,165)
if clip>165 frames correctFPS call correctFPS2()
and it works correctly...
But when it comes to clip<=165 frames...
correctFPS1() returns a clip with 0 frame...
So is there an evaluation problem, or is it a bug?
or is it normal?
if i'm not wrong,
the line causing the problem is :
src = src.changeFPS(src.Framecount()/fl*29.76)
but src.framecount should be != 0
since it is evaluated correctly with clip>165 frames
so if anyone can help...
esby