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

FFmpeg trac at avcodec.org
Tue Dec 13 10:49:11 EET 2016


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

Comment (by mitchbcn):

 Hi,

 With the last version of Github I have the same problem: with
 '-id3v2_version 4' option it doesn't works (tags and cover doesn't appears
 in the mp3 file) but with the '-id3v2_version 3' option it works fine.

 Execution output

 {{{

 :$ 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 N-82837-gb7e4ea0 Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
   configuration: --enable-gpl --enable-libmp3lame --enable-nonfree
 --enable-parser=png --enable-decoder=png --enable-encoder=png
   libavutil      55. 43.100 / 55. 43.100
   libavcodec     57. 67.100 / 57. 67.100
   libavformat    57. 59.100 / 57. 59.100
   libavdevice    57.  2.100 / 57.  2.100
   libavfilter     6. 68.100 /  6. 68.100
   libswscale      4.  3.101 /  4.  3.101
   libswresample   2.  4.100 /  2.  4.100
   libpostproc    54.  2.100 / 54.  2.100
 [mp3 @ 0x2c576c0] 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 @ 0x2c6c3e0] 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            : Lavf57.59.100
     Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, mono, s16p, 0 kb/s
     Metadata:
       encoder         : Lavc57.67.100 libmp3lame
     Stream #0:1: Video: png, pal8, 251x201, q=2-31, 200 kb/s, 25 fps, 25
 tbn, 25 tbc
     Metadata:
       encoder         : Lavc57.67.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 speed=72.1x
 video:9kB audio:33364kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.000793%

 :$ 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 N-82837-gb7e4ea0 Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
   configuration: --enable-gpl --enable-libmp3lame --enable-nonfree
 --enable-parser=png --enable-decoder=png --enable-encoder=png
   libavutil      55. 43.100 / 55. 43.100
   libavcodec     57. 67.100 / 57. 67.100
   libavformat    57. 59.100 / 57. 59.100
   libavdevice    57.  2.100 / 57.  2.100
   libavfilter     6. 68.100 /  6. 68.100
   libswscale      4.  3.101 /  4.  3.101
   libswresample   2.  4.100 /  2.  4.100
   libpostproc    54.  2.100 / 54.  2.100
 [mp3 @ 0x33af6c0] 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 @ 0x33c43e0] 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            : Lavf57.59.100
     Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, mono, s16p, 0 kb/s
     Metadata:
       encoder         : Lavc57.67.100 libmp3lame
     Stream #0:1: Video: png, pal8, 251x201, q=2-31, 200 kb/s, 25 fps, 25
 tbn, 25 tbc
     Metadata:
       encoder         : Lavc57.67.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 speed=70.9x
 video:9kB audio:33364kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.000793%


 }}}

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


More information about the FFmpeg-trac mailing list