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. |
10th March 2007, 10:56 | #962 | Link |
Registered Developer
Join Date: Sep 2006
Posts: 9,140
|
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.
|
10th March 2007, 11:02 | #963 | Link | |
Registered User
Join Date: Jan 2005
Posts: 110
|
Quote:
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). |
|
10th March 2007, 11:58 | #964 | Link | |
Registered User
Join Date: Mar 2006
Posts: 135
|
Quote:
|
|
10th March 2007, 12:54 | #966 | Link | |
Registered User
Join Date: Feb 2007
Posts: 94
|
Quote:
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. |
|
10th March 2007, 14:00 | #967 | Link | |
Registered User
Join Date: Mar 2006
Posts: 135
|
Quote:
|
|
10th March 2007, 14:54 | #968 | Link |
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 |
10th March 2007, 15:24 | #971 | Link | |
Registered User
Join Date: Mar 2006
Posts: 135
|
Quote:
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. |
|
10th March 2007, 19:04 | #972 | Link |
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 |
10th March 2007, 19:14 | #973 | Link |
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. |
10th March 2007, 21:24 | #976 | Link |
TeMa=) team member
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. |
11th March 2007, 00:29 | #980 | Link |
Registered User
Join Date: Feb 2007
Posts: 94
|
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.
|
|
|