PDA

View Full Version : Audio sync from appended segments in vdubmod


pmlde
11th December 2005, 00:05
I'm having an audio sync issue with avi2dvd. I have short avi (xvid) segments that I've apended together in vdubmod, I'm then loading the large file into avi2dvd to create an mpv to be authored with dvd-lab. The problem is that the audio goes out of sync a little more with each segment. The first segment is fine, the second is a little off and it gets a little more off with each segment after that.

I've made sure that the audio and video times are the same for each segment, and the large avi file is not out of sync after it's been put together, just after its been processed with avi2dvd.

Any ideas?

setarip_old
11th December 2005, 07:18
Hi!

Instead of appending the .AVIs, you might want to try converting each .AVI into an MPEG file and then appending the MPEG files...

pmlde
11th December 2005, 15:03
Hi setarip_old thanks for the response.

I've done that and it works but it has it's drawbacks. I have 22 7 to 10 minute segments I'm trying to put on this disk. Whenever I try to do a single one I have to shoot for a target size of at least 740 meg, if I put in anything less cce crashes when it starts the second pass.

And even though that would solve my problem it's a 12-15 gig dvd after I've converted them all and I would have to run it through an encoder again to get down to size.

setarip_old
11th December 2005, 21:09
Then instead, as an experiment, try adjusting the audio skew correction of the SECOND .AVI by (If I remember my similar experiences correctly) -1200 MS. Append the second to the first and see if the resultant joined .AVI is synchronized all the way through. If it is, apply the same audio skew correction to each of the additional .AVIs you are going to append...

Also, I honestly don't remember whether you additionally have to set the audio "Preload" to -0- for each appended (#2 and so on, but NOT #1) .AVI...

DDogg
12th December 2005, 07:49
You could do them in a script and then use it as your VDub source, or use VFapi to load the script and serve directly to a2d. The aligned splice syntax will keep the audio in sync, but may cause a frame glitch occasionally.

It has been a while since I actually had to write a script and I have forgotten most everything ... but - one that will work on a few clips is something like this:

a=avisource("d:\clip2.avi")
b=avisource("d:\clip3.avi")
c=avisource("d:\clip4.avi")
d=avisource("d:\clip5.avi")
e=avisource("d:\clip6.avi")

return(a+b+c+d+e)

OR, if audio sync problems, invoke the AlignedSplice syntax -

return(a++b++c++d++e)

I believe this should be equivalent to the alignedsplice script below. I did it for multiple AVS scripts, but it will work with multiple AVI's also. Just use your own AVI clips.


This may point you in a direction or get you a better suggestion from someone who is current with this stuff. Good luck.



v1=AVISource("\c02.avs") ++ AVISource("\c03.avs") ++ AVISource("\c04.avs") ++ AVISource("\c05.avs") ++ AVISource("\c06.avs")
v2=AVISource("\c05.avs") ++ AVISource("\c06.avs") ++ AVISource("\c07.avs") ++ AVISource("\c08.avs") ++ AVISource("\c09.avs")
v3=AVISource("\c10.avs") ++ AVISource("\c11.avs") ++ AVISource("\c12.avs") ++ AVISource("\c13.avs") ++ AVISource("\c14.avs")

return(v1+v2+v3)

pmlde
12th December 2005, 14:37
Thanks guys for your tips but the avi's were in sync after I combined them. It's just when I converted the combined file in a2d that the audio sync got messed up.

Anyway, I've figured out the issue with a2d crashing on the second pass so I've just decided to convert them individually.

Thanks again for your help.

pmlde

setarip_old
12th December 2005, 20:34
Thanks again for your help.
My (Our) pleasure ;>}
Glad to hear you've resolved your dilemma!