boshreek
16th April 2010, 12:17
hi
i have clip that have variable sound i mean some times its let say -10db and during the clip it jumps to let say 3db what i am trying to do is to make the whole clip has a db of -6
so i tried this (because the normalize plugin effects the entire waveform what i did is trim each frame and normalize it separately)
loadplugin("C:\Program Files\AviSynth 2.5\plugins\GScript.dll")
vid=DirectShowSource("01.avi")
current_frame = 0
end = vid.FrameCount()
global vid3 = vid.trim(0,0)
GScript("
while (current_frame < end ) {
vid3 = vid3 ++ vid.trim(current_frame,current_frame+1).Normalize(-0.6)
current_frame = current_frame + 1
}
")
return vid3
but the normalize did not affect the clip , i do not know why.
so is there a way to have the entire clip has a -6db
using avisynth
thanks
i have clip that have variable sound i mean some times its let say -10db and during the clip it jumps to let say 3db what i am trying to do is to make the whole clip has a db of -6
so i tried this (because the normalize plugin effects the entire waveform what i did is trim each frame and normalize it separately)
loadplugin("C:\Program Files\AviSynth 2.5\plugins\GScript.dll")
vid=DirectShowSource("01.avi")
current_frame = 0
end = vid.FrameCount()
global vid3 = vid.trim(0,0)
GScript("
while (current_frame < end ) {
vid3 = vid3 ++ vid.trim(current_frame,current_frame+1).Normalize(-0.6)
current_frame = current_frame + 1
}
")
return vid3
but the normalize did not affect the clip , i do not know why.
so is there a way to have the entire clip has a -6db
using avisynth
thanks