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 > (HD) DVD, Blu-ray & (S)VCD > (HD) DVD & Blu-ray authoring

Reply
 
Thread Tools Search this Thread Display Modes
Old 10th March 2007, 10:47   #961  |  Link
Deckard2019
Registered User
 
Join Date: Jan 2005
Posts: 110
Quote:
No, this will never work!!!
Ok. Wrong copy/paste (I don't use this method as I use BeHappy to bypass RAW/WAV file creation).
But what about ffdshow ? I still don't understand why/when it's used in eac3toac3 ...
Deckard2019 is offline   Reply With Quote
Old 10th March 2007, 10:56   #962  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by Deckard2019 View Post
But what about ffdshow ? I still don't understand why/when it's used in eac3toac3 ...
The reason is that the Sonic Audio Decoder is very unreliable without adding ffdshow to the processing stages. I found that the Sonic Audio Decoder sometimes outputs 16 bit, sometimes 24 bit. Furthermore more often then not only 2 channels contained valid information while the remaining 4 channels were garbage. This all doesn't happen with ffdshow in the chain. Don't ask me why. I don't really know.
madshi is offline   Reply With Quote
Old 10th March 2007, 11:02   #963  |  Link
Deckard2019
Registered User
 
Join Date: Jan 2005
Posts: 110
Quote:
Originally Posted by madshi View Post
The reason is that the Sonic Audio Decoder is very unreliable without adding ffdshow to the processing stages. I found that the Sonic Audio Decoder sometimes outputs 16 bit, sometimes 24 bit. Furthermore more often then not only 2 channels contained valid information while the remaining 4 channels were garbage. This all doesn't happen with ffdshow in the chain. Don't ask me why. I don't really know.
Ok. Thank you. The 4 crappy channels thing happened to a friend of mine.
With same source, same tools, it doesn't happen to me ...

Outputting directly AC3 from ffdshow is still considered as a wrong method ?
(For now, I use BeHappy/Aften with .grf embedded in avs script. grf only contains orbitlee filter and sonic one).
Deckard2019 is offline   Reply With Quote
Old 10th March 2007, 11:58   #964  |  Link
MichalHabart
Registered User
 
Join Date: Mar 2006
Posts: 135
Quote:
Originally Posted by Deckard2019 View Post
Ok. Thank you. The 4 crappy channels thing happened to a friend of mine.
With same source, same tools, it doesn't happen to me ...

Outputting directly AC3 from ffdshow is still considered as a wrong method ?
(For now, I use BeHappy/Aften with .grf embedded in avs script. grf only contains orbitlee filter and sonic one).
Yes, ffdshow can be used only for changing bit depth of output. AC3 created directly by ffdshow has wrong channel order
MichalHabart is offline   Reply With Quote
Old 10th March 2007, 12:16   #965  |  Link
Jack-Bauer
Registered User
 
Jack-Bauer's Avatar
 
Join Date: Feb 2007
Posts: 26
Quote:
Originally Posted by MichalHabart View Post
AC3 created directly by ffdshow has wrong channel order
Matrix filter can be inserted in beetween sonic and ffdshow, allowing to set its matrix as desired.

Jack
Jack-Bauer is offline   Reply With Quote
Old 10th March 2007, 12:54   #966  |  Link
zgx
Registered User
 
Join Date: Feb 2007
Posts: 94
Quote:
Originally Posted by MichalHabart View Post
Well, LPCM does not seem to work at the moment. With xport or graphedit i get raw file with same size but when i use sox to create wav, i receive 77 minutes instead of 100 and the sound inside is horrible (sounds like when you call to fax machine )

Does anyone manage to get it work?
I did get it to work with Graphedit. I selected the m2ts file with File Source (Async) and selected the LPCM track in Sonic HD Demuxer.

File Source (Async) -> Sonic HD Demuxer -> Sonic Cinemaster Audio Decoder 4.2 -> Dump

Then I converted the raw file to wav and got a working file:
sox -r48000 -t .raw -c 6 -3 -s file.raw file.wav


I'm now trying out the new version of xport (since I don't trust Sonic Audio Decoder). It finds a LPCM track and dumps it:

LPCM Audio Mode = 3/2+lfe
LPCM Audio Bits/sample = 16
LPCM Audio Sample Rate = 48000

But don't know what to do with the dump. Have tried all sorts of options in Sox and BeSweet but I can't convert it to a working wav.
zgx is offline   Reply With Quote
Old 10th March 2007, 14:00   #967  |  Link
MichalHabart
Registered User
 
Join Date: Mar 2006
Posts: 135
Quote:
Originally Posted by zgx View Post
I did get it to work with Graphedit. I selected the m2ts file with File Source (Async) and selected the LPCM track in Sonic HD Demuxer.

File Source (Async) -> Sonic HD Demuxer -> Sonic Cinemaster Audio Decoder 4.2 -> Dump

Then I converted the raw file to wav and got a working file:
sox -r48000 -t .raw -c 6 -3 -s file.raw file.wav


I'm now trying out the new version of xport (since I don't trust Sonic Audio Decoder). It finds a LPCM track and dumps it:

LPCM Audio Mode = 3/2+lfe
LPCM Audio Bits/sample = 16
LPCM Audio Sample Rate = 48000

But don't know what to do with the dump. Have tried all sorts of options in Sox and BeSweet but I can't convert it to a working wav.
Well, that is exactly the problem i have. but it seems that raw dump is not working, i should get 5GB file but i get only 3,5GB. So thatswhy my soxed wav is not going to work. have you tried to load it to wavewizard? it should be able to tell you length and channels in that wav file.
MichalHabart is offline   Reply With Quote
Old 10th March 2007, 14:54   #968  |  Link
drmpeg
Registered User
 
Join Date: Jan 2003
Location: Silicon Valley
Posts: 455
The LPCM output of xport is big endian (just like it's stored in the .m2ts file).

This sequence works:

xport -h2 movie.m2ts 1 1 2

sox -B -r48000 -t .raw -c 2 -2 -s bits0001.mpa bits.wav

besweet -core( -input bits.wav -output bits.ac3 ) -ac3encode

This sequence fails:

xport -h movie.m2ts 1 1 2

sox -B -r48000 -t .raw -c 6 -2 -s bits0001.mpa bits.wav

besweet -core( -input bits.wav -output bits.ac3 ) -ac3encode ( -6ch )

Error 58: Error : Unknown Input-File Format : "bits.wav".

Seems to me that sox can't create a 6 channel .wav file that besweet understands.

Ron
__________________
HD MPEG-2 Test Patterns http://www.w6rz.net
drmpeg is offline   Reply With Quote
Old 10th March 2007, 15:00   #969  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by Deckard2019 View Post
Outputting directly AC3 from ffdshow is still considered as a wrong method ?
I don't know. I've read in this thread that it gives inferior results. And I read that Aften is considered to be a good AC3 encoder, so that's why I did it this way.
madshi is offline   Reply With Quote
Old 10th March 2007, 15:01   #970  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by drmpeg View Post
Seems to me that sox can't create a 6 channel .wav file that besweet understands.
Aften revision 449 is happy with sox created 6 channel wav files, as long as you use the Aften "-readtoeof 1" parameter.
madshi is offline   Reply With Quote
Old 10th March 2007, 15:24   #971  |  Link
MichalHabart
Registered User
 
Join Date: Mar 2006
Posts: 135
Quote:
Originally Posted by drmpeg View Post
The LPCM output of xport is big endian (just like it's stored in the .m2ts file).

This sequence works:

xport -h2 movie.m2ts 1 1 2

sox -B -r48000 -t .raw -c 2 -2 -s bits0001.mpa bits.wav

besweet -core( -input bits.wav -output bits.ac3 ) -ac3encode

This sequence fails:

xport -h movie.m2ts 1 1 2

sox -B -r48000 -t .raw -c 6 -2 -s bits0001.mpa bits.wav

besweet -core( -input bits.wav -output bits.ac3 ) -ac3encode ( -6ch )

Error 58: Error : Unknown Input-File Format : "bits.wav".

Seems to me that sox can't create a 6 channel .wav file that besweet understands.

Ron
And have you tried to open that multiwav in something else, for example in wavewizard?
I was succesfull in this. probably just besweet has these problems. I was able to demux 6 channel lpcm to raw from Terminator 1 Bluray and converted it to wav and now i made DTS track from it. It sounds wonderful

Last edited by MichalHabart; 10th March 2007 at 18:38.
MichalHabart is offline   Reply With Quote
Old 10th March 2007, 19:04   #972  |  Link
The1n
Registered User
 
Join Date: Nov 2005
Posts: 74
Do i have to change the channelmapping if im just going to convert eac3 to aac in megui, im using graphedit and loads the graph with avisynth script.
When i play the track in graphedit all channels sound ok, but when i encode it to aac multichannel suddenly the center is gone.

The1n
The1n is offline   Reply With Quote
Old 10th March 2007, 19:14   #973  |  Link
zgx
Registered User
 
Join Date: Feb 2007
Posts: 94
Perfect lossless LPCM 5.1 to FLAC conversion
It's really easy but has taken me quite a few hours to get it all right.

Programs needed:
xport by drmpeg @doom9
http://www.w6rz.net/xport.zip

sox v13.0.0
http://sourceforge.net/projects/sox

Wavewizard 0.45b
http://www.rarewares.org/wavewiz/wavewizardv0.54b.zip

MediaCoder 0.5.1
http://mediacoder.sourceforge.net/download.htm

flac 1.1.4
http://flac.sourceforge.net/download.html


Step 1 - Extract the LPCM stream from Blu-ray
xport -h movie.m2ts 1 3 2

Explaination:
"1 3 2" selects program 1, video stream 3 and audio stream 2.
Since video stream 3 does not exist you will only demux audio (change to 1 if you want video as well).
The LPCM stream should most often be number 2.


Step 2 - Map channels
sox -B -r48000 -t .raw -c 6 -2 -s bits0001.mpa file.wav

Start Wavewizard and enter channel mapping (F2).
- Create a new mapping "0 1 2 5 3 4".
- Select your new mapping.
- Click "Enable channelmapping"
- Click "Convert" and create a new file.

Explaination:
The channels in the LPCM file are mapped "L,R,C,BL,BR,LFE" as opposed to "L,R,C,LFE,BL,BR". This is corrected with Wavewizard but in order for it to accept the file you need to use sox first.


Step 3 - Encode your FLAC
- Install MediaCoder 0.5.1. Make sure you replace "flac.exe" under the "codecs" directory so you get version 1.1.4.
- Drag and drop your file(1).wav to the MediaCoder window.
- Under Audio select "FLAC" as Encoder and press F5 to start the encode.

Explanation:
FLAC doesn't like 4+ GB wave files but somehow it works with MediaCoder.


Step 4 - Enjoy your FLAC
Enjoy your new FLAC!

May I sugest using mkvmerge (http://www.bunkus.org/videotools/mkvtoolnix/) to mux your FLAC with your video stream to a Matroska container.

Last edited by zgx; 10th March 2007 at 21:08.
zgx is offline   Reply With Quote
Old 10th March 2007, 20:38   #974  |  Link
moshmothma
Registered User
 
Join Date: Nov 2005
Posts: 85
Hmm, I get to the wavewizard part and get the following error when I try to convert:

Error on: "file.wav". This file is not recognized by wavewizard.
moshmothma is offline   Reply With Quote
Old 10th March 2007, 21:09   #975  |  Link
zgx
Registered User
 
Join Date: Feb 2007
Posts: 94
Quote:
Originally Posted by moshmothma View Post
Hmm, I get to the wavewizard part and get the following error when I try to convert:

Error on: "file.wav". This file is not recognized by wavewizard.
Sorry made a typo. Should of course be "sox -B -r48000 -t .raw -c 6 -2 -s bits0001.mpa file.wav" and not "-3".
zgx is offline   Reply With Quote
Old 10th March 2007, 21:24   #976  |  Link
LRN
TeMa=) team member
 
LRN's Avatar
 
Join Date: Apr 2005
Location: Universe, Galaxy, Solar System, Earth, Russia, Moscow
Posts: 212
I can't beleive they're using LPCM...They must be completely dazzed by BluRay disc sizes! There's NO reason to but more than 500 kilobits on one channel, and if there IS, they could have used FLAC, WAVPack, damn MLP or something! But not the LPCM...it's so DULL.

P.S. How about fullscale "X.1 E-AC3 -> 5.1 AAC" guide?

P.P.S. Where i could get Sonic 4.2 decoder? 4.1 doesn't works in shown graphs
__________________
Without effort, you can't even pull a fish out of the pond.
Without a pond you can't pull it out even with effort.
LRN is offline   Reply With Quote
Old 10th March 2007, 22:13   #977  |  Link
Rectal Prolapse
Registered User
 
Join Date: Mar 2005
Posts: 433
Wow zgx - just what I was looking for! Hopefully there won't be any issues with FLAC audio decoding past the 4GB mark - when I use WAV I get silence once that barrier is surpassed.
Rectal Prolapse is offline   Reply With Quote
Old 11th March 2007, 00:02   #978  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by zgx View Post
Perfect lossless LPCM 5.1 to FLAC conversion
Just for my interest: How big is the FLAC compressed audio track file compared to the original LPCM one? Thanks!
madshi is offline   Reply With Quote
Old 11th March 2007, 00:16   #979  |  Link
LRN
TeMa=) team member
 
LRN's Avatar
 
Join Date: Apr 2005
Location: Universe, Galaxy, Solar System, Earth, Russia, Moscow
Posts: 212
20-30%, iirc
__________________
Without effort, you can't even pull a fish out of the pond.
Without a pond you can't pull it out even with effort.
LRN is offline   Reply With Quote
Old 11th March 2007, 00:29   #980  |  Link
zgx
Registered User
 
Join Date: Feb 2007
Posts: 94
Quote:
Originally Posted by madshi View Post
Just for my interest: How big is the FLAC compressed audio track file compared to the original LPCM one? Thanks!
About 25% of the original. For "16 bit/48 kHz/6 channel" movie soundtracks I have gotten files from 1100 to 1900 Kbps so it doesn't take more space then a 1.5 Mbps DTS track does. The only downside is that you need 6 analog RCA cables or HDMI in order to get lossless sound to your transciever. You can of course let AC3filter transcode to AC3 for S/PDIF ouput. Then it won't be lossless but will still sound really good.
zgx 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 06:15.


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