Avisynth and Windows 7

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: Avisynth and Windows 7

Post by mirkosp » Thu Mar 25, 2010 2:32 am

If your script is mpeg2source/ffvideosource/dss2, then you don't have the audio loaded in avisynth. If you need the audio, then you can load it like so:

Code: Select all

audiodub(mpeg2source("blabla.d2v"),wavsource("blabla.wav"))
Generally speaking you can try using ffaudiosource for any non wav audio. Failing that, a good alternative would be bassaudiosource which does however require you to also have the dll for the format you need to open in the plugins directory. Another option is just loading the audio with directshowsource.
If you are loading with avisource and it still is giving you trouble, I suppose you can just try the "audio from other file" option. Also, keep in mind that Lame (at least in my experience) doesn't like when you try to compress your audio to a Hz amount different to the input. You might have exported your audio as 48000Hz and so trying to compress it as 44100Hz would fail.
Image

User avatar
Kazemon15
Joined: Fri May 09, 2003 9:28 pm
Status: Reborn! Fanatic
Location: AMV Freak, California
Contact:
Org Profile

Re: Avisynth and Windows 7

Post by Kazemon15 » Thu Mar 25, 2010 1:13 pm

Thanks for replying.


I'm actually trying to compress an MP4 file to xvid for youtube viewing, so I'm using directshowsource.

I usually only need the audio with directshowsource for files such as mp4 or mkv because I upload clips using virtualdub. Do I still need to use audiodub for directshowsource as well? Thanks again.

I'm also going to assume to use audiodub, I'll need to download the dll, so I'll go look for that.

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: Avisynth and Windows 7

Post by mirkosp » Thu Mar 25, 2010 2:59 pm

audiodub is an internal avisynth function, no need for anything extra. As for the plain directshowsource, that actually loads the audio by default by itself.
Image

User avatar
Kazemon15
Joined: Fri May 09, 2003 9:28 pm
Status: Reborn! Fanatic
Location: AMV Freak, California
Contact:
Org Profile

Re: Avisynth and Windows 7

Post by Kazemon15 » Thu Mar 25, 2010 7:13 pm

That's what I thought.

But even when using Directshowsource with a script in virtualdub, the audio is no longer there for some odd reason. I play the mp4 file, and the audio is still intact, but opening the file in virtualdub with a script somehow mutes it. :?

Locked

Return to “AviSynth Help”