Log in

View Full Version : Help with video-audio trimming in Avisynth


Deptmaster
13th April 2002, 19:17
Hi, I was hoping someone could point me in the right track as i've never used Avisynth to join video and audio files or tried to trim them together. I'm working on an Anime the has the same intro embeded in every episode and i want to remove it but simply leaving out the chapter when i decrypt the dvd gave me serious audio desynchronization.

Heres what i've been trying to get to work

LoadPlugin("e:\filters\MPEG2DEC.dll")
LoadPlugin("e:\filters\decomb.dll")
video=mpeg2source("path\project.d2v")
audio=AVISource("path\audio.wav")
Telecide(Guide=1,Gthresh=50,Chroma=true,Threshold=30)
Decimate(5)
FieldDeinterlace
crop(8,0,704,480)
trim(0,1139) ++ trim(3285,0)

Please give me some hints? And please no comments on my decomb setting.

DJ Bobo
13th April 2002, 21:00
First, a comment on your Decomb setting :D -> you don't need the FieldDeinterlace line (it is already integrated in Telecide)

You can skip the chapter without audio desynch.
I hope you have used SmartRipper to rip, then DVD2AVI 1.76 to save the project (and no other version that 1.76!)
Try demux first, if it is asynch, use decode and see what happens

Deptmaster
14th April 2002, 00:29
I only use SmartRipper for all my dvd decrypting and DVD2AVI 1.76, I'll try using the decoder with DVD2AVI.

As for my decomb settings, I always get crisp progressive images and 100% no interlacing. I'm not claiming that my way is better but just that it works well in my case, thats why i wrote
"And please no comments on my decomb setting."

I'd really like some help with AVIsynth script pertaining to triming audio and video together. I have a work-around planed out in my head but using trim in my scripts would cut the work I'll have to do for these 26 episodes in half.

Deptmaster
14th April 2002, 01:20
:confused: Hmmm, worked this time. I think my problem was that i had smartripper set to split at every vob file. I set it to max file size and tried again and it worked fine this time.

DJ Bobo
14th April 2002, 08:48
May I show you that paragraph from the decomb 3.8 help file:

"IMPORTANT NOTE In some previous versions of Decomb, you had to run FieldDeinterlace after Telecide to get postprocessing. This functionality is now built into Telecide, so do not follow Telecide by FieldDeinterlace"

Deptmaster
14th April 2002, 17:56
Maybe i should start reading those things :). I'll give it a try.