[FFmpeg-trac] #6008(undetermined:new): Problem attaching a picture to an mp3 with id3v2 version 4

FFmpeg trac at avcodec.org
Fri Dec 9 18:38:37 EET 2016


#6008: Problem attaching a picture to an mp3 with id3v2 version 4
-------------------------------------+-------------------------------------
             Reporter:  mitchbcn     |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:  mp3 picture  |               Blocked By:
  id3v2                              |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:

 I'm trying to attach a picture, tags and other operations to an mp3 file
 but with id3v2 version 4 doesn't works. The file is created without errors
 but without metada information and without the picture.

 The same command with id3v2 version 3 it works fine

 How to reproduce:
 {{{
 % ffmpeg -y -i podcast.mp3 -i homer.png -map 0 -map 1 -b:a 48 -ac 1
 -metadata "album='Podcast'" -id3v2_version 4 -f mp3 test_portada.mp3
 ffmpeg version 2.8.8-0ubuntu0.16.04.1 Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
   configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-
 suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
 --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl
 --enable-shared --disable-stripping --disable-decoder=libopenjpeg
 --disable-decoder=libschroedinger --enable-avresample --enable-avisynth
 --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray
 --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite
 --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-
 libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-
 libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-
 libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr
 --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame
 --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
 --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal
 --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883
 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
   libavutil      54. 31.100 / 54. 31.100
   libavcodec     56. 60.100 / 56. 60.100
   libavformat    56. 40.101 / 56. 40.101
   libavdevice    56.  4.100 / 56.  4.100
   libavfilter     5. 40.101 /  5. 40.101
   libavresample   2.  1.  0 /  2.  1.  0
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  2.101 /  1.  2.101
   libpostproc    53.  3.100 / 53.  3.100
 [mp3 @ 0xa995e0] Skipping 0 bytes of junk at 33.
 [mp3 @ 0xa995e0] Estimating duration from bitrate, this may be inaccurate
 Input #0, mp3, from 'podcast.mp3':
   Metadata:
     encoder         : Lavf52.64.2
   Duration: 01:11:10.52, start: 0.000000, bitrate: 48 kb/s
     Stream #0:0: Audio: mp3, 44100 Hz, mono, s16p, 48 kb/s
 Input #1, png_pipe, from 'homer.png':
   Duration: N/A, bitrate: N/A
     Stream #1:0: Video: png, pal8(pc), 251x201, 25 tbr, 25 tbn, 25 tbc
 [libmp3lame @ 0xaad0c0] Bitrate 48 is extremely low, maybe you mean 48k
 The bitrate parameter is set too low. It takes bits/s as argument, not
 kbits/s
 Output #0, mp3, to 'test_portada.mp3':
   Metadata:
     TALB            : 'Podcast'
     TSSE            : Lavf56.40.101
     Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, mono, s16p, 0 kb/s
     Metadata:
       encoder         : Lavc56.60.100 libmp3lame
     Stream #0:1: Video: png, pal8, 251x201, q=2-31, 200 kb/s, 25 fps, 25
 tbn, 25 tbc
     Metadata:
       encoder         : Lavc56.60.100 png
 Stream mapping:
   Stream #0:0 -> #0:0 (mp3 (native) -> mp3 (libmp3lame))
   Stream #1:0 -> #0:1 (png (native) -> png (native))
 Press [q] to stop, [?] for help
 frame=    1 fps=0.0 q=-0.0 Lsize=   33373kB time=01:11:10.52 bitrate=
 64.0kbits/s
 video:9kB audio:33364kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.000793%
 }}}

 Command with version 3 that works fine

 {{{

 ffmpeg -y -i podcast.mp3 -i homer.png -map 0 -map 1 -b:a 48 -ac 1
 -metadata "album='Podcast'" -id3v2_version 3 -f mp3 test_portada.mp3
 ffmpeg version 2.8.8-0ubuntu0.16.04.1 Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
   configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-
 suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
 --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl
 --enable-shared --disable-stripping --disable-decoder=libopenjpeg
 --disable-decoder=libschroedinger --enable-avresample --enable-avisynth
 --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray
 --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite
 --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-
 libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-
 libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-
 libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr
 --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame
 --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
 --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal
 --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883
 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
   libavutil      54. 31.100 / 54. 31.100
   libavcodec     56. 60.100 / 56. 60.100
   libavformat    56. 40.101 / 56. 40.101
   libavdevice    56.  4.100 / 56.  4.100
   libavfilter     5. 40.101 /  5. 40.101
   libavresample   2.  1.  0 /  2.  1.  0
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  2.101 /  1.  2.101
   libpostproc    53.  3.100 / 53.  3.100
 [mp3 @ 0x26515e0] Skipping 0 bytes of junk at 33.
 [mp3 @ 0x26515e0] Estimating duration from bitrate, this may be inaccurate
 Input #0, mp3, from 'podcast.mp3':
   Metadata:
     encoder         : Lavf52.64.2
   Duration: 01:11:10.52, start: 0.000000, bitrate: 48 kb/s
     Stream #0:0: Audio: mp3, 44100 Hz, mono, s16p, 48 kb/s
 Input #1, png_pipe, from 'homer.png':
   Duration: N/A, bitrate: N/A
     Stream #1:0: Video: png, pal8(pc), 251x201, 25 tbr, 25 tbn, 25 tbc
 [libmp3lame @ 0x26650c0] Bitrate 48 is extremely low, maybe you mean 48k
 The bitrate parameter is set too low. It takes bits/s as argument, not
 kbits/s
 Output #0, mp3, to 'test_portada.mp3':
   Metadata:
     TALB            : 'Podcast'
     TSSE            : Lavf56.40.101
     Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, mono, s16p, 0 kb/s
     Metadata:
       encoder         : Lavc56.60.100 libmp3lame
     Stream #0:1: Video: png, pal8, 251x201, q=2-31, 200 kb/s, 25 fps, 25
 tbn, 25 tbc
     Metadata:
       encoder         : Lavc56.60.100 png
 Stream mapping:
   Stream #0:0 -> #0:0 (mp3 (native) -> mp3 (libmp3lame))
   Stream #1:0 -> #0:1 (png (native) -> png (native))
 Press [q] to stop, [?] for help
 frame=    1 fps=0.0 q=-0.0 Lsize=   33373kB time=01:11:10.52 bitrate=
 64.0kbits/s
 video:9kB audio:33364kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.000793%

 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6008>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list