Log in

View Full Version : How to convert audio stream stored in WMV to 2ch or 6ch wav?


Atak_Snajpera
24th January 2007, 01:21
I am trying to convert HD-WMV clip to x264/HE-AAC but I need to know how to extract audio to wav. If I would have wav I could use NeroAacEnc.exe

tebasuna51
24th January 2007, 04:18
Open the wmv in GraphEdit, delete the renders and video decoder, conect WavDest to the WMAudio Decoder DMO and FileWriter to WavDest and play.

Atak_Snajpera
24th January 2007, 12:44
As the matter of fact I am looking for free command tool like besweet. Unfortunately besweet does not support wmv files.

buzzqw
24th January 2007, 13:14
i suppose the SoudOut plugin (by Sh0dan) could bring to these results if used with directshowsource...

BHH

Atak_Snajpera
24th January 2007, 13:42
I found perfect solution! I can get wav from any source with avs2wav. Unforunately -n (normalization) is broken so don't use it otherwise you will get wav without sound :-(

tebasuna51
24th January 2007, 14:38
@buzzqw
Seems work better with SoundOut because with my HD-WMV sample the audio output is 6 channel 24 bit.

Using GraphEdit (WMAudio Decoder DMO -> WavDest -> FileWriter) I obtain stereo 16 bit only (there are a thread about this problem with WMAudio Decoder DMO)

@Atak_Snajpera
SoundOut (http://forum.doom9.org/showthread.php?t=120025) is at developing stage but you can try this method:

- Create a test.avs file with Notepad like this:
DirectShowSource("G:\temp\CBS-720p.wmv")
SoundOut()

- Open the avs file with VirtualDub.

- A GUI is automatically open and select CmdLine Output button:
Wave Type: MicroSoft Wave
Format: 24 bit
Executeable: click at Browse button and search your NeroAacEnc
Parameters before output filename: -q 0.3 -ignorelength -if - -of
Parameters after output filename: (nothing)
Precess...

Of course you can put the parameters at your choice.
And you can add any audio AviSynth processing between DirectShowSource() and SoundOut() like Normalize(), ...