View Full Version : Joining videos in AVISynth
Cheech
4th February 2007, 01:27
I want to join a series of d2v files toghter but it seems the more I join, the worse the audio gets in the end, is there a way to make the audio resync at every join point? Here is my current setup:
LoadPlugin("C:\Documents and Settings\Administrator\My Documents\DG MPG Decode\DGDecode.dll")
Import("C:\Program Files (x86)\AVISynth 2.5\plugins\mvbob.avs")
video=MPEG2Source("The Tonight Show with Jay Leno (1).d2v")+MPEG2Source("2.d2v")+MPEG2Source("3a.d2v")
audio=WAVSource("The Tonight Show with Jay Leno (1) PID 044 T01 3_2ch 384Kbps 48KHz.wav")+WAVSource("2 PID 044 T01 3_2ch 384Kbps 48KHz.wav")+WAVSource("3a PID 044 T01 2_0ch 384Kbps 48KHz.wav")
AudioDub(video,audio)
ReduceBy2()
Crop(4,0,-4,-4)
Alain2
4th February 2007, 01:45
Do the audiodub on each clip first, then join them together with alignedsplice (or ++, not + as you did)
Like AudioDub(video1,audio1)++AudioDub(video2,audio2) etc
TwoToad
4th February 2007, 04:31
I am also working on a project like this where the dvd manufacturer separated each chapter into it's own VOB. And each VOB has a different type of interlacing and crop values. =(
How would I go about joining all these chapters after applying deinterlacing, crops, resizes, and filters?
I was thinking something along the lines of:
video1 = {
mpeg2source("chapter1.d2v")
Deinterlace
Denoiser
Crop
Resize
Sharpener
}
video2 = {
mpeg2source("chapter2.d2v")
Deinterlace
Denoiser
Crop
Resize
Sharpener
}
video = video1+video2
Or something along those lines. They would all be resized to the same height and width too... So far this doesn't work, Vdubmod keeps telling me there is an error, so I know I've misunderstood the syntax. Any hints?
Cheech
4th February 2007, 06:03
Thanks for the tip Alain2, I ended up sucking it up and buying VideoReDo Plus which eliminated this whole step.
TwoToad: Do you get any error messages? I would think they would work as long as the colorspace, FPS, and rez is the same.
foxyshadis
4th February 2007, 06:27
mpeg2source("chapter1.d2v")+mpeg2source("chapter2.d2v")+mpeg2source("chapter3.d2v")+...+mpeg2source("chapter40.d2v")
deinterlace
denoise
etc.
No need for braces, or even variables, and you should avoid multiple instances of filters whenever possible.
IanB
4th February 2007, 11:14
Given he wants different cropping, denoising etc per segment, he really is stuck with doing it the hard way. Once things are all the same size, common code can be used, like the sharpening at the end, assuming the same sharpening is wanted.mpeg2source("chapter1.d2v")
AudioDub(WavSource("chapter1.wav"))
Deinterlace
Denoiser
Crop
Resize
video1=last
mpeg2source("chapter2.d2v")
AudioDub(WavSource("chapter2.wav"))
Deinterlace
Denoiser
Crop
Resize
video2=last
...
video1++video2++...
Sharpener
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.