no audio when joining files in avisynth

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
slackergirl
is the Ultimate Boy Scout
Joined: Sat May 12, 2001 2:46 pm
Location: Historic NJ, USA
Org Profile

no audio when joining files in avisynth

Post by slackergirl » Wed Sep 24, 2008 11:49 pm

I'm sure the answer is somewhere on these forums, and I'm sure I'm making a stupid mistake, but I just can't find it. Here's the sitch:

I exported my video as a Huffyuv with 5 seconds of black surrounding for a con. My computer sorta broke so I can't re-export it. (It no longer likes my editor.)

I would like to cut off the black 5 seconds and add opening and closing silent bumps to it, and through researching the most helpful forums, have written the following script:

AVIsource("D:\AMVfiles\Arjuna\Wood-Earthy Huffyuv.avi")
Lanczosresize(848,480)
trim(120,3394)
video=AudioDub(last,WAVSource("D:\AMVfiles\music\angelic (slackergirl edit v2).wav"))

vidstart=AVIsource("D:\AMVfiles\Arjuna\Angelic Earth begin credit.avi")
audstart=BlankClip(vidstart,audio_rate=44100,stereo=true)
start=AudioDub(vidstart,audstart)

vidend=AVIsource("D:\AMVfiles\Arjuna\Angelic Earth end credit.avi")
audend=BlankClip(vidend,audio_rate=44100,stereo=true)
end=AudioDub(vidend,audend)

start+video+end

The video comes through fine, but there is no audio. I think my problem is when or how I'm defining "video". Or some audio issue unknown to me. (The wav file is in 44100 stereo.) I'm very confused.
Image
Image

User avatar
Pwolf
Friendly Neighborhood Pwaffle
Joined: Thu May 03, 2001 4:17 pm
Location: Some where in California, I forgot :\
Contact:
Org Profile

Post by Pwolf » Thu Sep 25, 2008 1:03 am

v = AVIsource("D:\AMVfiles\Arjuna\Wood-Earthy Huffyuv.avi").Lanczosresize(848,480).trim(120,3394)
a = WAVSource("D:\AMVfiles\music\angelic (slackergirl edit v2).wav")

video = AudioDub(v,a)

vidstart=AVIsource("D:\AMVfiles\Arjuna\Angelic Earth begin credit.avi")
audstart=BlankClip(vidstart,audio_rate=44100,stereo=true)
start=AudioDub(vidstart,audstart)

vidend=AVIsource("D:\AMVfiles\Arjuna\Angelic Earth end credit.avi")
audend=BlankClip(vidend,audio_rate=44100,stereo=true)
end=AudioDub(vidend,audend)

start+video+end

User avatar
Pwolf
Friendly Neighborhood Pwaffle
Joined: Thu May 03, 2001 4:17 pm
Location: Some where in California, I forgot :\
Contact:
Org Profile

Post by Pwolf » Thu Sep 25, 2008 1:03 am

Pwolf wrote:v = AVIsource("D:\AMVfiles\Arjuna\Wood-Earthy Huffyuv.avi").Lanczosresize(848,480).trim(120,3394)
a = WAVSource("D:\AMVfiles\music\angelic (slackergirl edit v2).wav")

video = AudioDub(v,a)

vidstart=AVIsource("D:\AMVfiles\Arjuna\Angelic Earth begin credit.avi")
audstart=BlankClip(vidstart,audio_rate=44100,stereo=true)
start=AudioDub(vidstart,audstart)

vidend=AVIsource("D:\AMVfiles\Arjuna\Angelic Earth end credit.avi")
audend=BlankClip(vidend,audio_rate=44100,stereo=true)
end=AudioDub(vidend,audend)

return start+video+end

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Post by Scintilla » Thu Sep 25, 2008 5:50 am

Change the last line to: <b>start++video++end</b>

I don't see anything else that would be a problem.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

User avatar
Pwolf
Friendly Neighborhood Pwaffle
Joined: Thu May 03, 2001 4:17 pm
Location: Some where in California, I forgot :\
Contact:
Org Profile

Post by Pwolf » Thu Sep 25, 2008 10:46 am

Scintilla wrote:Change the last line to: <b>start++video++end</b>

I don't see anything else that would be a problem.
doh, yea i forgot that... -_-

User avatar
slackergirl
is the Ultimate Boy Scout
Joined: Sat May 12, 2001 2:46 pm
Location: Historic NJ, USA
Org Profile

Post by slackergirl » Fri Sep 26, 2008 8:56 pm

Hmmm... My reply from yesterday didn't post...
Anyways, it still doesn't work. The wav file is alright. If I comment out the start and end parts and return "video", I get the audio fine. Do I need to be defining more parameters for the silence blocks? Might something in VDM be set wrong? (I've changed nothing from install.) I'll play around with it some more, but any advice would be appreciated. Here is my revised script for review:

v=AVIsource("D:\AMVfiles\Arjuna\Wood-Earthy Huffyuv.avi").Lanczosresize(848,480).trim(120,3394)
a=WAVSource("D:\AMVfiles\music\angelic (slackergirl edit v2).wav")
video=AudioDub(v,a)

vidstart=AVIsource("D:\AMVfiles\Arjuna\Angelic Earth begin credit.avi")
audstart=BlankClip(vidstart,audio_rate=44100,stereo=true)
start=AudioDub(vidstart,audstart)

vidend=AVIsource("D:\AMVfiles\Arjuna\Angelic Earth end credit.avi")
audend=BlankClip(vidend,audio_rate=44100,stereo=true)
end=AudioDub(vidend,audend)

start++video++end

User avatar
slackergirl
is the Ultimate Boy Scout
Joined: Sat May 12, 2001 2:46 pm
Location: Historic NJ, USA
Org Profile

Post by slackergirl » Fri Sep 26, 2008 9:21 pm

Got it working. I had to run just the credits through VDM and save a blank wav file, then audiodub that to the credits in the final script. Thanks for everyones help though!

Locked

Return to “AviSynth Help”