Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Audio encoding

Reply
 
Thread Tools Search this Thread Display Modes
Old 26th December 2006, 23:41   #161  |  Link
Robot
Registered User
 
Join Date: Jun 2006
Posts: 19
Sorry, but how do I get the 6 mono waves? And how will I know which is which?

Thanks for your patience.
Robot is offline   Reply With Quote
Old 27th December 2006, 01:47   #162  |  Link
Skelsgard
foobaring my ass off
 
Skelsgard's Avatar
 
Join Date: Nov 2005
Location: Argentina
Posts: 618
With Wavewizard, of course
As you already have the 6ch file mixed, you can remap straight from WW.
Load the 6ch WAV, go to Edit --> Preferences. Enable Enable Channelmapping, Ignore File size in header --> Always (I donīt know how big your file is) and Output --> Wave PCM. Disable anything else.
Hit OK.
Go to Edit --> Channel mapping.
Click on New to create a custom profile. Choose From 6 to 6, Move channels and configure the mapping.
Your stream seems to be: L(ch0)-R(ch1)-C(ch2)-SR(ch3)-SL(ch4)-LFE(ch5).
To remap it to proper WAV order:
L-R-C-LFE-SL-SR --> ch0(0)-ch1(1)-ch2(2)-ch3(5)-ch4(4)-ch5(3)

Itīs also posible that the order is:
L(ch0)-R(ch1)-C(ch2)-SL(ch3)-SR(ch4)-LFE(ch5).
If so remap to:
ch0(0)-ch1(1)-ch2(2)-ch3(5)-ch4(3)-ch5(4)

Once youīve created the mapping profile, enable it and hit OK.
Now Convert.

Try to find similar sounds that should come from near-to-each-other speakers. Letīs say, bullet sounds coming out from the FL speaker are more likely to come out from the SL speaker too. If you hear these sounds coming from the SR, itīs almost certain that SL and SR are mixed.

Cheers.
__________________
"Damn, respect my authoritay!!" - E. Cartman
Skelsgard is offline   Reply With Quote
Old 28th December 2006, 18:34   #163  |  Link
Robot
Registered User
 
Join Date: Jun 2006
Posts: 19
Quote:
Originally Posted by Skelsgard View Post
If you hear these sounds coming from the SR, itīs almost certain that SL and SR are mixed.
I think I've almost got the mapping right, but I still don't have two surround channels (only left or right depending on how I map). Does this mean that the SR and SL are mixed? If so, how do I fix that?

Thanks.
Robot is offline   Reply With Quote
Old 28th December 2006, 23:38   #164  |  Link
Skelsgard
foobaring my ass off
 
Skelsgard's Avatar
 
Join Date: Nov 2005
Location: Argentina
Posts: 618
If the mappings are correctly applied, that shouldnīt happen.
Maybe you missed something in the mapping.

For ch0(0)-ch1(1)-ch2(2)-ch3(5)-ch4(4)-ch5(3) [L-R-C-SR-SL-LFE], remap like this:



For ch0(0)-ch1(1)-ch2(2)-ch3(5)-ch4(3)-ch5(4) [L-R-C-SL-SR-LFE], like this:


Donīt forget to enable the mapping


Cheers
__________________
"Damn, respect my authoritay!!" - E. Cartman
Skelsgard is offline   Reply With Quote
Old 5th January 2007, 08:05   #165  |  Link
erdie
Registered User
 
Join Date: Feb 2002
Posts: 31
anyone got a mirror to the .zip file?

seems like the rarewares one is dead...
erdie is offline   Reply With Quote
Old 5th January 2007, 11:22   #166  |  Link
daphy
Miles Freak
 
daphy's Avatar
 
Join Date: Apr 2003
Location: Europe
Posts: 652
look here
__________________
CYA Daphy
daphy is offline   Reply With Quote
Old 5th January 2007, 13:37   #167  |  Link
erdie
Registered User
 
Join Date: Feb 2002
Posts: 31
thx a bunch!
erdie is offline   Reply With Quote
Old 7th June 2007, 08:35   #168  |  Link
homerpez
Registered User
 
Join Date: May 2007
Posts: 98
Quote:
Originally Posted by Robot View Post
I’m hoping someone can help me with this problem.

I have a 6-channel PCM wav that I’m trying to turn into an ac3 file. The problem I’m having is with the channel mapping. I cannot figure out how to map them correctly for ac3. No matter what I do, I seem to either get the center channel switched with a rear channel or the left switched with the center, etc. It’s driving me nuts!

I’m using Wavewizard to re-map the channels from the wav file. The wav file was originally encoded from a 6-channel AAC file if that helps.

Thanks
Similar thing here... though I'm not even making it that far.

I'm going from DTS-HD --> Tranzcode --> Wavewizard (6 CH WAV), hopefully to AC3 using Behappy.

I take the individual channel WAV's, and order them in Wavewizard: FL, FR, C, LFE, SL, SR (which I think is the proper way). I click "Merge" under Preferences, and process it. The end result is, I can't open the 6-channel wave in anything... not in Behappy, Audacity, or Nero Wave editor. It crashes each of these programs every time I load the merged WAV.

The individual WAV's do play, as they are generated by Tranzcode, it seems I must be missing something somewhere, or Wavewizard is. I'm guessing from people singing the praises of Wavewizard, it's something I'm overlooking.

Incidentally... I also tried to import the WAV's into audacity, and then merge into a flac... same result. Everything crashes instantly on load of the merged file. ???

Can someone tell me exactly how to properly merge the 6 WAV's into one, so I can then make a proper AC3 using BeHappy? Hopefully without the insta-crash?

(Of course, I have no way of testing the mapping myself, since the resulting 6-channel wave is crashing every encoder I have.......)

I'm desperately confused here... I really need to have "that one way that works"... thanks

Last edited by homerpez; 7th June 2007 at 10:51.
homerpez is offline   Reply With Quote
Old 7th June 2007, 12:11   #169  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
@homerpez
I don't know if Tranzcode can decode DTS-HD, but if you say the mono wavs are playable, and recognized by WaveWizard, the multichannel generated can be usable for Aften (or AftenGUI) to encode to ac3.

Maybe you have a multichannel wav greater than 4 GB and some soft refuse to play them, but no problem for Aften if you include the -readtoeof 1 parameter.

If this not work, please specify sizes and formats of wav files.
tebasuna51 is offline   Reply With Quote
Old 7th June 2007, 16:48   #170  |  Link
homerpez
Registered User
 
Join Date: May 2007
Posts: 98
I definitely think something else is amiss here... since as I posted above, it wasn't only the 6.99GB Wav that crashed all encoders/players instantly, the FLAC did it as well. The FLAC was only about 300 MB or so, so it's not a matter of size I don't think.

Each of the tracks I get from tranzcode have this attribute when I ask for 'Properties' in MPC:

Audio: IEEE Float 48000Hz mono 1536Kbps [output]

All of them do play correctly by themselves, but will not play of encode when merged into anything. I've tried WAV (Wavwizard) and FLAC (using Audacity).

In BeHappy (which is frontending Aften I guess), the WAV simply crashes the program instantly. With the FLAC, it just sits there, the processor is doing "something" but no audio is encoded from it.

Is there a program that will let me load all the mono WAV files into it directly, and encode straight to AC3?

Perhaps someone who IS doing DTS-HD encoding can lead me through their process, I may be doing something wrong when I'm merging them, or my computer itself may have a demon possession - you never know.

Whatever ways I'm trying (Wavwizard and Audacity) don't seem to merge properly.....
homerpez is offline   Reply With Quote
Old 7th June 2007, 17:46   #171  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
If your mono wav's are over 1h 48min, and over 1.16 GB each, and your 6.99 GB multichannel wav are created with WaveWizard Preferences:
- Stream manipulation: Merge
- Output Format: Wave PCM or WaveFormatEx
- Others options unchecked

your wav 6.99GB is ready to be encoded with Aften with -readtoeof 1

Use command line or AftenGUI

Last edited by tebasuna51; 7th June 2007 at 18:08.
tebasuna51 is offline   Reply With Quote
Old 7th June 2007, 19:57   #172  |  Link
homerpez
Registered User
 
Join Date: May 2007
Posts: 98
OK... this is seriously making me want to kill myself.

Quote:
If your mono wav's are over 1h 48min, and over 1.16 GB each, and your 6.99 GB multichannel wav are created with WaveWizard Preferences:
- Stream manipulation: Merge
- Output Format: Wave PCM or WaveFormatEx
- Others options unchecked

your wav 6.99GB is ready to be encoded with Aften with -readtoeof 1

Use command line or AftenGUI
Re-cap:

1. I demux the DTS-HD track from the m2ts stream.

2. I used Tranzcode 0.40 (TransGUI) to generate 6 mono WAV files. These mono WAV's all play correctly in MPC, WMP, etc.

3. I load the 6 WAV files into Wavwizard. I order them, top to bottom:

FL
FR
C
LFE
SL
SR

4. I applied the checkboxes as indicated. Stream manipulation, Merge, PCM WAV out, no other options. I Click 'Convert', and at the end they all say 'Sucessful'. It makes the 6.99GB wav.

5. I then try to use the 6.99GB "audio-FL_Merge.wav" file to make the AC3.

Here's what happens:

BeHappy wavsource -> Aften AC3 = Program instantly crashed, with this error:

Quote:
Problem signature:
Problem Event Name: BEX
Application Name: BeHappy.exe
Application Version: 0.1.9.35190
Application Timestamp: 4601dccd
Fault Module Name: AvisynthWrapper.dll
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 45f4c9c9
Exception Offset: 00001d62
Exception Code: c000000d
Exception Data: 00000000
OS Version: 6.0.6000.2.0.0.256.1
Locale ID: 1033
Additional Information 1: f5a8
Additional Information 2: 26e2a974e105888ffa55cf6ab26d94e6
Additional Information 3: e052
Additional Information 4: c349466e7c52437c92b09f29bff1e833
Aften GUI -> AC3 = Program comes up immediately with the window 'Encoding Finished', even though no AC3 was produced at all.

("Read to end" flag was checked on both GUI's, and is by default.)

Trying to play audio-FL_Merge.wav in WMP crashes. Winamp crashes. Audacity crashes. Media Player Classic crashes.


This is the error raised by MPC, maybe it can explain why this is going on???

Quote:
C:\temp\TEST\audio-FL_Merge.wav::Output

Media Type 0:
--------------------------
Unknown

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Stream {E436EB83-524F-11CE-9F53-0020AF0BA770}
subtype: MEDIASUBTYPE_WAVE {E436EB8B-524F-11CE-9F53-0020AF0BA770}
formattype: TIME_FORMAT_NONE {00000000-0000-0000-0000-000000000000}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 0


Media Type 1:
--------------------------
Unknown

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Stream {E436EB83-524F-11CE-9F53-0020AF0BA770}
subtype: TIME_FORMAT_NONE {00000000-0000-0000-0000-000000000000}
formattype: TIME_FORMAT_NONE {00000000-0000-0000-0000-000000000000}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 0
Thanks for your collective patience, this is driving me batty.

Last edited by homerpez; 7th June 2007 at 20:29.
homerpez is offline   Reply With Quote
Old 7th June 2007, 20:40   #173  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
- Maybe you use a old Aften version without support for -readtoeof?
Last rev521 must work.

- Or send me the wav headers (mono and 6chan). Extract the first bytes with a Hex editor or VirtualDub/Mod:
VirtualDub -> Tools -> Hex Editor -> File -> Open... your wav file, Edit -> Extract Segment... -> (Address: 0, Length: 1000) Ok and save like segment.wav.
Use http://www.mytempdir.com/ to host this file.
tebasuna51 is offline   Reply With Quote
Old 7th June 2007, 21:11   #174  |  Link
homerpez
Registered User
 
Join Date: May 2007
Posts: 98
Quote:
Originally Posted by tebasuna51 View Post
- Maybe you use a old Aften version without support for -readtoeof?
Last rev521 must work.

- Or send me the wav headers (mono and 6chan). Extract the first bytes with a Hex editor or VirtualDub/Mod:
VirtualDub -> Tools -> Hex Editor -> File -> Open... your wav file, Edit -> Extract Segment... -> (Address: 0, Length: 1000) Ok and save like segment.wav.
Use http://www.mytempdir.com/ to host this file.
I will try and do that, and I'll edit this post once I've figured out the hex thing.

Just wanted to clarify again... it's not just Aften crashing, it's every program I use, system-wide. Any time my system goes to play or encode from this multichannel wav, whatever program I'm in crashes. So it's having trouble even before Aften even has a chance to work with it.

EDIT: oops... I messed up the first time, this is the first I ever used Mytempdir.com..

This should be the segment file : http://www.mytempdir.com/1349567

The segment also crashes everything I try to load it in....

Last edited by homerpez; 7th June 2007 at 22:09.
homerpez is offline   Reply With Quote
Old 8th June 2007, 00:46   #175  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by homerpez View Post
The segment also crashes everything I try to load it in....
1) I can't reproduce this, using -readtoeof 1 I can encode the segment to a 32 ms (1 frame) ac3.

2) The header is correct (32 bit float, 48 KHz, 6 channel) only the DataLength and RiffLength are set to 0 (the correct value can't fit in the 4 bytes reserved for these fields).

Maybe some soft don't crash, only open/play a wav with 0 sec.

If you want try this:

- Extract the files in WavHead.zip at same folder than your audio-FL_Merge.wav and double-click in runme.bat

- Now the wav file can be open like 20.8 sec with some soft and we avoid the problem with value 0.

3) To open this wav (32 float) with WavSource (AviSynth-BeHappy) you need AviSynth 2.5.7

You can open the six monowavs with BeHappy using this merge.avs file:
Code:
fl = WavSource("g:\yourpath\audio-FL")
fr = WavSource("g:\yourpath\audio-FR")
fc = WavSource("g:\yourpath\audio-FC")
lf = WavSource("g:\yourpath\audio-LF")
sl = WavSource("g:\yourpath\audio-SL")
sr = WavSource("g:\yourpath\audio-SR")
mergechannels(fl,fr,fc,lf,sl,sr)
tebasuna51 is offline   Reply With Quote
Old 8th June 2007, 01:46   #176  |  Link
homerpez
Registered User
 
Join Date: May 2007
Posts: 98
Thanks for the reply... unfortunately I think there's something seriously wrong with my machine, or the codecs on it. I hope this is a common problem so someone can tell me what to do..

First of all, I really appreciate your efforts to help me, tebasuna51... it's above and beyond.

However, I tried the .avs script on my 6 WAV files... instant crash.

I opened up the example WAV you sent me... instant crash.

I tried to load it into BeHappy using Wavsource... instant crash.

Apparently, at the system/driver/codec level, my machine seems to want to refuse to load multichannel WAV files at all. Where do I even begin to try and fix this kind of problem? I always assumed that multichannel WAV was a standard for eons...??? I've never heard of such a thing happening, and it's something that's worked for me in the past.

I'm going to play around a bit with ffdshow, see if maybe I have something checked off somewhere I shouldn't (I don't think I have anything special going on that would cause this)... all I know at this point is, my machine won't decode multichannel WAV, or FLAC formats, out of the blue, at all.
homerpez is offline   Reply With Quote
Old 8th June 2007, 05:44   #177  |  Link
homerpez
Registered User
 
Join Date: May 2007
Posts: 98
I FIGURED IT OUT.

It turns out, there WAS a checkbox I should have used in Wavewizard after all: Conversion from 32-bit (float) to 16 bit.

On much closer inspection, I discovered that the mono WAV's were all 32-bit (float) format. When I played back a couple AC3 files I had around, I noticed they were all 16-bit. Hmm.

Sure enough, I downsample the 6 wav files to 16-bit, and the multichannel WAV opens and plays!

I'm encoding to AC3 with BeHappy as I type.

Hopefully BeHappy knows what to do with the channels mapped that way... if not, I'll be back to ask for help again probably.

Thanks very much for the help thus far

Last edited by homerpez; 8th June 2007 at 05:47.
homerpez is offline   Reply With Quote
Old 8th June 2007, 10:56   #178  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by homerpez View Post
When I played back a couple AC3 files I had around, I noticed they were all 16-bit. Hmm.
Not exactly, the decoder convert the ac3 to the desired bitdepth, the ac3 don't have bitdepth because the samples are in frequency (not time) domain. The ac3 dynamic range is considered equivalent to 24 bits.
Quote:
Sure enough, I downsample the 6 wav files to 16-bit, and the multichannel WAV opens and plays!
Now the wav is half size 3.5 GB and work without problems.
Quote:
Hopefully BeHappy knows what to do with the channels mapped that way... if not, I'll be back to ask for help again probably.
Don't worry the channel mapping is correct.
tebasuna51 is offline   Reply With Quote
Old 15th June 2007, 13:54   #179  |  Link
ACrowley
Registered User
 
Join Date: Apr 2006
Posts: 1,008
@homerpez

Why dont you use a prof Dolby encoder like Sony/Steinberg/Sonic or Softencode

So you can encode the 6 mono waves to AC3

1. Demux DTS HD
2. Tranzcode DTS HD (core) to 6 mono waves
3. Softencode wave to ac3 (i use Steinberg Nuendo)

Or you can decode the DTS HD core with Tranzcode to a 6.1 wave with /mch switch and feed aften
So you need no wavewizard in this cases

greets
ACrowley is offline   Reply With Quote
Old 28th July 2007, 16:18   #180  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
@johnman,

Could you fix the problem in this post: http://forum.doom9.org/showthread.ph...314#post942314?

"Wavewizard don't put a valid channel mask, then with WinHex at Offset 0x28 put 0x3F (ChannelMask= FL,FR,C,LFE,SL,SR) and now work OK"

Looking at the readme, i think this is open source. Can i get the source somewhere?
Wilbert is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:31.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.