Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#5689 closed defect (fixed)

Regression in mp3 "missing header"

Reported by: FernetMenta Owned by:
Priority: important Component: avformat
Version: git-master Keywords: mp3 regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

This defect is similar to https://trac.ffmpeg.org/ticket/5047 but this time related to lame encoder. Forcing AVSTREAM_PARSE_FULL cures the issue.

Sample to reproduce the issue is attached.

Attachments (1)

Change History (8)

comment:1 Changed 2 years ago by cehoyos

  • Keywords mp3 regression added
  • Priority changed from normal to important

Is the issue reproducible with ffmpeg or just with kodi? Which commit introduced the regression?
And please confirm that the issue is reproducible with current FFmpeg git head.

comment:3 Changed 2 years ago by FernetMenta

I tried ffmpeg 3.0 and 3.1. The reason for this regression is exactly the same as mentioned in 5047:
http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=6ec688e1bc76dd93151cbca1c340162ae4b10d77

If need_parsing is set to AVSTREAM_PARSE_FULL like prior to this change, it works again.

comment:4 Changed 2 years ago by cehoyos

Regression since ae215e2b42dd172f6bfd9f2dad44c9d5c11884bf
For future tickets: Please always test current FFmpeg git head and provide a command line that allows to reproduce the issue together with the console output.

$ ffmpeg -i 3\ Doors\ Down\ -\ Here\ Without\ You_cut.mp4 out.wav
ffmpeg version N-80906-gd5edb6c Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 48.101 / 57. 48.101
  libavformat    57. 41.100 / 57. 41.100
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 47.100 /  6. 47.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '3 Doors Down - Here Without You_cut.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 1970-01-01 00:00:00
    title           : 3 Doors Down - Here Without You.mp4
    encoder         : Lavf52.108.0
  Duration: 00:03:55.57, start: 0.000000, bitrate: 86 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 480x270 [SAR 1:1 DAR 16:9], 422 kb/s, 23.97 fps, 23.97 tbr, 23968 tbn, 47.94 tbc (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, s16p, 127 kb/s (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : SoundHandler
[wav @ 0x2f34ec0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Output #0, wav, to 'out.wav':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    INAM            : 3 Doors Down - Here Without You.mp4
    ISFT            : Lavf57.41.100
    Stream #0:0(und): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : SoundHandler
      encoder         : Lavc57.48.101 pcm_s16le
Stream mapping:
  Stream #0:1 -> #0:0 (mp3 (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[mp3 @ 0x2f088c0] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2f088c0] Header missing
Error while decoding stream #0:1: Invalid data found when processing input                     

...

...

[mp3 @ 0x2f088c0] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2f088c0] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2f033a0] stream 1, offset 0x27122f: partial file
3 Doors Down - Here Without You_cut.mp4: Invalid data found when processing input
size=       9kB time=00:00:00.05 bitrate=1429.9kbits/s speed=1.79x
video:0kB audio:9kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.323785%
Conversion failed!

comment:5 Changed 2 years ago by cehoyos

  • Component changed from undetermined to avformat
  • Reproduced by developer set
  • Status changed from new to open
  • Version changed from unspecified to git-master

Changed 2 years ago by cehoyos

comment:6 Changed 2 years ago by michael

  • Resolution set to fixed
  • Status changed from open to closed

comment:7 Changed 2 years ago by FernetMenta

thanks!

Note: See TracTickets for help on using tickets.