Log in

View Full Version : How to jump a vob part


V-tec
1st July 2003, 10:47
Hi All!


I have a DVD with a ruined VOB, and, what I would like to do is to jump using avisynth
a (central) part of this vob

here is my idea:


to get the first good part with syncronized audio of the vob I use this script:


mpeg2source("D:\film\vts_02_3.d2v")

video1=trim(0,2956)

wavsource("D:\film\audio3.wav")

audio1=delayaudio(-0.288)

a=audiodub(audio1,video1)

return a



while with this script I get the second part of the vob with syncronized audio:



mpeg2source("D:\film\vts_02_3.d2v")

video2=trim(9777,0)

R=-0.288

wavsource("D:\film\audiovob3.wav")

audio2=delayaudio(-391.080 - R)

b=audiodub(audio2,video2)

return b


what I would like to do if possible, it is to merge these two scripts
in way to get a continuous video with syncronized audio,
and I have done this:



mpeg2source("D:\film\vts_02_3.d2v")

video1=trim(0,2956)
video2=trim(9777,0)

wavsource("D:\film\audiovob3.wav")

R=-0.288

audio1=delayaudio(-0.288)
audio2=delayaudio(-391.080 - R)

a=audiodub(audio1,video1)
b=audiodub(audio2,video2)


clip= a+b

return clip

at the end, I get a video without the ruined part of the vob
however, while the ruined video part is jumped, the ruined audio part
is not...

where is the mistake?
Please, help me!

Thanks a lot.


(and sorry for my enghlish...):)

Awatef
1st July 2003, 11:00
Make the first selection in DVD2AVI and save the first project (make sure you decode the audio)
Make the second selection in DVD2AVI and save the 2nd project

Encode the first part alone
Encode the second part alone

Mux every part with its audio counterpart

Join (append) the finalized AVI files using VirtualDub.

There shouldn't be sync problems then.