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 18th December 2012, 02:12   #11961  |  Link
bilditup1
Registered User
 
bilditup1's Avatar
 
Join Date: Feb 2004
Location: NYC
Posts: 123
Hey all,
I tried about five times now to encode the DTS-MA audio from 'Fellowship of the Ring' using Arcsoft, eac3to, and Nero. Every single time, instead of a 1h:45min multichannel file, I get a 2:00:48 file that's all distorted and useless. I have no idea why this is happening. It's a 6.1 DTS, which there was some info about earlier in the thread about remappings and such from about a year ago. The information does not seem applicable though, since it's about a year old, and since I don't receive any error messages about channel mappings (eac3to automatically detects that it's a 6.1 file and doubles the back channel in order to facilitate compatibility with NeroAacEnc). In any case, I tried what was suggested - manual channel mapping plus the '-double7' switch - and it changed nothing. I also tried to encode just the DTS-ES core - that didn't help at all. Thanks to the Arcsoft filters, the DTS file does play in MPCHC, but a) with terrible seeking b) a reported running time of 05:24:44. I am using Arcsoft 1.1.0.8, eac3to 3.24, and Nero 1.5.4.0.
Anybody know how to encode this thing?
-e

Last edited by bilditup1; 18th December 2012 at 02:15. Reason: more info
bilditup1 is offline   Reply With Quote
Old 18th December 2012, 05:28   #11962  |  Link
bilditup1
Registered User
 
bilditup1's Avatar
 
Join Date: Feb 2004
Location: NYC
Posts: 123
Hmm, after tracking down several different versions, this seems to be an issue with any version of Arcsoft above 1.1.0.1 with 6.1 tracks. Getting the old DLL is the key.
bilditup1 is offline   Reply With Quote
Old 18th December 2012, 22:08   #11963  |  Link
kypec
User of free A/V tools
 
kypec's Avatar
 
Join Date: Jul 2006
Location: SK
Posts: 830
Quote:
Originally Posted by bilditup1 View Post
Hmm, after tracking down several different versions, this seems to be an issue with any version of Arcsoft above 1.1.0.1 with 6.1 tracks. Getting the old DLL is the key.
Yes, exactly. I'm using version 1.1.0.0 and this works just fine, see the log below:
Code:
eac3to v3.24
command line: "C:\Program Files (x86)\AVTools\eac3to\eac3to.exe"  "I:\TLOTR\FOTR Part 1\BDMV\" 1) 3: D:\Source\TLOTR_EE\fotr1_eng.w64 -down16 -down6 -progressnumbers -log="fotr1_eng.log"
------------------------------------------------------------------------------
M2TS, 1 video track, 7 audio tracks, 24 subtitle tracks, 1:45:43, 24p /1.001
1: Chapters, 27 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: DTS Master Audio, English, 6.1 channels, 24 bits, 48kHz
   (core: DTS-ES, 6.1 channels, 24 bits, 1509kbps, 48kHz)
4: AC3 EX, Polish, 5.1 channels, 640kbps, 48kHz, dialnorm: -27dB
5: AC3 EX, Thai, 5.1 channels, 640kbps, 48kHz, dialnorm: -27dB
6: AC3 Surround, English, 2.0 channels, 192kbps, 48kHz, dialnorm: -27dB
7: AC3 Surround, English, 2.0 channels, 192kbps, 48kHz, dialnorm: -27dB
8: AC3 Surround, English, 2.0 channels, 192kbps, 48kHz, dialnorm: -27dB
9: AC3 Surround, English, 2.0 channels, 192kbps, 48kHz, dialnorm: -27dB
10: Subtitle (PGS), English
11: Subtitle (PGS), Chinese
12: Subtitle (PGS), Korean
13: Subtitle (PGS), Chinese
14: Subtitle (PGS), Czech
15: Subtitle (PGS), Hebrew
16: Subtitle (PGS), Polish
17: Subtitle (PGS), Romanian
18: Subtitle (PGS), Thai
19: Subtitle (PGS), English
20: Subtitle (PGS), Chinese
21: Subtitle (PGS), Korean
22: Subtitle (PGS), English
23: Subtitle (PGS), Chinese
24: Subtitle (PGS), Korean
25: Subtitle (PGS), English
26: Subtitle (PGS), Chinese
27: Subtitle (PGS), Korean
28: Subtitle (PGS), English
29: Subtitle (PGS), Chinese
30: Subtitle (PGS), Korean
31: Subtitle (PGS), English
32: Subtitle (PGS), Polish
33: Subtitle (PGS), Thai
[a03] Extracting audio track number 3...
[a03] Remapping channels...
[a03] Decoding with ArcSoft DTS Decoder...
[a03] Mixing surround channels...
[a03] Reducing depth from 24 to 16 bits...
[a03] Writing W64...
[a03] Creating file "D:\Source\TLOTR_EE\fotr1_eng.w64"...
[a03] The original audio track has a constant bit depth of 24 bits.
[a03] The processed audio track has a constant bit depth of 16 bits.
Video track 2 contains 152090 frames.
eac3to processing took 8 minutes, 17 seconds.
Done.
kypec is offline   Reply With Quote
Old 19th December 2012, 01:20   #11964  |  Link
Brom
Registered User
 
Join Date: Oct 2011
Posts: 4
What's the proper way to transcode DTS-ES 5.1 (matrixed 6.1) to FLAC?

Is there any decoder which outputs DTS-ES 5.1 to 6.1?
Is the matrix known?
Brom is offline   Reply With Quote
Old 19th December 2012, 01:33   #11965  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,494
6.1 channel order is not defined in FLAC, so there is no "proper way" to do it.
http://flac.sourceforge.net/format.html#frame_header
sneaker_ger is offline   Reply With Quote
Old 19th December 2012, 02:16   #11966  |  Link
Brom
Registered User
 
Join Date: Oct 2011
Posts: 4
More interested in getting the correct 7 channel wavs from a DTS-ES 5.1 Matrix.


But the reference FLAC library does the following since FLAC 1.1.3 (27-Nov-2006):
Quote:
Now properly supports AIFF and WAVEFORMATEXTENSIBLE multichannel input, performing necessary channel reordering both for encoding and decoding. WAVEFORMATEXTENSIBLE channel mask is also saved to a tag on encoding and restored on decoding for situations when there is no natural mapping to FLAC channel assignments.
http://flac.sourceforge.net/changelog.html

Last edited by Brom; 19th December 2012 at 02:19.
Brom is offline   Reply With Quote
Old 21st December 2012, 16:11   #11967  |  Link
DarkSpace
Registered User
 
Join Date: Oct 2011
Posts: 204
Quote:
Originally Posted by Brom View Post
What's the proper way to transcode DTS-ES 5.1 (matrixed 6.1) to FLAC?

Is there any decoder which outputs DTS-ES 5.1 to 6.1?
Is the matrix known?
I'm not sure if there's any decoder that natively outputs 6.1 audio for DTS-EX 5.1 (DTS-ES means 6.1 discrete channels, whereas DTS-EX means the back channel is matrix-encoded into the 5.1 channels present), but if you're using ArcSoft DTS Decoder in eac3to, you could try the -7 switch which (undocumented) asks ArcSoft to output 6.1 (7 channels). I am however not sure if that will restore the 7th channel, though, it might just as well output a mix of the present channels or add a silent back channel.

EDIT
Quote:
Originally Posted by Brom View Post
More interested in getting the correct 7 channel wavs from a DTS-ES 5.1 Matrix.
if it's just the mono wavs for each channel you want, then you can also try decoding into those directly, using a commandline like
Code:
eac3to "input" 1:"output.wavs" -7
under the assumtion that the track number is 1.

Last edited by DarkSpace; 26th December 2012 at 02:39.
DarkSpace is offline   Reply With Quote
Old 26th December 2012, 12:29   #11968  |  Link
quartex
Registered User
 
Join Date: Jan 2011
Posts: 38
noob question

noob question:
convert an AC3 448 Kbps track to an AC3 640Kbps track improve quality?
quartex is offline   Reply With Quote
Old 26th December 2012, 12:53   #11969  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,955
Of course not. Dolby Digital (AC3) is a lossy format which stores frequencies of the audible spectrum with a limited precision and suppresses frequencies it calculates as subjectively inaudible. The source (with 448 kbps) already lost some frequency parts of the original sound which was recorded on the movie set. Raising the bitrate afterwards doesn't bring these lost frequencies back, they will still be lost. You cannot "invent" more quality than the source contained. And each conversion to a lossy format — even with a higher bitrate than the source — reduces the quality even more.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 27th December 2012, 02:53   #11970  |  Link
sporic
Registered User
 
Join Date: Mar 2007
Posts: 29
Any fix for Brave and Total Recall yet?
sporic is offline   Reply With Quote
Old 29th December 2012, 04:18   #11971  |  Link
bilditup1
Registered User
 
bilditup1's Avatar
 
Join Date: Feb 2004
Location: NYC
Posts: 123
Hmm...so I have a DTS track with 5 channels. It isn't a theater DTS track...just DTS from a commercial Blu-Ray that has no LFE (Adventures of Tintin series from the early 90s). I want to encode this to AAC with a fake LFE so that the usual suspects won't choke on it (iOS hardware decoding). Using the -6 option with eac3to yields a '6-channel' track consisting of the right and left channels and 4 channels of silence, so that's not it. Is there some easy switch that'll enable me to do this with eac3to, or is a more manual approach required?

ED: Looking into it more, seems to be that the commercial DVD itself only had LPCM at 2.0, and the release group botched the audio encode somehow.

Last edited by bilditup1; 29th December 2012 at 04:52.
bilditup1 is offline   Reply With Quote
Old 29th December 2012, 11:58   #11972  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 5,660
Quote:
Originally Posted by bilditup1 View Post
I have a DTS track with 5 channels ...from a commercial Blu-Ray that has no LFE... Using the -6 option with eac3to yields a '6-channel' track consisting of the right and left channels and 4 channels of silence...
Please put the log.

BTW, seems your DTS 5.0 have 3 channels of silence.
Maybe you can try something like:

eac3to input.dts stdout.wav | sox -t wav - -t wav - remix -m 1 2 | NeroAacEnc -q 0.5 -ignorelength -if - -of output.m4a
__________________
BeHappy, AviSynth audio transcoder, in Doom9 forums. NicAudio, BassAudio, audio decoders.
tebasuna51 is offline   Reply With Quote
Old 30th December 2012, 13:39   #11973  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 1,764
Does someone know how i can extract the 6 channels from a .m2ts file when audio is PCM ? I want to have all 6 channels in separate files, raw format is fine.

Thanks.
jpsdr is offline   Reply With Quote
Old 30th December 2012, 21:07   #11974  |  Link
bilditup1
Registered User
 
bilditup1's Avatar
 
Join Date: Feb 2004
Location: NYC
Posts: 123
Quote:
Originally Posted by tebasuna51 View Post
Please put the log.

BTW, seems your DTS 5.0 have 3 channels of silence.
Maybe you can try something like:

eac3to input.dts stdout.wav | sox -t wav - -t wav - remix -m 1 2 | NeroAacEnc -q 0.5 -ignorelength -if - -of output.m4a
Right, I figured out that it was a bad encode. I don't think the resulting 2ch files (which register as 6ch, with 4ch of silence) are any bigger than normal 2ch files. They're just recognized as 6ch files (as they should be) Will the above code take only the front two channels? Will using -down2 instead of that in this case muck up the audio or something?
bilditup1 is offline   Reply With Quote
Old 31st December 2012, 03:40   #11975  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 5,660
Quote:
Originally Posted by bilditup1 View Post
Will the above code take only the front two channels?
Yes.

Quote:
Will using -down2 instead of that in this case muck up the audio or something?
Nope, because -down2 can't be applied to a 5.0 source, must be 5.1.
__________________
BeHappy, AviSynth audio transcoder, in Doom9 forums. NicAudio, BassAudio, audio decoders.
tebasuna51 is offline   Reply With Quote
Old 31st December 2012, 03:44   #11976  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 5,660
Quote:
Originally Posted by jpsdr View Post
Does someone know how i can extract the 6 channels from a .m2ts file when audio is PCM ? I want to have all 6 channels in separate files, raw format is fine.
eac3to input.m2ts PCM_TRACK: output.wavs
__________________
BeHappy, AviSynth audio transcoder, in Doom9 forums. NicAudio, BassAudio, audio decoders.
tebasuna51 is offline   Reply With Quote
Old 2nd January 2013, 21:24   #11977  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,137
eac3to v3.25 released

http://madshi.net/eac3to.zip

Code:
* fixed: option "-down6" didn't handle 6.1 tracks properly
* fixed: option "-down6" for 7.1 content lowered side channels in volume
* fixed: 6.1 DTS/E-AC3 libav decoding resulted in incorrect 70f channel mask
* fixed: a couple of funny AC3 channel configs resulted in swapped channels
* fixed: option "-check" failed for SRT subtitles
* fixed: MKV tracks without language information didn't default to "English"
* fixed: 16bit MLP decoding didn't work at all
* fixed: DTS 2.1 decoding had empty sub channel when using ArcSoft decoder
* fixed: muxing h264 video streams without VUI eventually crashed
* fixed: SMPTE 302M 20bit PCM tracks didn't extract properly
* improved AC3 seamless branching handling by detection of identical frames
* improved DTS seamless branching handling by detection of identical frames
* updated to latest ffmpeg/libav revision
* added support for libav DTS 6.1 and 7.1 decoding (only in core, no DTS-HD)
* added support for encoding all AC3 channel configurations
* added support for demuxing Blu-Ray primary E-AC3 tracks (AC3 core)
* libav is now the default decoder for AC3 and E-AC3
* option "-down2" is now deprecated, but still supported
* option "-downDpl" mixes down to Dolby Pro Logic II
* option "-downStereo" mixes down to standard stereo
* added support for mixing any channel configuration to stereo/DPL
* DPL downmixing doesn't lower volume, anymore (except when clipping occurs)
* editing audio tracks by adding silence is now less restrictive
* trying to mux right eye stream to MKV errors out now, instead of crashing
* doing "eac3to 1) movie.mkv" for 3D BDs now properly skips right eye stream
* FLAC encoding is now done with optimized block sizes for "LossyWAV" files
* encoder bitdepth for lossy DTS tracks is no longer displayed
* option "-test" no longer checks mkvtoolnix
Thanks to tebasuna51 for moderating the bug/improvement list, and for investigating the "duplicate frame" stuff for seamless branching Blu-Rays. I didn't know that overlapping AC3 and DTS frames were actually bit-wise identical! With this information eac3to can now discard such frames immediately, which means that it's no longer necessary to do a 2nd pass for seamless branching Blu-Rays to fix audio overlaps. This new logic should also avoid any audio glitches at the seamless branching edit points - because simply no edits are necessary, anymore, at all. Please note that this only applies to AC3 and DTS (and DTS-HD/MA) tracks. It does not apply to LPCM and TrueHD tracks. However, overlaps with LPCM and TrueHD tracks are rather small, so overlap editing is often not necessary for such tracks, anyway. The new logic also only works if the overlapping AC3 and DTS frames are truely identical. They have been with the 2 Blu-Rays I've tested with. But I don't know for sure if that's the case for *all* seamless branching Blu-Rays. So there's a chance the old overlap logic might still be used for some Blu-Rays.

It seems that mono TrueHD decoding is currently broken when using libav/ffmpeg decoding, but I'm not 100% sure because I only have one such sample and it's pretty short. Maybe you guys can double check (and provide me with a longer sample)? This looks like a libav/ffmpeg bug to me, though, if it's really a bug at all. At least Brave TrueHD decoding seems to be working fine now.

Please note that although eac3to now supports parsing, demuxing and core-extraction for Blu-Ray primary E-AC3 tracks, currently no decoder is available which can decode the full audio information with all 6.1/7.1 channels. Currently only the AC3 core can be decoded which results in 5.1 output only.
madshi is offline   Reply With Quote
Old 2nd January 2013, 21:32   #11978  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,494
Thanks, that was faster than expected.
sneaker_ger is offline   Reply With Quote
Old 2nd January 2013, 21:33   #11979  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,685
Woot! Thanks for the release madshi! You've got quite the plethora of fixes there!
__________________
FAQs:Bond's AVC/H.264 FAQ
Site:Adubvideo
Adub is offline   Reply With Quote
Old 2nd January 2013, 21:34   #11980  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,955
Happy New Year, madshi - and thank you for a first of many new versions of eac3to...
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Reply

Tags
eac3to

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 02:01.


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