[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
Sun Jun 1 10:08:28 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            |
-------------------------------------+-------------------------------------
Changes (by cehoyos):

 * keywords:  flac mp3 tag year => flac mp3
 * version:  unspecified => git-master
 * component:  ffmpeg => undetermined


Old description:

> Pretty simple: Convert any properly tagged flag file to an mp3 file, and
> see that the resulting mp3 file does not have its YEAR tag set properly.
>
> I tried:
> D:\temp\playlists>ffmpeg -i "04 - Punk Rock Song (German Language
> Version)).flac" -qscale:a 2 output\PunkRockSong.mp3
>
> As per the documentation, here is the result of the following command on
> my input file:
> D:\temp\playlists>ffmpeg -v 9 -loglevel 99 -i "04 - Punk Rock Song
> (German Language Version)).flac"
> ffmpeg version N-63593-g98a6806 Copyright (c) 2000-2014 the FFmpeg
> developers
>   built on May 29 2014 22:09:02 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. 87.100 / 52. 87.100
>   libavcodec     55. 65.100 / 55. 65.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
> Splitting the commandline.
> Reading option '-v' ... matched as option 'v' (set logging level) with
> argument '9'.
> Reading option '-loglevel' ... matched as option 'loglevel' (set logging
> level) with ar
> gument '99'.
> Reading option '-i' ... matched as input file with argument '04 - Punk
> Rock Song (German Language Versio
> n)).flac'.
> Finished splitting the commandline.
> Parsing a group of options: global .
> Applying option v (set logging level) with argument 9.
> Successfully parsed a group of options.
> Parsing a group of options: input file 04 - Punk Rock Song (German
> Language Version)).flac.
> Successfully parsed a group of options.
> Opening an input file: 04 - Punk Rock Song (German Language
> Version)).flac.
> [flac @ 0000000000310960] Format flac probed with size=2048 and score=50
> [flac @ 0000000000310960] Before avformat_find_stream_info() pos: 8713
> bytes read:32768
>  seeks:0
> [flac @ 0000000000321960] sample/frame number mismatch in adjacent frames
>     Last message repeated 14 times
> [flac @ 0000000000310960] All info found
> [flac @ 0000000000310960] After avformat_find_stream_info() pos: 69632
> bytes read:98304
>  seeks:0 frames:1
> Input #0, flac, from '04 - Punk Rock Song (German Language
> Version)).flac':
>   Metadata:
>     ARTIST          : Bad Religion
>     TITLE           : Punk Rock Song (German Language Version))
>     ALBUM           : Punk Rock Song (Single)
>     DATE            : 1996
>     track           : 04
>     GENRE           : Punk Rock
>   Duration: 00:02:27.03, start: 0.000000, bitrate: 1056 kb/s
>     Stream #0:0, 1, 1/44100: Audio: flac, 44100 Hz, stereo, s16
> Successfully opened the file.
> At least one output file must be specified
> [AVIOContext @ 0000000000319000] Statistics: 98304 bytes read, 0 seeks
>
> I am using the latest version of ffmpeg under windows: FFmpeg Build
> Version: git-2e532aa (2014-05-31).
>
> This can easily be reproduced.

New description:

 Pretty simple: Convert any properly tagged flag file to an mp3 file, and
 see that the resulting mp3 file does not have its YEAR tag set properly.

 I tried:
 D:\temp\playlists>ffmpeg -i "04 - Punk Rock Song (German Language
 Version)).flac" -qscale:a 2 output\PunkRockSong.mp3

 As per the documentation, here is the result of the following command on
 my input file:
 {{{
 D:\temp\playlists>ffmpeg -v 9 -loglevel 99 -i "04 - Punk Rock Song (German
 Language Version)).flac"
 ffmpeg version N-63593-g98a6806 Copyright (c) 2000-2014 the FFmpeg
 developers
   built on May 29 2014 22:09:02 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 --enable-libass --enable-libbluray
 --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm
 --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-
 libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-librtmp --enable-libschroedinger --enable-
 libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-
 libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
 libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-
 libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-
 decklink --enable-zlib
   libavutil      52. 87.100 / 52. 87.100
   libavcodec     55. 65.100 / 55. 65.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
 Splitting the commandline.
 Reading option '-v' ... matched as option 'v' (set logging level) with
 argument '9'.
 Reading option '-loglevel' ... matched as option 'loglevel' (set logging
 level) with argument '99'.
 Reading option '-i' ... matched as input file with argument '04 - Punk
 Rock Song (German Language Version)).flac'.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option v (set logging level) with argument 9.
 Successfully parsed a group of options.
 Parsing a group of options: input file 04 - Punk Rock Song (German
 Language Version)).flac.
 Successfully parsed a group of options.
 Opening an input file: 04 - Punk Rock Song (German Language
 Version)).flac.
 [flac @ 0000000000310960] Format flac probed with size=2048 and score=50
 [flac @ 0000000000310960] Before avformat_find_stream_info() pos: 8713
 bytes read:32768 seeks:0
 [flac @ 0000000000321960] sample/frame number mismatch in adjacent frames
     Last message repeated 14 times
 [flac @ 0000000000310960] All info found
 [flac @ 0000000000310960] After avformat_find_stream_info() pos: 69632
 bytes read:98304 seeks:0 frames:1
 Input #0, flac, from '04 - Punk Rock Song (German Language
 Version)).flac':
   Metadata:
     ARTIST          : Bad Religion
     TITLE           : Punk Rock Song (German Language Version))
     ALBUM           : Punk Rock Song (Single)
     DATE            : 1996
     track           : 04
     GENRE           : Punk Rock
   Duration: 00:02:27.03, start: 0.000000, bitrate: 1056 kb/s
     Stream #0:0, 1, 1/44100: Audio: flac, 44100 Hz, stereo, s16
 Successfully opened the file.
 At least one output file must be specified
 [AVIOContext @ 0000000000319000] Statistics: 98304 bytes read, 0 seeks
 }}}
 I am using the latest version of ffmpeg under windows: FFmpeg Build
 Version: git-2e532aa (2014-05-31).

 This can easily be reproduced.

--

Comment:

 Replying to [ticket:3694 dslkjlskdjfllk]:
 > D:\temp\playlists>ffmpeg -i "04 - Punk Rock Song (German Language
 Version)).flac" -qscale:a 2 output\PunkRockSong.mp3
 >
 > As per the documentation, here is the result of the following command on
 my input file:

 The idea is of course that you provide the output of the failing command
 line above...

 More important:
 Please provide the output of {{{ffmpeg -i output\PunkRockSong.mp3}}}

 > I am using the latest version of ffmpeg under windows: FFmpeg Build
 Version: git-2e532aa (2014-05-31).

 Your console output seems to disagree:
 > {{{
 > ffmpeg version N-63593-g98a6806
 > }}}

 > This can easily be reproduced.

 I cannot reproduce it but I wonder what you mean with ''easy''...

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


More information about the FFmpeg-trac mailing list