Cunhambebe
5th September 2006, 23:49
I've got a question concerning audio editing - I couldn't find an answer searching around here, neither at AviSynth's homepage.
This is my script for an MPEG2 source (please note that the audio is not multiplexed with it):
LoadPlugin("C:\unzipped\dgmpgdec148\DGDecode.dll")
LoadPlugin("C:\avs_filters\ColorMatrix\Release\colormatrix.dll")
LoadPlugin("c:\avs_filters\TomsMoComp\TomsMoComp_Avisynth\Debug\TomsMoComp.dll")
MPEG2Source("c:\clip.d2v", info=3)
ColorMatrix(hints=true)
Trim(0,403)+Trim(2395,15174)+Trim(16857,17305)
TomsMoComp(0,5,1)
Crop(6,0,-6,0)
Lanczos4Resize(640,480)
FadeOut(30)
As you can see, I'm editing the video, using Trim. I know that if it were an AVI source, even an MPEG2 multiplexed with the audio file, the audio would also be trimmed so it would stay synchronized.
The question is:
How can I edit the audio? Maybe if I adding WavSource("C:\....") to the script? I've already tried this but it didn't work. I thought I could load the script in VDMod and while compressing the video as Xvid, I would add the audio, interleaving it on the second pass.. Another way would be to load the audio file in any audio editor, editing the same sections. Does any of you know the correct way to achieve what I want? Thanks in advance.
This is my script for an MPEG2 source (please note that the audio is not multiplexed with it):
LoadPlugin("C:\unzipped\dgmpgdec148\DGDecode.dll")
LoadPlugin("C:\avs_filters\ColorMatrix\Release\colormatrix.dll")
LoadPlugin("c:\avs_filters\TomsMoComp\TomsMoComp_Avisynth\Debug\TomsMoComp.dll")
MPEG2Source("c:\clip.d2v", info=3)
ColorMatrix(hints=true)
Trim(0,403)+Trim(2395,15174)+Trim(16857,17305)
TomsMoComp(0,5,1)
Crop(6,0,-6,0)
Lanczos4Resize(640,480)
FadeOut(30)
As you can see, I'm editing the video, using Trim. I know that if it were an AVI source, even an MPEG2 multiplexed with the audio file, the audio would also be trimmed so it would stay synchronized.
The question is:
How can I edit the audio? Maybe if I adding WavSource("C:\....") to the script? I've already tried this but it didn't work. I thought I could load the script in VDMod and while compressing the video as Xvid, I would add the audio, interleaving it on the second pass.. Another way would be to load the audio file in any audio editor, editing the same sections. Does any of you know the correct way to achieve what I want? Thanks in advance.