View Full Version : 6 mono wavs to aac 5.1 in MeGUI
Taxidermista
24th September 2006, 17:54
I don't know if this question belongs to this forum. I apologize if I'm wrong.
I'm desperate whith this issue. I have a defective ac3 stream that appears as 2.0 when it's really a 5.1 file. I used BeLight to extract the 6 channels from the AC3 (any other software keeps thinking the file is AC3 2.0).
I don't know what to do with these 6 mono wavs. I've tried every imaginable combination with WaveWizard to create a multichannel wav that MeGUI could accept to encode to AAC 5.1 with no luck, MeGUI stops always with an error:
Error:
MeGUI.AviSynthException: AVIFileSource: couldn't open file 'E:\saw2wav51.wav'
at MeGUI.AviSynthClip..ctor(String func, String arg, AviSynthColorspace forceColorspace, AviSynthScriptEnvironment env)
at MeGUI.AviSynthAudioEncoder.encode()
The "Force Decoding via DirectShow" option in Nero AAC Encoder Configuration eliminates the error but the resultant AAC file is just a 93 min. high frequency noise.
BTW these multichannel wavs do not play in MP Classic or WMP11, only in VLC.
I've tried a Windows Media Encoder tool from Microsoft to create a multichannel wav into an avi file, then I demuxed the audio with VDub, but this wav gives me the same error in MeGUI.
My last try, muxed the 6 mono wavs to a multichannel extensible wave file with Maven 3D Pro. Same results. :(
Maybe I'm forgetting some simple solution, I don't know. I couldn't find anything useful searching the forum. Any ideas?
bond
24th September 2006, 18:47
moved
buzzqw
24th September 2006, 19:18
use aften and reencode the 5+1 wav to ac3 5.1
BHH
Skelsgard
24th September 2006, 19:24
Get Wavewizard (Ww).
Load the 6 mono WAVs into Ww in this order: L-R-C-Ls-Rs-LFE.
Then go to Edit --> Preferences. Select: Ignore File Size Header - Always, Stream Manipulation - Merge Files, Output Format - Wave PCM. Everything else must be unselected/disabled.
Hit "Apply" and "OK".
Hit Convert and uŽll get a 6-ch WAV PCM file, that u can load into MeGui.
Cheers.
shon3i
24th September 2006, 19:28
Why you not just encode that ac3 to aac in megui with Keep Original Channels option, if this file is 5.1, aac will be 5.1 then.
raquete
24th September 2006, 19:40
@ shon3i
trust,i don't understood a thing.(and don't know aac too)
Taxidermista have 6 mono waves from defective ac3 stream ,then what means "Original Channels option" ?
:confused:
Taxidermista
24th September 2006, 19:52
use aften and reencode the 5+1 wav to ac3 5.1
BHH
I want an AAC 5.1, not an AC3 5.1
Get Wavewizard (Ww).
Load the 6 mono WAVs into Ww in this order: L-R-C-Ls-Rs-LFE.
Then go to Edit --> Preferences. Select: Ignore File Size Header - Always, Stream Manipulation - Merge Files, Output Format - Wave PCM. Everything else must be unselected/disabled.
Hit "Apply" and "OK".
Hit Convert and uŽll get a 6-ch WAV PCM file, that u can load into MeGui.
Cheers.
I think I've tried that particular combo, but I'll try again. Thanks. :)
Why you not just encode that ac3 to aac in megui with Keep Original Channels option, if this file is 5.1, aac will be 5.1 then.
It's a 5.1 file but, as I've said, is defective and megui identifies it as a 2.0 file.
Taxidermista
24th September 2006, 22:01
Get Wavewizard (Ww).
Load the 6 mono WAVs into Ww in this order: L-R-C-Ls-Rs-LFE.
Then go to Edit --> Preferences. Select: Ignore File Size Header - Always, Stream Manipulation - Merge Files, Output Format - Wave PCM. Everything else must be unselected/disabled.
Hit "Apply" and "OK".
Hit Convert and uŽll get a 6-ch WAV PCM file, that u can load into MeGui.
Cheers.
It works! Now I have a perfect AAC 5.1 for the video. :thanks:
Sorry, I forgot. One question: why this multichannel wavs do not play in WMP11 or MP Classic?
Skelsgard
25th September 2006, 00:42
YouŽre welcome.
Sorry, I forgot. One question: why this multichannel wavs do not play in WMP11 or MP Classic?
Usually, cause the buffer to play that file itŽs too big for WMP to render it. At least, thatŽs what IŽve ran into a couple of times.
Cheers.
tebasuna51
25th September 2006, 01:20
Load the 6 mono WAVs into Ww in this order: L-R-C-Ls-Rs-LFE.
...
Hit Convert and uŽll get a 6-ch WAV PCM file, that u can load into MeGui.
Why not L-R-C-LFE-Ls-Rs?
Skelsgard
25th September 2006, 02:36
Why not L-R-C-LFE-Ls-Rs?
YouŽre right, my bad (i blame the fast typing :D )
buzzqw
25th September 2006, 06:41
@Taxidermista
and then reencode 5.1 ac3 to 5.1 aac :)
BHH
Taxidermista
26th September 2006, 02:28
@Taxidermista
and then reencode 5.1 ac3 to 5.1 aac :)
BHH
This would be my last resource if nothing else works. That's too many compressions, don't you think?
buzzqw
26th September 2006, 07:41
This would be my last resource if nothing else works. That's too many compressions, don't you think?
for sure... but...
ac3 to wav is a lossless process, and wav to 484Kbs ac3 is near lossless.
also... afaik bepipe cannot handle wav file > 4gb so if your movie is 2 hours at last , you cannot process 5.1wav directly
BHH
Skelsgard
28th September 2006, 17:12
ac3 to wav is a lossless process, and wav to 484Kbs ac3 is near lossless.
Not really. In that case it would be better 640kbps, but to recompress to AC3 will mean an extra loss of quality when is not needed.
also... afaik bepipe cannot handle wav file > 4gb so if your movie is 2 hours at last , you cannot process 5.1wav directly
What about avisynth?
tebasuna51
28th September 2006, 17:39
@buzzqw
Bepipe work with wav > 4GB, see http://forum.doom9.org/showthread.php?p=825489#post825489
@Skelsgard
Bepipe is for use avisynth.
Skelsgard
28th September 2006, 18:09
Bepipe is for use avisynth.
Thanks for clarifying that.
And what if u just load thru DirectShowSource() in your script?
Rockaria
29th September 2006, 00:08
It depends on the avisynth client applications :
. if you load the avs in graphedit, vdub, dsf players and similar, the avisynth.dll will initiate an AVI stream to serve the client's rendering requests.
. if loaded thru avs2wav or bepipe, it will try to read the AVI audio stream and write to a WAV file or STDOUT.
. if parsed thru avsredirector, avisynthwrapper or similar (avs plugin) wrapper based, it will directly instantiate a new request and consume internally or stdout for any cli encoders.
. other interfaces : makeavis(wav/avi wrapper), plugin redirector : some real plugins can be designed to redirect/share the stream to other destinations(tcpdeliver?, apps, files) while the status/preview being rendered.
directshowsource and wavsource are two different input plugins for any avisynth server instances.
[edit] at last, the main issue...
The builtin directshowsource filter I used(2.55 &2.56) impressed me heavily relying on the header info. I assume it's at best similar to WMP or graphedit rendering. Also it must be worthwhile to check the improved 2.57 version.
@Taxidermista ,
What is the source of the seemingly defected ac3 file?
If it was from demuxed ddwav, you will find the VLC is also most generous in decoding these less compatible files.
I also prefer non-stop 5.1ch transcoding.
tebasuna51
29th September 2006, 02:16
I think the Taxidermista's problem is solved with WaveWizard and NeroAacEnc:
"It works! Now I have a perfect AAC 5.1 for the video."
Of course my solution for 6 mono wavs to aac is with an Audio.avs:
fl = WavSource("D:\YourPath\x_fL.wav")
fr = WavSource("D:\YourPath\x_fR.wav")
c = WavSource("D:\YourPath\x_C.wav")
lfe = WavSource("D:\YourPath\x_LFE.wav")
sl = WavSource("D:\YourPath\x_sl.wav")
sr = WavSource("D:\YourPath\x_sr.wav")
MergeChannels(fl, fr, c, lfe, sl, sr)
And after:
bepipe --script "Import(^Audio.avs^)" | NeroAacEnc.exe -q 0.5 -if - -of "x.m4a"
We don't need a intermediate wav6 file.
I always prefer use WavSource() or the appropriate decoder plugin (if exist) instead DirectShowSource() because DirectShow configuration can be different for play than for encode.
Also I can't recommend DirectShowSource() because DirectShow configuration can be different in my pc and the others.
Maybe the problem pending is:
"I have a defective ac3 stream that appears as 2.0 when it's really a 5.1 file. I used BeLight to extract the 6 channels from the AC3 (any other software keeps thinking the file is AC3 2.0)."
I think MEGUI use NicAudio to decode ac3 and can be related with this thread http://forum.doom9.org/showthread.php?t=114968
Rockaria
29th September 2006, 03:38
Some differences in the approaches :
. problem resolved but other improving efforts are going on
. 6 mono wav files are harder to control than single 6ch intermediate files.
. from 'BeLight to extract the 6 channels', I assume two possible cases : 1. it fixed and decoded, 2. it could recognize as 6ch from other than the header info.
. from the '2ch identified ac3', we can definitely wonder what has caused it & how. It can simply be identification issue.
. VLC can also decode the less compatible ddwav format while most other tools cannot, so ddwav is less compatible or defective depending on the tools.
Of course I do not require everybody's agreement to my point of views which are just for some (potential) people with similar logic.
Also my clarification of the avisynth based tools are just based on the REALITY, not to hurt anybody here. Actually I managed to decode the prev. post later(based on the skills) & edited accordingly.
So I WILL still pursue "I also prefer non-stop 5.1ch transcoding." and get rid of the inefficiency, inflexibility etc (check edit*) from my preferred options, whenever possible.;)
[edit*] I hate to have another trouble, correcting is always better than insisting.
Rockaria
29th September 2006, 23:13
I think MEGUI use NicAudio to decode ac3 and can be related with this thread http://forum.doom9.org/showthread.php?t=114968
Yeah, the starting point happens like this :
There are a problem with jruggle sample but it isn't related with Dialog Norm.
Encoded with Aften (last binary from Kurtnoise), ffmpeg or SoftEncode (and with dnorm 17 or 31), when is decoded to wav with NicAc3Source(Bepipe/BeHappy) crash , and decoded with BeSweet-Azid there are more than 20 errors like:
[00:00:13.235] W7: Downmix overflow (0: +1.7dB)
The players work fine and I can't listen differences or clipping.
Then developped step by step thru cooporative different views.
Finally the owner WILL release the verified version with sources.
I believe the very related 4GB limitation resolution(int_64 for the sample count) also is in progress widely, expected by the architectural limitation in this case.
Taxidermista
12th October 2006, 15:45
@Taxidermista ,
What is the source of the seemingly defected ac3 file?
If it was from demuxed ddwav, you will find the VLC is also most generous in decoding these less compatible files.
I also prefer non-stop 5.1ch transcoding.
The source was a 1080i HDTV cap.
raquete
12th October 2006, 19:35
Yeah, the starting point happens like this :
Then developped step by step thru cooporative different views.
Finally the owner WILL release the verified version with sources.
I believe the very related 4GB limitation resolution(int_64 for the sample count) also is in progress widely, expected by the architectural limitation in this case.
good memory but bad atention. lol
look this in the same thread: http://forum.doom9.org/showthread.php?p=870339#post870339
Rockaria
13th October 2006, 02:09
The source was a 1080i HDTV cap.
My successful TEST for the AC3 5.1ch audio capture using AN7(soundstorm) spdif-in was like :
5.1 dd source->spdif-in->grapedit(capture device->wav-dest->file writer)->ddwav->besplit(besliced)->ac3
The VLC (only) played the captured ddwav without an issue while the AC3 played by all capable players.
@all, could anybody kindly explain what the OWNER's alpha without sources means?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.