View Full Version : Merging CD1 & CD2 avi files
Knoxy
5th June 2003, 21:25
Hi,
I've had a look at various Q&A in the AVSYNTH forum and couldnt find anything that would help me with this problem. I was wondering what script you would need to merge a split AVI file e.g. CD1 and CD2? I would split the video and audio using Virual Dub for each CD before creating my script file. But how would I merge them to output one continuous movie? So basically I would end up with 2 video files and 2 audio files!
Could someone please supply a sample script on merging them??
Thank you :confused:
sh0dan
5th June 2003, 22:45
If you want your movie to be recompressed which I guess you don't - you cannot use AviSynth, but you'll have to use Vdub. If that's the case ask in the appropriate section.
Otherwise - if you would actually like to recompress the footage, use:
v1 = avisource("cd1.avi")
v2 = avisource("cd2.avi")
v1 ++ v2
Knoxy
5th June 2003, 23:16
Originally posted by sh0dan
If you want your movie to be recompressed which I guess you don't - you cannot use AviSynth, but you'll have to use Vdub. If that's the case ask in the appropriate section.
Otherwise - if you would actually like to recompress the footage, use:
v1 = avisource("cd1.avi")
v2 = avisource("cd2.avi")
v1 ++ v2
Sorry ShOdan,
I dont think I've made my point clear enough! let me correct what I meant to say:
I have split cd1 & cd2 compressed AVI so I now have 2 compressed AVI video files (With no audio)and 2 uncompressed WAV audio files which I used virtual dub to do. What I then want to do is create an AVS script to merge all the video and audio and load into either Mainconcept or CCE encoder to eventually output as one complete SVCD or DVD film.
Hopefully this is clearer?
Regards
DDogg
5th June 2003, 23:35
I believe you will find a very similar example to what you are asking for in the "Getting Started" section of the avisynth docs that should reside on your machine.
Now let's suppose you're capturing with an application that also saves the video in multiple AVI segments, but puts the audio in a separate WAV file.
Can we recombine everything? You bet:
AudioDub(AVISource("d:\capture.00.avi")+AVISource("d:\capture.01.avi")+AVISource("d:\capture.02.avi"), WAVSource("d:\audio.wav"))
I assume you would concatenate the audio in the same way as was done the video.
Knoxy
6th June 2003, 00:20
Originally posted by DDogg
I believe you will find a very similar example to what you are asking for in the "Getting Started" section of the avisynth docs that should reside on your machine.
Now let's suppose you're capturing with an application that also saves the video in multiple AVI segments, but puts the audio in a separate WAV file.
Can we recombine everything? You bet:
AudioDub(AVISource("d:\capture.00.avi")+AVISource("d:\capture.01.avi")+AVISource("d:\capture.02.avi"), WAVSource("d:\audio.wav"))
I assume you would concatenate the audio in the same way as was done the video.
Thanks DDogg,
What can I say? Wicked!!
So if I'm understanding this correctly my script will read something like this:
video = AVISource("capture1.avi") + AVISource("capture2.avi")
audio = WAVSource("capture.wav") + WAVSource ("capture.wav")
AudioDub(video, audio)
And the end result will merge everything into one complete file/MPEG without knocking the video+audio out of sync during playback as long
as there were no video/audio errors in the first place?
:D
sh0dan
6th June 2003, 08:36
If you don't merge video and audio before merging the two videos there is a high risk, that you will have desync'ed audio in the second part. To be sure, use:
v1 = AVISource("capture1.avi")
a1 = WAVSource("capture.wav")
v2 = AVISource("capture2.avi")
a2 = WAVSource ("capture.wav")
v1 = AudioDub(v1, a1)
v2 = AudioDub(v2, a2)
v1 ++ v2
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.