PDA

View Full Version : [HELP] audio not sync with video after a video&audio mux


adrianmak
29th July 2006, 01:45
I have a two video say video_a, video_b (same fps)
I use vdm to cut into two parts of the two video
video_a = [parta][partb], and extract only part a
video_b = [parta][partb], and extract only part b

then I use a avs script to join parta of video_a and partb of video_b

my script is as follows
a=avisource("parta.avi",audio=false)
b=avisource("partb.avi",audio=false)
c=a+b
return c

and ouput final_video.avi

after that I use a program that which can join two mp3 as one
I joined parta's video_a mp3 and partb's video_b mp3 as one mp3 say final_audio.mp3

Finally, I use vdm again to mux the final_video.avi and the final_audio.mp3


however the audio of result video is not sync with the video

how do I set a delay of the mp3 when muxing video and audio ?

CWR03
29th July 2006, 08:15
Why not just use VirtualDub to open the first part, then use Open append to add the second part and save?

adrianmak
29th July 2006, 13:33
Why not just use VirtualDub to open the first part, then use Open append to add the second part and save?

do you mean merge in VDM without using avs script ?

manolito
29th July 2006, 13:42
You should read the AviSynth documentation about AlignedSplice and UnalignedSplice. You have to use "AlignedSplice" to avoid audio desync. Your AVS script should look like this:

avisource("parta.avi",audio=false) ++ avisource("partb.avi",audio=false)

Cheers
manolito

neuron2
29th July 2006, 14:40
what's the meaning of ++ ? Pay attention! manolito told you this:

"You should read the AviSynth documentation about AlignedSplice and UnalignedSplice."