Log in

View Full Version : 6ch_0xFFFE_audio.wav -> 6ch_audio.ac3 ?


Cela
27th May 2009, 07:48
From the posts in Link (http://forum.doom9.org/showthread.php?p=992916#post992916) I get a feeling that the cause may be already solved.

If so, please give a summary of
"How to convert 6ch_0xFFFE_audio.wav -> 6ch_audio.ac3 ?"
aka "6ch_0xFFFE_audio.wav" in and get an equivalent "6ch_audio.ac3" out

in steps which could be followed by a simple user who is new to this.

The "6ch_0xFFFE_audio.wav" is played well by graphedit with these filters:
-> Wave Parser -> ffdshow Audio Decoder -> Default DirectSound Device
but I fail to replace Default DirectSound Device to get the 6ch_audio.ac3 equivalent written as ac3 file to disk? The File writer writes something but does not do the job.

Other attempts, with eac3to, besweet, etc. all fail with a message "missing codec".

A small sample for experiments can be found here (http://rapidshare.com/files/237682411/6ch_0xFFFE_audio.rar).

Thanks in advance.

Kurtnoise
27th May 2009, 08:55
No need to post the same message twice...

Anyway, here is the trick:
Install the last NicAudio avisynth plugin
Write an avs script like that:
WAVSource("x\input.wav")
where x is your entire path
Feed it to Behappy or MeGUI and select Aften as AC3 encoder

Cela
27th May 2009, 10:01
No need to post the same message twice...I apologize!
Being nervous and in a hurry produces unnecessary errors.


Anyway, here is the trick:
Install the last NicAudio avisynth plugin
Write an avs script like that:
WAVSource("x\input.wav")
where x is your entire path
Feed it to Behappy or MeGUI and select Aften as AC3 encoderDoing what you adviced and this avs
# 0xFFFE_input.avs
#*****************
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\NicAudio.dll")
WAVSource("D:\_ToDo\6ch_0xFFFE_audio.wav")
and MeGUI really did the job.
Now I have the "0xFFFE_input.ac3" which I did not succeed to produce for days.

Thanks a lot! :)

tebasuna51
27th May 2009, 13:39
You can use a WAVE_FORMAT_EXTENSIBLE to encode to ac3 directly with Aften encoder.

Command line:
Aften -readtoeof 1 "D:\_ToDo\6ch_0xFFFE_audio.wav" "D:\_ToDo\6ch_0xFFFE_audio.ac3"

Or using a GUI like WavToAc3 (or AftenGUI from Kurtnoise random stuf)

This method is always better because the MaskChannel (the more important innovation in WAVE_FORMAT_EXTENSIBLE header) isn't supported in AviSynth, and Aften can't know if a 4 channel wav is a 3/1.0, a 2/2.0 or a 2/1.1
Using the direct method Aften read the MaskChannel and make a compliant ac3 file.

BTW, you only need NicAudio.dll to decode ac3, here the input is a uncompressed wav.
If your input WAV file is >4GB you need NicAudio.dll to open the wav file with RaWavSource(), instead WavSource without support for wav files > 4GB (like obtained with eac3to, faad, foobar2000, ...). The -readtoeof 1 parameter in Aften is also for support wav files > 4 GB

Cela
27th May 2009, 18:20
@Kurtnoise
@tebasuna51
Here obviously is the know-how, you are the experts!
Thank you so much for your kind help and explanations. :)

Cela