Opened 3 years ago

Closed 3 years ago

#4864 closed defect (fixed)

AC3 is parsed as MP3

Reported by: fritsch Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: mp3 ac3 mpegts
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Try to play the uploaded file (incoming/mp3ac3.ts) . ffmpeg tries to parse it as mp3 and fails.

[mp3 @ 0x224bb40] Header missing
[mp3 @ 0x224c6c0] Header missing
[mp3 @ 0x224bb40] Header missing
[mp3 @ 0x224c6c0] Header missing
[mp3 @ 0x224bb40] Header missing
[mp3 @ 0x224c6c0] Header missing
[mp3 @ 0x224bb40] Header missing
[mp3 @ 0x224c6c0] Header missing
[mp3 @ 0x224bb40] Header missing
[mp3 @ 0x224c6c0] Header missing
[mp3 @ 0x224bb40] Header missing
[mp3 @ 0x224c6c0] Header missing
[mp3 @ 0x224bb40] Header missing
[mp3 @ 0x224c6c0] Header missing
[mp3 @ 0x224bb40] Header missing
[mp3 @ 0x224c6c0] Header missing
[mp3 @ 0x224bb40] Header missing
[mp3 @ 0x224c6c0] Header missing
[mp3 @ 0x224bb40] Header missing
[mp3 @ 0x224c6c0] Header missing
[mp3 @ 0x224bb40] Header missing
[mp3 @ 0x224c6c0] Header missing
[mpegts @ 0x2246ba0] decoding for stream 1 failed
[mpegts @ 0x2246ba0] decoding for stream 2 failed
[mpegts @ 0x2246ba0] PES packet size mismatch
[mpegts @ 0x2246ba0] Could not find codec parameters for stream 1 (Audio: mp3 ([4][0][0][0] / 0x0004), 0 channels, s16p): unspecified frame size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x2246ba0] Could not find codec parameters for stream 2 (Audio: mp3 ([4][0][0][0] / 0x0004), 0 channels, s16p): unspecified frame size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from '../../Downloads/mp3ac3.ts':

Duration: 00:00:05.53, start: 43473.703389, bitrate: 14819 kb/s
Program 132

Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 15000 kb/s, 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc
Stream #0:1[0x34](eng): Audio: mp3 ([4][0][0][0] / 0x0004), 0 channels, s16p
Audio #1

ID : 52 (0x34)
Menu ID : 132 (0x84)
Format : AC-3
Format/Info? : Audio Coding 3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Codec ID : 6
Duration : 5s 24ms
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Delay relative to video : -406ms
Stream size : 236 KiB (2%)

Audio #2
ID : 53 (0x35)
Menu ID : 132 (0x84)
Format : AC-3
Format/Info? : Audio Coding 3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Codec ID : 6
Duration : 5s 24ms
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Delay relative to video : -398ms
Stream size : 118 KiB (1%)Stream #0:2[0x35](es): Audio: mp3 ([4][0][0][0] / 0x0004), 0 channels, s16p

mediainfo:
Audio #1
ID : 52 (0x34)
Menu ID : 132 (0x84)
Format : AC-3
Format/Info? : Audio Coding 3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Codec ID : 6
Duration : 5s 24ms
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Delay relative to video : -406ms
Stream size : 236 KiB (2%)

Audio #2
ID : 53 (0x35)
Menu ID : 132 (0x84)
Format : AC-3
Format/Info? : Audio Coding 3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Codec ID : 6
Duration : 5s 24ms
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Delay relative to video : -398ms
Stream size : 118 KiB (1%)

Attachments (1)

mp3ac325.ts (2.3 MB) - added by fritsch 3 years ago.
2.5 MB sample of the issue

Change History (4)

Changed 3 years ago by fritsch

2.5 MB sample of the issue

comment:1 Changed 3 years ago by fritsch

I got this sample from a kodi user - I have no idea where it is coming from. If you need a larger sampler - I can upload a 110 MB version.

comment:2 Changed 3 years ago by cehoyos

  • Component changed from avcodec to avformat
  • Keywords mpegts added; Header missing removed
  • Reproduced by developer set
  • Status changed from new to open
  • Version changed from unspecified to git-master

Plays fine with WMP, I don't know if this will be fixed in FFmpeg.

comment:3 Changed 3 years ago by michael

  • Resolution set to fixed
  • Status changed from open to closed
Note: See TracTickets for help on using tickets.