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

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 13th August 2017, 19:31   #14341  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
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.
tebasuna51 is offline  
Old 12th September 2017, 08:31   #14342  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
@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.
stax76 is offline  
Old 12th September 2017, 09:44   #14343  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,743
Is there a way to select the output folder when using the -demux function ?
Music Fan is offline  
Old 12th September 2017, 20:49   #14344  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
You can try:

eac3to "input" "D:\tmp\output.*"
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 12th September 2017, 23:14   #14345  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,743
Thanks, good trick !
Music Fan is offline  
Old 20th September 2017, 12:21   #14346  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,370
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  
Old 20th September 2017, 15:53   #14347  |  Link
Snowknight26
Registered User
 
Join Date: Aug 2007
Posts: 1,430
-logpids
Snowknight26 is offline  
Old 20th September 2017, 19:16   #14348  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,370
many thanks for the info
hubblec4 is offline  
Old 23rd September 2017, 05:13   #14349  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
@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
stax76 is offline  
Old 23rd September 2017, 10:19   #14350  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
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.
tebasuna51 is offline  
Old 23rd September 2017, 11:38   #14351  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Oh Thanks, I didn't notice or expect it.
stax76 is offline  
Old 27th September 2017, 09:56   #14352  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,823
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  
Old 1st October 2017, 15:43   #14353  |  Link
pstn
Registered User
 
Join Date: Sep 2017
Posts: 12
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  
Old 1st October 2017, 15:54   #14354  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
eac3to "source.m2ts" 3:"core.dts" -core 3:"both.dts"
sneaker_ger is offline  
Old 1st October 2017, 19:58   #14355  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
But not with -demux
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 2nd October 2017, 00:26   #14356  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
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.
stax76 is offline  
Old 3rd October 2017, 00:12   #14357  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,370
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  
Old 3rd October 2017, 00:20   #14358  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,344
Blu-ray EAC3 is rather peculiar, and ffmpeg doesn't support decoding it (or any other open-source decoders i'm aware of). Its not a proper EAC3 stream but a AC3 core with a EAC3 extension.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline  
Old 3rd October 2017, 18:06   #14359  |  Link
mkver
Registered User
 
Join Date: May 2016
Posts: 197
FYI: mkvmerge does not strip an extension away. If I mux the streams with mkvmerge id 3 or 4* alone I get files with size 2.8 MiB. MediaInfo 0.7.99 has the following to say about the file with the German track:
Code:
General
Unique ID                                : 245046857353978534520836163522779116025 (0xB85A4EDB6BD25BCBB0D8010ED44371F9)
Complete name                            : I:\The Great Wall\STREAM\00245_0.mka
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 2.81 MiB
Duration                                 : 20 s 384 ms
Overall bit rate mode                    : Constant
Overall bit rate                         : 1 155 kb/s
Encoded date                             : UTC 2017-10-03 16:43:44
Writing application                      : mkvmerge v16.0.0 ('Protest') 64-bit
Writing library                          : libebml v1.3.5 + libmatroska v1.4.8

Audio
ID                                       : 1
Format                                   : E-AC-3
Format/Info                              : Enhanced Audio Coding 3
Format settings, Endianness              : Big
Codec ID                                 : A_EAC3
Duration                                 : 20 s 384 ms
Bit rate mode                            : Constant
Bit rate                                 : 500 b/s
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 187.500 FPS (256 SPF)
Compression mode                         : Lossy
Stream size                              : 2.80 MiB (100%)
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No
So eac3to was right about the bitrate and MediaInfo is buggy. For the French track the situation is a bit more complicated:
Code:
General
Unique ID                                : 181109783328528269767092120785351483635 (0x884079B9EF4E2234A69025BC420A20F3)
Complete name                            : I:\The Great Wall\STREAM\00245_0 (1).mka
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 2.81 MiB
Duration                                 : 20 s 384 ms
Overall bit rate mode                    : Constant
Overall bit rate                         : 1 155 kb/s
Encoded date                             : UTC 2017-10-03 16:49:14
Writing application                      : mkvmerge v16.0.0 ('Protest') 64-bit
Writing library                          : libebml v1.3.5 + libmatroska v1.4.8

Audio
ID                                       : 1
Format                                   : E-AC-3
Format/Info                              : Enhanced Audio Coding 3
Format profile                           : E-AC-3+Atmos / E-AC-3
Format settings, Endianness              : Big
Codec ID                                 : A_EAC3
Duration                                 : 20 s 384 ms
Bit rate mode                            : Constant
Bit rate                                 : 500 b/s
Channel(s)                               : 11 objects / 6 channels
Channel positions                        : 11 objects / Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 187.500 FPS (256 SPF)
Compression mode                         : Lossy
Stream size                              : 2.80 MiB (100%)
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No
Besides being wrong about the bitrate, MediaInfo 0.7.99 claims that somehow this track contains an Atmos extension. Don't know if this is true. (It claims that there are 11 objects in this track when one examines the original m2ts file.) MediaInfo 0.7.92.1 does not detect an Atmos extension in the French track (and not in the German track). I don't know which version of MediaInfo claims that these tracks are 576 kb/s.
By the way, if I use ffmpeg to copy these streams, the same applies.
If one extracts the streams, MediaInfo claims they 13h 2m long. I don't know if the bitrate is miscalculated resulting in the wrong duration or if it's the other way around. Probably the former.

*: mkvmerge assigns id 0 to the video track, id 1 to the TrueHD Atmos stream, 2 to the core embedded in the TrueHD Atmos stream, 3 to the French and 4 to the German track.
mkver is offline  
Old 3rd October 2017, 18:34   #14360  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,370
My Pioneer Reciever shows the Dolby Atmos sign when I play the BD with TMT5.
The file size of the extracted audio(with eac3to) is almost the same what mkvmerge output(only the audio in an mka).
So I guess all is ok with this streams, only the detection is not correct(channels, bitrate).
hubblec4 is offline  
Closed Thread

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 20:23.


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