[FFmpeg-trac] #3694(undetermined:new): When transcoding from FLAC to MP3 the Year tag gets lost in the resulting mp3 file

FFmpeg trac at avcodec.org
Wed Jun 4 02:53:47 CEST 2014


#3694: When transcoding from FLAC to MP3 the Year tag gets lost in the resulting
mp3 file
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:
  dslkjlskdjfllk                     |                   Status:  new
                 Type:  defect       |                Component:
             Priority:  normal       |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:  flac mp3     |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by dslkjlskdjfllk):

 Ok, let's try this again. It happens 100% of the time, with any file. I
 take a flac file and convert it to a mp3 file and, magically, the "year"
 tag disappear in the resulting mp3 file.

 Here it is:

 {{{
 d:\ffmpeg\bin>ffmpeg -i "Bad Medicine.flac" -qscale:a 2 test.mp3
 ffmpeg version N-63716-g763e714 Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Jun  2 2014 22:09:26 with gcc 4.8.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth
 --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
 --enable-iconv --ena
 ble-libass --enable-libbluray --enable-libcaca --enable-libfreetype
 --enable-libgme --e
 nable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
 --enable-libopenc
 ore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus
 --enable-lib
 rtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-
 libtheora --e
 nable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-
 amrwbenc --en
 able-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
 --enable-libx264 --
 enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink
 --enable-zlib
   libavutil      52. 89.100 / 52. 89.100
   libavcodec     55. 66.100 / 55. 66.100
   libavformat    55. 42.100 / 55. 42.100
   libavdevice    55. 13.101 / 55. 13.101
   libavfilter     4.  5.100 /  4.  5.100
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 19.100 /  0. 19.100
   libpostproc    52.  3.100 / 52.  3.100
 Input #0, flac, from 'Bad Medicine.flac':
   Metadata:
     TITLE           : Bad Medicine
     ARTIST          : Bon Jovi
     ALBUM           : New Jersey (Special Edition)
     GENRE           : Rock
     TRACKTOTAL      : 14
     TOTALTRACKS     : 14
     ISRC            : USPR39402228
     DATE            : 2010
     track           : 2
   Duration: 00:05:16.79, start: 0.000000, bitrate: 1082 kb/s
     Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
     Stream #0:1: Video: mjpeg, yuvj444p(pc), 350x348, 90k tbr, 90k tbn,
 90k tbc
     Metadata:
       comment         : Cover (front)
 [swscaler @ 0000000002bb07e0] deprecated pixel format used, make sure you
 did set range
  correctly
 [mp3 @ 0000000002b5af20] Frame rate very high for a muxer not efficiently
 supporting it
 .
 Please consider specifying a lower framerate, a different muxer or -vsync
 2
 Output #0, mp3, to 'test.mp3':
   Metadata:
     TIT2            : Bad Medicine
     TPE1            : Bon Jovi
     TALB            : New Jersey (Special Edition)
     TCON            : Rock
     TRACKTOTAL      : 14
     TOTALTRACKS     : 14
     ISRC            : USPR39402228
     TDRL            : 2010
     TRCK            : 2
     TSSE            : Lavf55.42.100
     Stream #0:0: Video: png, rgb24, 350x348, q=2-31, 200 kb/s, 90k fps,
 90k tbn, 90k tb
 c
     Metadata:
       comment         : Cover (front)
       encoder         : Lavc55.66.100 png
     Stream #0:1: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p
     Metadata:
       encoder         : Lavc55.66.100 libmp3lame
 Stream mapping:
   Stream #0:1 -> #0:0 (mjpeg -> png)
   Stream #0:0 -> #0:1 (flac -> libmp3lame)
 Press [q] to stop, [?] for help
 frame=    1 fps=0.2 q=0.0 Lsize=    7829kB time=00:05:16.78 bitrate=
 202.4kbits/s
 video:237kB audio:7591kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overh
 ead: 0.005726%

 }}}

 Here is the info on the resulting file:

 {{{
 d:\ffmpeg\bin>ffmpeg -i test.mp3
 ffmpeg version N-63716-g763e714 Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Jun  2 2014 22:09:26 with gcc 4.8.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth
 --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
 --enable-iconv --ena
 ble-libass --enable-libbluray --enable-libcaca --enable-libfreetype
 --enable-libgme --e
 nable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
 --enable-libopenc
 ore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus
 --enable-lib
 rtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-
 libtheora --e
 nable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-
 amrwbenc --en
 able-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
 --enable-libx264 --
 enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink
 --enable-zlib
   libavutil      52. 89.100 / 52. 89.100
   libavcodec     55. 66.100 / 55. 66.100
   libavformat    55. 42.100 / 55. 42.100
   libavdevice    55. 13.101 / 55. 13.101
   libavfilter     4.  5.100 /  4.  5.100
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 19.100 /  0. 19.100
   libpostproc    52.  3.100 / 52.  3.100
 Input #0, mp3, from 'test.mp3':
   Metadata:
     title           : Bad Medicine
     artist          : Bon Jovi
     album           : New Jersey (Special Edition)
     genre           : Rock
     TRACKTOTAL      : 14
     TOTALTRACKS     : 14
     ISRC            : USPR39402228
     date            : 2010
     track           : 2
     encoder         : Lavf55.42.100
   Duration: 00:05:16.81, start: 0.025056, bitrate: 202 kb/s
     Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 196 kb/s
     Stream #0:1: Video: png, rgb24, 350x348, 90k tbr, 90k tbn, 90k tbc
     Metadata:
       title           :
       comment         : Cover (front)
 At least one output file must be specified
 }}}


 I see here that the date tag is set to 2010.. as the original file. But
 when I play that file in winamp, the "Year" tag is empty in the mp3 but
 filed in the FLAC. When I inspect both files in mp3tag, I get the same
 result: The year field is set for the flac, but empty for the mp3. Is it
 the case that the id tag is not properly built?

 Thanks

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


More information about the FFmpeg-trac mailing list