Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 4th February 2007, 01:27   #1  |  Link
Cheech
Lazy noob.
 
Cheech's Avatar
 
Join Date: Sep 2005
Posts: 65
Joining videos in AVISynth

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:

Code:
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)
Cheech is offline   Reply With Quote
Old 4th February 2007, 01:45   #2  |  Link
Alain2
Registered User
 
Join Date: May 2005
Posts: 236
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
Alain2 is offline   Reply With Quote
Old 4th February 2007, 04:31   #3  |  Link
TwoToad
Registered User
 
TwoToad's Avatar
 
Join Date: Oct 2005
Posts: 76
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:

Code:
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?
TwoToad is offline   Reply With Quote
Old 4th February 2007, 06:03   #4  |  Link
Cheech
Lazy noob.
 
Cheech's Avatar
 
Join Date: Sep 2005
Posts: 65
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.
Cheech is offline   Reply With Quote
Old 4th February 2007, 06:27   #5  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
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.
foxyshadis is offline   Reply With Quote
Old 4th February 2007, 11:14   #6  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
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.
Code:
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
IanB is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 18:31.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.