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 2nd June 2005, 19:38   #1  |  Link
lbecque
Registered User
 
Join Date: Mar 2005
Posts: 14
How to include .mpa audio w/ .d2v video?

I have taken an mpeg2 file and processed it with dgindex and demuxed the audio into a .mpa file. I'm then using an avisynth script to process the video but I can't figure out how to dub the audio back in. Help!

My script looks like:
loadplugin("...DGDecode.dll")
# following upconv=true To convert to YUY2 for virtualdub
mpeg2source("D:\movies\resize battlestar.d2v", upConv=true)
# if interlaced use folowing group of lines
SeparateFields()
Lanczos4Resize(720,240,0,29,720,180).Weave()

I tried adding the following lines but can't get any of it to work:
# can't get following lines to work
video = Lanczos4Resize(720,240,0,29,720,180).Weave()
audio = WavSource("D:\movies\resize battlestar MPA T01 DELAY 17ms.mpa")
AudioDub(video, audio)
lbecque is offline   Reply With Quote
Old 2nd June 2005, 20:19   #2  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Use NicMPASource or MPASource and don't forget about the possible delay.
Wilbert is offline   Reply With Quote
Old 2nd June 2005, 20:49   #3  |  Link
acrespo
Brazilian Anime Ripper
 
Join Date: Nov 2001
Location: Brazil
Posts: 237
Or convert .MPA file to .WAV. I recommend this conversion because MPA file need to decode in real time by the plugins and CPU need more time to do this step.
__________________
Capture cards:
Compro VideoMate Gold+ (Philips SAA7134 based) (not active)
Hauppauge PVR 150MCE (not active)
ATI TV Wonder Elite (active)
acrespo is offline   Reply With Quote
Old 2nd June 2005, 22:41   #4  |  Link
lbecque
Registered User
 
Join Date: Mar 2005
Posts: 14
Quote:
Originally Posted by Wilbert
Use NicMPASource or MPASource and don't forget about the possible delay.
I need some education here. What do you mean by not forgetting about the delay???
lbecque is offline   Reply With Quote
Old 2nd June 2005, 23:16   #5  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
If you look at the name of the mpa file you will see it has a delay of 17ms. Thus your script becomes
Code:
loadplugin("...DGDecode.dll")
# following upconv=true To convert to YUY2 for virtualdub
mpeg2source("D:\movies\resize battlestar.d2v", upConv=true)
# if interlaced use folowing group of lines
video = last.SeparateFields().Lanczos4Resize(720,240,0,29,720,180).Weave()
audio = MPASource("D:\movies\resize battlestar MPA T01 DELAY 17ms.mpa")
AudioDub(video,audio)
DelayAudio(0.017)
Wilbert is offline   Reply With Quote
Old 3rd June 2005, 00:28   #6  |  Link
lbecque
Registered User
 
Join Date: Mar 2005
Posts: 14
Thanks Wilbert and thanks again for straightening out that one line I was having trouble with
Code:
video = last.SeparateFields().Lanczos4Resize(720,240,0,29,720,180).Weave()
I was a little puzzled at first with this line but I found some explanations on the avisynth site and I think I get it now.
Last is a special variable representing the clip from the previous statements.
and the '.' is the same as putting it inside the next function i.e.
separatefileds(last)
lbecque 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 09:09.


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