SunShock
21st July 2003, 02:11
I apologize if this was covered in some other post. What I'm doing is pretty simple, actually. I have encoded a few clips, and I wanted to join them together, convert to DivX, and conver the audio to MP3. I figured the easiest way to do the joining part would be to use AlignedSplice in AviSynth to make sure I don't botch the audio sync. My AVI's are all in HuffYUV format encoded with the convert to YUY2 option selected, and my script is as follows:
AVISource(TempDir+"BGCIntro2.avi", pixel_type="YUY2") ++ AVISource(TempDir+"tempHuffy1.avi", pixel_type="YUY2") ++ AVISource(TempDir+"BGCCommercial.avi", pixel_type="YUY2") ++ AVISource(TempDir+"tempHuffy2.avi", pixel_type="YUY2") ++ AVISource(TempDir+"BGCEnd2.avi", pixel_type="YUY2")
The AviSynth documentation said the ++ operator as opposed to + would use AlignedSplice instead of UnalignedSplice. However, the audio slowly drifts out of sync with the video, particularly noticable after the BGCCommercial clip. Each source file has the audio perfectly in sync. The video gets ahead of the audio. I thought AlignedSplice was supposed to keep things in sync?
AVISource(TempDir+"BGCIntro2.avi", pixel_type="YUY2") ++ AVISource(TempDir+"tempHuffy1.avi", pixel_type="YUY2") ++ AVISource(TempDir+"BGCCommercial.avi", pixel_type="YUY2") ++ AVISource(TempDir+"tempHuffy2.avi", pixel_type="YUY2") ++ AVISource(TempDir+"BGCEnd2.avi", pixel_type="YUY2")
The AviSynth documentation said the ++ operator as opposed to + would use AlignedSplice instead of UnalignedSplice. However, the audio slowly drifts out of sync with the video, particularly noticable after the BGCCommercial clip. Each source file has the audio perfectly in sync. The video gets ahead of the audio. I thought AlignedSplice was supposed to keep things in sync?