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
636 stars 175 forks source link

Misidentifying PCM_S24LE Audio Stream as 16-bit #1962

Closed HyperStryker closed 9 months ago

HyperStryker commented 9 months ago

Using FFMPEG (ver 2024-01-17, git build from gyan), I muxed an H264 .mov file (discarding existing audio track) together with another .mov file containing just PCM_S24LE (in24) audio into an .mp4 file. FFMPEG on its output in Powershell shows the audio stream as PCM_S24LE (ipcm this time). Additionally, opening the new video file in Adobe Audition shows the file as containing 24-bit audio. However, MediaInfo (v24.01.1) displays this instead:

Audio
ID                                       : 2
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : ipcm
Duration                                 : 1 h 0 min
Bit rate mode                            : Constant
Bit rate                                 : 1 536 kb/s
Maximum bit rate                         : 2 304 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Bit depth                                : 16 bits
Stream size                              : 999 MiB (7%)
Language                                 : English
Default                                  : Yes
Alternate group                          : 1

I would expect it to still report 24 bits for the bit depth. For reference, here's the info for the two files used in the muxing:

Video .MOV

Complete name                            : <omitted>
Format                                   : MPEG-4
Format profile                           : QuickTime
Codec ID                                 : qt   0000.02 (qt  )
File size                                : 14.7 GiB
Duration                                 : 1 h 0 min
Overall bit rate                         : 34.6 Mb/s
Frame rate                               : 29.970 FPS
Tagged date                              : 2024-02-17 04:59:56 UTC
Writing application                      : Lavf60.3.100
TIM                                      : 00;00;00;00
TSC                                      : 30000
TSZ                                      : 1001

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L5
Format settings                          : CABAC / 5 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 5 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 1 h 0 min
Bit rate                                 : 32.3 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 29.970 (30000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.520
Stream size                              : 13.7 GiB (93%)
Writing library                          : x264 core 164
Encoding settings                        : cabac=1 / ref=5 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=hex / subme=8 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=30 / lookahead_threads=5 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=150 / keyint_min=15 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=17.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Codec configuration box                  : avcC

Audio
ID                                       : 2
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : in24
Duration                                 : 1 h 0 min
Bit rate mode                            : Constant
Bit rate                                 : 2 304 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Bit depth                                : 24 bits
Stream size                              : 999 MiB (7%)
Default                                  : Yes
Alternate group                          : 1

Audio .MOV

Complete name                            : <omitted>
Format                                   : MPEG-4
Format profile                           : QuickTime
Codec ID                                 : qt   2005.03 (qt  )
File size                                : 1 000 MiB
Duration                                 : 1 h 0 min
Overall bit rate                         : 2 306 kb/s
Encoded date                             : 2024-02-18 09:47:19 UTC
Tagged date                              : 2024-02-17 09:47:23 UTC
Writing library                          : Apple QuickTime
TIM                                      : 00:00:00:00000
TSC                                      : 2997
TSZ                                      : 100

Audio
ID                                       : 1
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : in24
Duration                                 : 1 h 0 min
Bit rate mode                            : Constant
Bit rate                                 : 2 304 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Bit depth                                : 24 bits
Stream size                              : 999 MiB (100%)
Language                                 : English
Encoded date                             : 2024-02-18 09:47:19 UTC
Tagged date                              : 2024-02-18 09:47:19 UTC

Other
ID                                       : 2
Type                                     : Time code
Format                                   : QuickTime TC
Duration                                 : 1 h 0 min
Frame rate                               : 29.970 (29970/1000) FPS
Time code of first frame                 : 00:00:00:00
Time code of last frame                  : 01:00:32:04
Time code, stripped                      : Yes
Language                                 : English
Encoded date                             : 2024-02-18 09:47:19 UTC
Tagged date                              : 2024-02-18 09:47:19 UTC
JeromeMartinez commented 9 months ago

We need a sample file. (only the file indicated as wrongly detected).

HyperStryker commented 9 months ago

See below for a sample (heads up as it is loud in the beginning): https://github.com/MediaArea/MediaInfoLib/assets/3130597/09771442-c51d-436b-bd77-dbb5baab4174