Cunhambebe
3rd April 2010, 13:19
Hi there...
I'm trying to make my cell phone video (3gp - recorded at 12 (would it be 8?) frames per second) look a little better using the function SFPS (Smooth Frames Per Second). The problem is the audio that is always backwards, out of sync. Here's the script:
DirectShowSource("C:\V280310_15.28.3gp").AudioDub(DirectShowSource("C:\V280310_15.28.3gp"))
#AVS script
function smoothfps(clip source, float fps) {
fp=fps*100
backward_vec = source.MVAnalyse(isb = true, truemotion=true, pel=2, idx=1)
# we use explicit idx for more fast processing
forward_vec = source.MVAnalyse(isb = false, truemotion=true, pel=2, idx=1)
cropped = source.crop(4,4,-4,-4) # by half of block size 8
backward_vec2 = cropped.MVAnalyse(isb = true, truemotion=true, pel=2, idx=2)
forward_vec2 = cropped.MVAnalyse(isb = false, truemotion=true, pel=2, idx=2)
return source.MVFlowFps2(backward_vec,forward_vec,backward_vec2,forward_vec2,num=int(fp),den=100, idx=1,idx2=2)
}
AssumeFPS(12) #shouldn't need this but didn't work right without it
ConvertToYV12()
smoothfps(24)
Deblock()
dfttest()
aWarpSharp()
gradfun2db()
DeHalo_Alpha()
Lanczos4Resize(720,480)
There might be a lot of erros on those lines, but considering the conversion and its artifacts the outcome is not that bad at all. AS I have said the real problem is the audio itself. Does anyone have any idea how I can fix that using freeware such as AVS? I'm using VirtualDubMod in Fast Recompress mode (Save as AVI Uncompressed). Thanks in advance.
I'm trying to make my cell phone video (3gp - recorded at 12 (would it be 8?) frames per second) look a little better using the function SFPS (Smooth Frames Per Second). The problem is the audio that is always backwards, out of sync. Here's the script:
DirectShowSource("C:\V280310_15.28.3gp").AudioDub(DirectShowSource("C:\V280310_15.28.3gp"))
#AVS script
function smoothfps(clip source, float fps) {
fp=fps*100
backward_vec = source.MVAnalyse(isb = true, truemotion=true, pel=2, idx=1)
# we use explicit idx for more fast processing
forward_vec = source.MVAnalyse(isb = false, truemotion=true, pel=2, idx=1)
cropped = source.crop(4,4,-4,-4) # by half of block size 8
backward_vec2 = cropped.MVAnalyse(isb = true, truemotion=true, pel=2, idx=2)
forward_vec2 = cropped.MVAnalyse(isb = false, truemotion=true, pel=2, idx=2)
return source.MVFlowFps2(backward_vec,forward_vec,backward_vec2,forward_vec2,num=int(fp),den=100, idx=1,idx2=2)
}
AssumeFPS(12) #shouldn't need this but didn't work right without it
ConvertToYV12()
smoothfps(24)
Deblock()
dfttest()
aWarpSharp()
gradfun2db()
DeHalo_Alpha()
Lanczos4Resize(720,480)
There might be a lot of erros on those lines, but considering the conversion and its artifacts the outcome is not that bad at all. AS I have said the real problem is the audio itself. Does anyone have any idea how I can fix that using freeware such as AVS? I'm using VirtualDubMod in Fast Recompress mode (Save as AVI Uncompressed). Thanks in advance.