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. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#1 | Link |
|
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) |
|
|
|
|
|
#3 | Link |
|
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) |
|
|
|
|
|
#5 | Link |
|
Super Moderator
![]() Join Date: Nov 2001
Location: Netherlands
Posts: 6,390
|
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)
|
|
|
|
|
|
#6 | Link |
|
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() 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) |
|
|
|
![]() |
|
|