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 5th August 2017, 03:16   #14341  |  Link
MrVideo
Registered User
 
MrVideo's Avatar
 
Join Date: May 2007
Location: Wisconsin
Posts: 1,232
Quote:
Originally Posted by thomaz909 View Post
i just want to "normalize" to 0db.
that means, it scans all channels, takes the highest overall gain found and then amplifies all channels by this value.
for example L=-5db, R=-6db, C=-2db, SL=-12db, SR=-13db, then the center channel has the highest gain with -2db and finally all channels get an amplification by +2db.
no drc, compressor, loudness maximizer, limiter, etc.
and that all in the most efficient, resource saving way.
I hate to say this, but this a a bad example, because I dare you, in a blind test, that you will not be able to notice that 2dB difference.
MrVideo is offline   Reply With Quote
Old 13th August 2017, 17:58   #14342  |  Link
thomaz909
Registered User
 
Join Date: Jul 2004
Posts: 38
Feature request

it would be nice if eac3to ignores -downXX switch when source is lower than the specified bitrate.
for example decoding a 64bit ac3 with -down32 then it "downbits" to 32bit.
when decoding a 24bit dts it ignores the switch and decodes to 24bit instead of "upbitting" to 32bit.

or add -downXXXX (for example -down6432)
then it only downs 64bit to 32bit and leaves all other input bitrates untouched.

Last edited by thomaz909; 13th August 2017 at 18:06.
thomaz909 is offline   Reply With Quote
Old 13th August 2017, 18:06   #14343  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 4,596
It already works like this, I believe. Can you provide any example (sample file + log) where it doesn't?
sneaker_ger is offline   Reply With Quote
Old 13th August 2017, 19:31   #14344  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 5,214
Quote:
Originally Posted by thomaz909 View Post
it would be nice if eac3to ignores -downXX switch when source is lower than the specified bitrate.
Maybe you mistake "bitrate" with "bitdepth"?

-downXX fix the bitdepth of decoded PCM data.

Quote:
for example decoding a 64bit ac3 with -down32 then it "downbits" to 32bit.
Is possible to have a 64 Kb/s AC3 (I never see), but AC3 don't have any bitdepth then 64bit AC3 don't have sense.

Quote:
when decoding a 24bit dts it ignores the switch and decodes to 24bit instead of "upbitting" to 32bit.
- If you are talking about a DTS-MA 24 bits, for what you want 32 bits with the last 8 bits all to "0"?

eac3to try to be smart and ignore usseless parametres, even check if last 8 significant bits are all to "0" to output only 16 bits.

- If you are talking about a standard DTS, like AC3, don't have bitdepth. Does not exist a standard DTS 24 bits.

When eac3to decode a lossy format (AC3, DTS, MP3, ...) internally work with 64 bits float samples and, at output by default, downsample to 24 bits int because is enough precission.

If you want preserve the 64 bit float you can add the parameter:

-full
__________________
BeHappy, AviSynth audio transcoder, in Doom9 forums. NicAudio, BassAudio, audio decoders.
tebasuna51 is offline   Reply With Quote
Old 12th September 2017, 08:31   #14345  |  Link
stax76
staxrip & mpv.net
 
Join Date: Jun 2002
Posts: 5,239
@madshi

I would like to request 0.1 intervals for the percentage status display/output.

Some years ago I suggested to use an alternative or additional mkv muxer because many people don't like to install directshow filters, configuring DirectShow and in general configuring and repairing Windows requires expertise many people don't have.

This summer I received a email with following content:

Quote:
Shit don’t work and it sucks.
I was mostly amused about it, two days ago I received something more concrete from the same kind person:

Quote:
So explain to me why is it you made 100 versions crappy with the haali filter, then I am telling everyone not to use it because of that stupid haali filter and now I see version 101 does not have it? You made me look like a fool, you are a pile of shit and I will love you track and hunt you down for literally being the shittiest developer on planet earth.
I don't know who this person is and these two mails is the only thing I ever heard from him, I do not reply such mails.

In staxrip Haali is optional even for eac3to usage and I didn't remove or change anything. For VC1 I think eac3to users need Haali because I don't think there is a avs/vs source filter that can handle raw VC1.

While staxrip supports many different tools and workflows eac3to is still popular and I always ensured it has the best possible support.
__________________
StaxRip - use pastebin for log files and imgbox for screenshots
mpv.net player
stax76 is offline   Reply With Quote
Old 12th September 2017, 09:44   #14346  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,596
Is there a way to select the output folder when using the -demux function ?
Music Fan is offline   Reply With Quote
Old 12th September 2017, 20:49   #14347  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 5,214
You can try:

eac3to "input" "D:\tmp\output.*"
__________________
BeHappy, AviSynth audio transcoder, in Doom9 forums. NicAudio, BassAudio, audio decoders.
tebasuna51 is offline   Reply With Quote
Old 12th September 2017, 23:14   #14348  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,596
Thanks, good trick !
Music Fan is offline   Reply With Quote
Old 20th September 2017, 12:21   #14349  |  Link
hubblec4
Matroska Dev-Helper
 
Join Date: Apr 2008
Posts: 704
Hi madshi

Exists a hidden switch to get the PID's for the streams? The order you display the streams is different to the mpls and the m2ts.
hubblec4 is offline   Reply With Quote
Old 20th September 2017, 15:53   #14350  |  Link
Snowknight26
Registered User
 
Join Date: Aug 2007
Posts: 1,380
-logpids
Snowknight26 is offline   Reply With Quote
Old 20th September 2017, 19:16   #14351  |  Link
hubblec4
Matroska Dev-Helper
 
Join Date: Apr 2008
Posts: 704
many thanks for the info
hubblec4 is offline   Reply With Quote
Old 23rd September 2017, 05:13   #14352  |  Link
stax76
staxrip & mpv.net
 
Join Date: Jun 2002
Posts: 5,239
@madshi

There seem to be a problem with a AC3 file, it was reported by a staxrip user so I don't have the source but if you want to work on it I might be able to get the file for you.

Code:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
                   Source file MediaInfo
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

F:\Movie.mkv

General
Complete name        : F:\Movie.mkv
Format               : Matroska
Format version       : Version 1
File size            : 1.46 GiB
Duration             : 56 min 46 s
Overall bit rate     : 3 677 kb/s
Encoded date         : UTC 2009-06-22 03:44:10
Writing application  : mkvmerge v2.4.0 ('Fumbling Towards Ecstasy') built on Nov  7 2008 17:24:23
Writing library      : libebml v0.7.8 + libmatroska v0.8.1

Video
ID                   : 1
Format               : AVC
Format/Info          : Advanced Video Codec
Format profile       : High@L3.1
Format, CABAC        : Yes
Format, ReFrames     : 3 frames
Codec ID             : V_MPEG4/ISO/AVC
Duration             : 56 min 46 s
Bit rate             : 3 289 kb/s
Width                : 1 280 pixels
Height               : 720 pixels
Display aspect ratio : 16:9
Frame rate mode      : Constant
Frame rate           : 23.976 (24000/1001) FPS
Color space          : YUV
Chroma subsampling   : 4:2:0
Bit depth            : 8 bits
Scan type            : Progressive
Bits/(Pixel*Frame)   : 0.149
Stream size          : 1.28 GiB (88%)
Writing library      : x264 core 67 r1162M f7bfcfa
Language             : English
Default              : Yes
Forced               : No

Audio
ID                   : 2
Format               : AC-3
Format/Info          : Audio Coding 3
Format, Endianness   : Big
Codec ID             : A_AC3
Duration             : 56 min 46 s
Bit rate mode        : Constant
Bit rate             : 384 kb/s
Channel(s)           : 2 channels
Channel positions    : Front: L R
Sampling rate        : 48.0 kHz
Frame rate           : 31.250 FPS (1536 spf)
Bit depth            : 16 bits
Compression mode     : Lossy
Stream size          : 156 MiB (10%)
Service kind         : Complete Main
Default              : Yes
Forced               : No

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
           Demux mkv using mkvextract 13.0.0 x64
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

C:\StaxRip\Apps\MKVToolNix\mkvextract.exe tracks F:\Movie.mkv 1:"F:\Movie_temp\Movie ID1.ac3" --ui-language en

Extracting track 1 with the CodecID 'A_AC3' to the file 'F:\Movie_temp\Movie ID1.ac3'. Container format: Dolby Digital (AC-3)

Start:    9:08:04 PM
End:      9:08:07 PM
Duration: 00:00:02

General
Complete name         : F:\Movie_temp\Movie ID1.ac3
Format                : AC-3
Format/Info           : Audio Coding 3
File size             : 156 MiB
Duration              : 56 min 46 s
Overall bit rate mode : Constant
Overall bit rate      : 384 kb/s

Audio
Format                : AC-3
Format/Info           : Audio Coding 3
Format, Endianness    : Big
Duration              : 56 min 46 s
Bit rate mode         : Constant
Bit rate              : 384 kb/s
Channel(s)            : 2 channels
Channel positions     : Front: L R
Sampling rate         : 48.0 kHz
Frame rate            : 31.250 FPS (1536 spf)
Bit depth             : 16 bits
Compression mode      : Lossy
Stream size           : 156 MiB (100%)
Service kind          : Complete Main

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
                Audio Source File MediaInfo
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

General
Complete name         : F:\Movie_temp\Movie ID1.ac3
Format                : AC-3
Format/Info           : Audio Coding 3
File size             : 156 MiB
Duration              : 56 min 46 s
Overall bit rate mode : Constant
Overall bit rate      : 384 kb/s

Audio
Format                : AC-3
Format/Info           : Audio Coding 3
Format, Endianness    : Big
Duration              : 56 min 46 s
Bit rate mode         : Constant
Bit rate              : 384 kb/s
Channel(s)            : 2 channels
Channel positions     : Front: L R
Sampling rate         : 48.0 kHz
Frame rate            : 31.250 FPS (1536 spf)
Bit depth             : 16 bits
Compression mode      : Lossy
Stream size           : 156 MiB (100%)
Service kind          : Complete Main

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
            Audio encoding using eac3to 3.31 x86
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

C:\StaxRip\Apps\eac3to\eac3to.exe "F:\Movie_temp\Movie ID1.ac3" "F:\Movie_temp\Movie ID1_a1.m4a"
-quality=0.23 -normalize -downStereo -progressnumbers

AC3, 2.0 channels, 0:56:46, 384kbps, 48kHz, dialnorm: -27dB
Removing AC3 dialog normalization...
Decoding with libav/ffmpeg...
Writing WAV...
Creating file "F:\Movie_temp\Movie ID1_a1.m4a.pass1.wav"...
Caution: The WAV file is bigger than 4GB.
Some WAV readers might not be able to handle this file correctly.
Starting 2nd pass...
Reading WAV...
Reducing depth from 64 to 32 bits...
Encoding AAC <0.23> with NeroAacEnc...
Applying 0.95dB gain...
The original audio track has a constant bit depth of 64 bits.
The processed audio track has a constant bit depth of 32 bits.
eac3to processing took 3 minutes, 34 seconds.
Done.

Start:    9:08:08 PM
End:      9:11:43 PM
Duration: 00:03:34

General
Complete name         : F:\Movie_temp\Movie ID1_a1.m4a
Format                : MPEG-4
Format profile        : Base Media / Version 2
Codec ID              : mp42 (M4A /mp42/isom)
File size             : 76.3 MiB
Duration              : 2 h 48 min
Overall bit rate mode : Variable
Overall bit rate      : 63.4 kb/s
Encoded date          : UTC 2017-09-22 01:08:31
Tagged date           : UTC 2017-09-22 01:11:42

Audio
ID                    : 1
Format                : AAC
Format/Info           : Advanced Audio Codec
Format profile        : HE-AAC / LC
Codec ID              : 40
Duration              : 2 h 48 min
Bit rate mode         : Variable
Bit rate              : 62.6 kb/s
Maximum bit rate      : 77.7 kb/s
Channel(s)            : 2 channels
Channel positions     : Front: L R
Sampling rate         : 48.0 kHz / 24.0 kHz
Frame rate            : 23.438 FPS (1024 spf)
Compression mode      : Lossy
Stream size           : 75.3 MiB (99%)
Writing library       : Nero AAC codec 1.5.4.0
Encoded date          : UTC 2017-09-22 01:08:31
Tagged date           : UTC 2017-09-22 01:11:42
__________________
StaxRip - use pastebin for log files and imgbox for screenshots
mpv.net player
stax76 is offline   Reply With Quote
Old 23rd September 2017, 10:19   #14353  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 5,214
That is a typical problem with captures from TV.

When MediaInfo/eac3to read the first header of AC3 show:

Format : AC-3
Duration : 56 min 46 s
Bit rate : 384 kb/s
Channel(s) : 2 channels
Stream size : 156 MiB

All seems correct and we can expect a decoded wav (64 bits) size of:

3406 sec. x 2 ch. x 8 bytes/ch x 48000 samples/sec = 2495 MB

But the decoded wav is:

Caution: The WAV file is bigger than 4GB.

because only the first's AC3 are 2.0 and the rest are 5.1, then the decoded wav have 3 times (6ch/2ch) size and are buggy (noise) recoded to a m4a with a duration of:

3406 sec x 3 = 2h 50m

near the duration 2 h 48 min of m4a (seems there are a few of AC3 2.0 frames, maybe commercials)

An AC3 with a mix of 2.0 and 5.1 frames are invalid and can't be recoded properly, you need obtain valid AC3 from it.

You can use DelayCut or a tool I wrote: SplitAc3

Other related threads:
https://forum.doom9.org/showthread.p...27#post1679327
https://forum.doom9.org/showthread.p...31#post1768231
__________________
BeHappy, AviSynth audio transcoder, in Doom9 forums. NicAudio, BassAudio, audio decoders.
tebasuna51 is offline   Reply With Quote
Old 23rd September 2017, 11:38   #14354  |  Link
stax76
staxrip & mpv.net
 
Join Date: Jun 2002
Posts: 5,239
Oh Thanks, I didn't notice or expect it.
__________________
StaxRip - use pastebin for log files and imgbox for screenshots
mpv.net player
stax76 is offline   Reply With Quote
Old 27th September 2017, 09:56   #14355  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 3,445
If you have ffdshow installed and don't mind decoding/encoding via DirectShow you can usually fix those problematic AC3 re-encodes by decoding with ffdshow and enabling it's mixer filter and setting it to output 5.1ch.
hello_hello is offline   Reply With Quote
Old 1st October 2017, 15:43   #14356  |  Link
pstn
Registered User
 
Join Date: Sep 2017
Posts: 1
demux

Hello,

When using the -demux command, is it possible extract the DTS core along with the DTS-HD without having to do 2 runs? (both track separately)

thanks
pstn is offline   Reply With Quote
Old 1st October 2017, 15:54   #14357  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 4,596
eac3to "source.m2ts" 3:"core.dts" -core 3:"both.dts"
sneaker_ger is offline   Reply With Quote
Old 1st October 2017, 19:58   #14358  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 5,214
But not with -demux
__________________
BeHappy, AviSynth audio transcoder, in Doom9 forums. NicAudio, BassAudio, audio decoders.
tebasuna51 is offline   Reply With Quote
Old 2nd October 2017, 00:26   #14359  |  Link
stax76
staxrip & mpv.net
 
Join Date: Jun 2002
Posts: 5,239
Quote:
Originally Posted by hello_hello View Post
If you have ffdshow installed and don't mind decoding/encoding via DirectShow you can usually fix those problematic AC3 re-encodes by decoding with ffdshow and enabling it's mixer filter and setting it to output 5.1ch.
I could handle the file with ffmpeg.
__________________
StaxRip - use pastebin for log files and imgbox for screenshots
mpv.net player
stax76 is offline   Reply With Quote
Old 3rd October 2017, 00:12   #14360  |  Link
hubblec4
Matroska Dev-Helper
 
Join Date: Apr 2008
Posts: 704
Hi madshi

I found in the Bluray The Great Wall(sample), two streams with E-AC3 EX (I have never seen this before), 7.1 channels and a core with 5.1 channels.
Mkvmerge and ffprobe detect this streams only with 5.1 channels and a bitrate of 576kbps, but it seems to me these is only the core.

Code:
4: E-AC3 EX, French, 7.1 channels, 1152kbps, 48kHz
   (core: AC3 EX, 5.1 channels, 576kbps, 48kHz)
5: E-AC3 EX, German, 7.1 channels, 1152kbps, 48kHz
   (core: AC3 EX, 5.1 channels, 576kbps, 48kHz)
LAV Audio plays the 5.1 channel part only, also MediaInfo displays this stream with the 576kbps value.

So what is wrong, eac3to or all other tools?

best regards
hubblec4 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:43.


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