Opened 5 years ago

Closed 5 years ago

#336 closed defect (fixed)

Problem identifying mp3 file with large ID3 tag

Reported by: Orphis Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: mp3 id3 analyzeduration
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

FFmpeg doesn't recognize mp3 files with large ID3 tags at the beginning. To reproduce it, create a big image (in my test case I have a 1.8MB picture) and insert it in the tags as a cover.

A test file (with a click track instead of copyrighted music) can be downloaded there : http://orphis.free.fr/large_id3_tag.mp3

ffmpeg -v 9 -loglevel 99 -i large_id3_tag.mp3 
ffmpeg version N-31299-ga953577, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jul  8 2011 11:31:18 with gcc 4.6.0 20110530 (Red Hat 4.6.0-9)
  configuration: --enable-gpl --enable-nonfree --enable-postproc --enable-libmp3lame --enable-runtime-cpudetect --enable-libx264 --enable-libfreetype
  libavutil    51. 11. 0 / 51. 11. 0
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  5. 0 / 53.  5. 0
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 24. 3 /  2. 24. 3
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
large_id3_tag.mp3: Invalid data found when processing input

FFmpeg recognizes and reads the file properly when the type is forced :

ffmpeg -v 9 -loglevel 99 -f mp3 -i large_id3_tag.mp3 
ffmpeg version N-31299-ga953577, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jul  8 2011 11:31:18 with gcc 4.6.0 20110530 (Red Hat 4.6.0-9)
  configuration: --enable-gpl --enable-nonfree --enable-postproc --enable-libmp3lame --enable-runtime-cpudetect --enable-libx264 --enable-libfreetype
  libavutil    51. 11. 0 / 51. 11. 0
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  5. 0 / 53.  5. 0
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 24. 3 /  2. 24. 3
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[mp3 @ 0x20b4400] max_analyze_duration 5000000 reached at 5015510
Input #0, mp3, from 'large_id3_tag.mp3':
  Metadata:
    title           : Je m'suis fait tout p'tit
    publisher       : Universal
    genre           : Chanson Francaise Classique
    album           : Je me suis fait tout petit
    album_artist    : Georges Brassens
    track           : 1
    artist          : Georges Brassens
    composer        : Georges Brassens
    date            : 1957
  Duration: 00:00:32.02, start: 0.000000, bitrate: 580 kb/s
    Stream #0.0, 194, 1/14112000: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s
At least one output file must be specified

Change History (2)

comment:1 Changed 5 years ago by cehoyos

  • Component changed from undetermined to avformat
  • Keywords mp3 id3 analyzeduration added
  • Reproduced by developer set
  • Status changed from new to open

comment:2 Changed 5 years ago by michael

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

Fixed locally

Note: See TracTickets for help on using tickets.