MediaArea / MediaInfoLib

Convenient unified display of the most relevant technical and tag data for video and audio files.
https://mediaarea.net/MediaInfo
BSD 2-Clause "Simplified" License
633 stars 173 forks source link

E-AC-3: embedded streams bitrates not detected #1235

Open jdayx opened 4 years ago

jdayx commented 4 years ago

Hello, is it possible to detect bitrates of embedded streams in EAC3 tracks? If you take 00007.ac3.gz for example, it is from https://samples.ffmpeg.org/A-codecs/AC3/eac3/dependentsubstreams/, it has a 640K AC3 stream embedded but mediainfo doesn't detect it, it just detects the channels in it. Bit rate is not correct although channels are.

Bit rate                                 : 1 664 kb/s
Channel(s)                               : 8 channels / 6 channels

With https://github.com/justdan96/tsMuxer, I can see that the embedded track is 640K:

Stream info: Bitrate: 1664Kbps (core 640Kbps) Sample Rate: 48KHz Channels: 7.1

Running mediainfo with parsespeed 1 is even worse: bitrates disappear.

I am also uploading the extracted AC3 stream (using tsmuxer). 00007-640k.ac3.gz

jdayx commented 4 years ago

Another EAC3 file, it apparently contains an EAC3 substream: 7_pt_1.eac3.gz eac3to reports:

E-AC3, 7.1 channels, 0:01:35, 1662kbps, 48kHz                                  
(core: E-AC3, 5.1 channels, 0:01:35, 930kbps, 48kHz)                           

but isn't able to extract the substream.

tsmuxer seems to fail on this one: Stream info: Bitrate: 732Kbps (core 0Kbps) Sample Rate: 48KHz Channels: 7.1

JeromeMartinez commented 4 years ago

We have it internally, but since a major refactoring 2 years ago it is no more available by default. With the library, you can activate the former view with:

mediainfo --LegacyStreamDisplay 00007.ac3
General
Complete name                            : 00007.ac3
Format                                   : E-AC-3
Format/Info                              : Enhanced AC-3
Commercial name                          : Dolby Digital Plus
Format profile                           : Blu-ray Disc
File size                                : 1.40 MiB
Duration                                 : 7 s 40 ms
Overall bit rate mode                    : Constant
Overall bit rate                         : 1 664 kb/s

Audio
Format                                   : E-AC-3
Format/Info                              : Enhanced AC-3
Commercial name                          : Dolby Digital Plus
Format profile                           : Blu-ray Disc
Duration                                 : 7 s 40 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 664 kb/s
Channel(s)                               : 8 channels / 6 channels
Channel layout                           : L R C LFE Ls Rs Lb Rb / L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 1.40 MiB (100%)
Service kind                             : Complete Main

Note: if I remember correctly the bitrate used to be present, I need to fix that (manual check confirms 640 kbps for 00007-640k.ac3 and 930 kbps for 7_pt_1.eac3).

jdayx commented 4 years ago

you can activate the former view with:

Yes I know about that, I used it to get the audio channels.

if I remember correctly the bitrate used to be present

Yes, that is specifically what I am interested in. I tried a few old versions but never got the embedded track bit rate, some old versions were even worse and showed 500 b/s.

JeromeMartinez commented 4 years ago

Yes, that is specifically what I am interested in.

Got it. I'll try to see if I have time for that this week, but it will be the quick version (= only with the option for the former view)