Log in

View Full Version : no audio processing in avisynth25 help


cjaar
25th April 2003, 06:04
all..

I was trying to process audio within avisynth2.5. avi is a tvcap with mono audio, below is the script i used
#
# Created with Gordian Knot
#
# http://gknot.doom9.org
#
# PLUGINS
LoadPlugin("D:\Program Files\Gordian Knot28\mpeg2dec3.dll")
#LoadPlugin("D:\Program Files\Gordian Knot28\decomb.dll")
#LoadPlugin("D:\Program Files\Gordian Knot28\Convolution3d.dll")
LoadPlugin("D:\Program Files\Gordian Knot28\FluxSmooth.dll")
#LoadPlugin("D:\Program Files\Gordian Knot28\TomsMoComp.dll")
#LoadPlugin("D:\Program Files\Gordian Knot28\VSFilter.dll")
#LoadPlugin("D:\Program Files\Gordian Knot28\SimpleResize.dll")
#
# SOURCE
video = avisource("G:\TVCap\capture_20030201-173204.avi")
lf_ch = WavSource("G:\TVCap\capture_20030201-173204.avi")
rh_ch = WavSource("G:\TVCap\capture_20030201-173204.avi")
stereo = MonoToStereo(lf_ch, rh_ch)
AudioDub(video, stereo)
#
# TRIM
#trim(startframe,endframe)
#
# IVTC
#Telecide(guide=1).Decimate(5)
# or use
#IVTC(44,11,95)
#GreedyHMA(1,0,4,0,0,0,0,0)
#
# DEINTERLACING (1)
#FieldDeinterlace()
#FieldDeinterlace(blend=false)
#TomsMoComp(1,5,1)
#
# CROPPING
crop(0,66,640,352)
#
# DEINTERLACING (2)
#SeparateFields().SelectEven()
# or maybe
#Bob().SelectEven()
# or maybe
#GreedyHMA(1,0,0,0,0,0,0,0)
#
#
# SUBTITLES
#VobSub("FileName")
#
# RESIZING
LanczosResize(576,288)
#
# DENOISING: choose one combination (or none)
# 1) little noise
#Temporalsoften(2,3,3,mode=2,scenechange=6)
#mergechroma(blur(1.3))
#FluxSmooth(5,7)
#
# 2) medium noise
#Temporalsoften(3,5,5,mode=2,scenechange=10)
#Convolution3d("moviehq")
FluxSmooth(7,7)
#
# 3) heavy noise
#Temporalsoften(4,8,8,mode=2,scenechange=10)
#Convolution3d("movielq")
#FluxSmooth(10,15)
#
# BORDERS
#AddBorders(left,top,right,bottom)
#
# COMPRESSIBILITY CHECK
# !!!!Snip Size now has to be 14 for use in GKnot!
#SelectRangeEvery(280,14)
#
# FOOL CCEnc
#ResampleAudio(44100)


but the final avi hd only the video no audio, .info showed that it has audio and 2channel, gspot says no audio...

is my script related to audio fine or any mod to get the audio in the final avi????

thanks
cjaar

sh0dan
25th April 2003, 09:23
Just to be on the safe side, I added some extra checks. The following script seems to produce what you want.

video = avisource("rj1.avi").killaudio()
lf_ch = WavSource("rj1.avi").getchannel(1)
rh_ch = WavSource("rj1.avi").getchannel(1)
stereo = mergechannels(lf_ch, rh_ch)
AudioDub(video, stereo)