Log in

View Full Version : audio hiccups at start of succeeding vids when joining


zeldAIS
5th June 2008, 01:50
hi :)

I'm wondering what way can a sudden audio hiccup be removed when joining videos? I get audio hiccups usually when i join videos using addsplice and usually at the start of the 2nd vid.

here's a sample avisynth template i usually use.


LoadVirtualDubPlugin("Logo.vdf","Logo",0)

a = AVISource("Vid1.avi")
a = a.ChangeFPS(29.97)
a = a.ResampleAudio(48000)

b = AVISource("Vid2.avi").ConvertToRGB()
b = b.Logo(650, 5, 80, 2, 35, 195, 35, 5, "Logo.bmp", 0, 0, 0, 0, 0, 0, 0).ConvertToYV12()
b = b.converttoyuy2(interlaced=true)
b = b.AssumeFieldBased()
b = b.converttoyv12()
b = b.tweak(sat=1.14,bright=-5,cont=1.05)
b = b.limitedsharpenfaster()
b = b.tfm(pp=5,cthresh=3,mode=0).tdecimate()
b = b.Convolution3d(preset="movieHQ")
b = b.Removegrain(2)
b = b.Tomsmocomp(-1,1,1)
b = b.Sharpen(.2)
b = b.BicubicResize(704, 396)
b = b.TextSub("softsubs.ass")
b = b.ChangeFPS(29.97)
b = b.ResampleAudio(48000)
b = b.Trim(1,0)

a+b

Trim(1,0)

Normalize()


usually, after the 'a' video is finished in the final encoding, there will be a short audio "tick" or audio hiccup at the start of the 'b' video in the final joined encoded vid.

any help will be much appreciated :)

IanB
5th June 2008, 05:23
FadeIO0(1)

zeldAIS
5th June 2008, 07:25
thanks IanB :3 though there is still the tick sound but it's not as loud as it is like before :3

GodofaGap
5th June 2008, 08:13
Doesn't the hickup come from the trim you are making in the second vid?

IanB
5th June 2008, 08:44
The Fade*() functions will make the audio silent at the very edges of the clip. If the click is in from the edge then you will need to explicitly excise it. i.e....
X=Last
X.Trim(0, 1234)
A=AudioDub(FadeOut0(1))

X.Trim(1235, 1235)
B=AudioDub(BlankClip(Last)) # Remove Sound here

X.Trim(1236, 0)
C=AudioDub(FadeIn0(1))

A + B + C