[FFmpeg-trac] #3599(avformat:new): mp3 encoder set wrong bitrate or version flag

FFmpeg trac at avcodec.org
Sun May 4 09:12:54 CEST 2014


#3599: mp3 encoder set wrong bitrate or version flag
------------------------------------+------------------------------------
             Reporter:  ltzliwe     |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:  mp3         |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by cehoyos):

 Replying to [comment:5 ltzliwe]:
 > Replying to [comment:4 cehoyos]:
 > > I suspect ''file'' does not support xing headers, use {{{-write_xing
 0}}} as a workaround.
 >
 > I found the bug was fixed, tks :)
 >
 http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=617a1a98a6be3e59db6fbfc21afab2fb9a049c03;hp=254c95cdd1b669a722204a4a65974fc2523c8f83

 This commit was already part of 2.1.3 so I don't think it could have fixed
 your issue.
 Additionally, I can also reproduce it here with (current FFmpeg git head
 and) file-5.11.

 {{{
 $ffmpeg -i fate-suite/svq3/Vertical400kbit.sorenson3.mov -vn -ab 32k
 -map_metadata -1 out.mp3
 ffmpeg version N-62951-g3316556 Copyright (c) 2000-2014 the FFmpeg
 developers
   built on May  4 2014 09:03:53 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl --enable-libvorbis --enable-libvpx --enable-
 libmp3lame
   libavutil      52. 81.100 / 52. 81.100
   libavcodec     55. 60.103 / 55. 60.103
   libavformat    55. 37.102 / 55. 37.102
   libavdevice    55. 13.101 / 55. 13.101
   libavfilter     4.  5.100 /  4.  5.100
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 18.100 /  0. 18.100
   libpostproc    52.  3.100 / 52.  3.100
 Guessed Channel Layout for  Input Stream #0.1 : mono
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fate-
 suite/svq3/Vertical400kbit.sorenson3.mov':
   Metadata:
     creation_time   : 2001-03-20 16:17:18
     title           : Vertical Online SV3 Demo
     title-eng       : Vertical Online SV3 Demo
     artist          : Logan Kelsey
     artist-eng      : Logan Kelsey
     copyright       : © Vertical Online 2001
     copyright-eng   : © Vertical Online 2001
     encoder         : Sorenson Video 3
     encoder-eng     : Sorenson Video 3
   Duration: 00:00:43.58, start: 0.000000, bitrate: 580 kb/s
     Stream #0:0(eng): Video: svq3 (SVQ3 / 0x33515653), yuvj420p(pc),
 320x240, 391 kb/s, 30.02 fps, 30 tbr, 600 tbn, 600 tbc (default)
     Metadata:
       creation_time   : 2001-03-20 16:17:18
       handler_name    : Apple Alias Data Handler
       encoder         : Sorenson Video 3
     Stream #0:1(eng): Audio: adpcm_ima_qt (ima4 / 0x34616D69), 44100 Hz,
 mono, s16p, 176 kb/s (default)
     Metadata:
       creation_time   : 2001-03-20 16:17:18
       handler_name    : Apple Alias Data Handler
 Output #0, mp3, to 'out.mp3':
   Metadata:
     TSSE            : Lavf55.37.102
     Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, mono, s16p, 32 kb/s
 (default)
 Stream mapping:
   Stream #0:1 -> #0:0 (adpcm_ima_qt -> libmp3lame)
 Press [q] to stop, [?] for help
 Multiple frames in a packet from stream 1
 size=     171kB time=00:00:43.59 bitrate=  32.1kbits/s
 video:0kB audio:170kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.130087%
 }}}
 {{{
 $ file out.mp3
 out.mp3: Audio file with ID3 version 2.4.0, contains: MPEG ADTS, layer
 III, v1,  56 kbps, 44.1 kHz, Monaural
 }}}
 {{{
 $ ffmpeg -i out.mp3
 ffmpeg version N-62951-g3316556 Copyright (c) 2000-2014 the FFmpeg
 developers
   built on May  4 2014 09:03:53 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl --enable-libvorbis --enable-libvpx --enable-
 libmp3lame
   libavutil      52. 81.100 / 52. 81.100
   libavcodec     55. 60.103 / 55. 60.103
   libavformat    55. 37.102 / 55. 37.102
   libavdevice    55. 13.101 / 55. 13.101
   libavfilter     4.  5.100 /  4.  5.100
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 18.100 /  0. 18.100
   libpostproc    52.  3.100 / 52.  3.100
 Input #0, mp3, from 'out.mp3':
   Metadata:
     encoder         : Lavf55.37.102
   Duration: 00:00:43.62, start: 0.025057, bitrate: 32 kb/s
     Stream #0:0: Audio: mp3, 44100 Hz, mono, s16p, 32 kb/s
 At least one output file must be specified
 }}}
 Works fine if no XING header is written:
 {{{
 $ ffmpeg -i fate-suite/svq3/Vertical400kbit.sorenson3.mov -write_xing 0
 -ab 32k outnoxing.mp3
 ffmpeg version N-62951-g3316556 Copyright (c) 2000-2014 the FFmpeg
 developers
   built on May  4 2014 09:03:53 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl --enable-libvorbis --enable-libvpx --enable-
 libmp3lame
   libavutil      52. 81.100 / 52. 81.100
   libavcodec     55. 60.103 / 55. 60.103
   libavformat    55. 37.102 / 55. 37.102
   libavdevice    55. 13.101 / 55. 13.101
   libavfilter     4.  5.100 /  4.  5.100
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 18.100 /  0. 18.100
   libpostproc    52.  3.100 / 52.  3.100
 Guessed Channel Layout for  Input Stream #0.1 : mono
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fate-
 suite/svq3/Vertical400kbit.sorenson3.mov':
   Metadata:
     creation_time   : 2001-03-20 16:17:18
     title           : Vertical Online SV3 Demo
     title-eng       : Vertical Online SV3 Demo
     artist          : Logan Kelsey
     artist-eng      : Logan Kelsey
     copyright       : © Vertical Online 2001
     copyright-eng   : © Vertical Online 2001
     encoder         : Sorenson Video 3
     encoder-eng     : Sorenson Video 3
   Duration: 00:00:43.58, start: 0.000000, bitrate: 580 kb/s
     Stream #0:0(eng): Video: svq3 (SVQ3 / 0x33515653), yuvj420p(pc),
 320x240, 391 kb/s, 30.02 fps, 30 tbr, 600 tbn, 600 tbc (default)
     Metadata:
       creation_time   : 2001-03-20 16:17:18
       handler_name    : Apple Alias Data Handler
       encoder         : Sorenson Video 3
     Stream #0:1(eng): Audio: adpcm_ima_qt (ima4 / 0x34616D69), 44100 Hz,
 mono, s16p, 176 kb/s (default)
     Metadata:
       creation_time   : 2001-03-20 16:17:18
       handler_name    : Apple Alias Data Handler
 Output #0, mp3, to 'outnoxing.mp3':
   Metadata:
     encoder-eng     : Sorenson Video 3
     TIT2            : Vertical Online SV3 Demo
     title-eng       : Vertical Online SV3 Demo
     TPE1            : Logan Kelsey
     artist-eng      : Logan Kelsey
     TCOP            : © Vertical Online 2001
     copyright-eng   : © Vertical Online 2001
     TSSE            : Lavf55.37.102
     Stream #0:0(eng): Audio: mp3 (libmp3lame), 44100 Hz, mono, s16p, 32
 kb/s (default)
     Metadata:
       creation_time   : 2001-03-20 16:17:18
       handler_name    : Apple Alias Data Handler
 Stream mapping:
   Stream #0:1 -> #0:0 (adpcm_ima_qt -> libmp3lame)
 Press [q] to stop, [?] for help
 Multiple frames in a packet from stream 1
 size=     171kB time=00:00:43.59 bitrate=  32.1kbits/s
 video:0kB audio:170kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.177652%
 }}}
 {{{
 $ file outnoxing.mp3
 outnoxing.mp3: Audio file with ID3 version 2.4.0, contains: MPEG ADTS,
 layer III, v1,  32 kbps, 44.1 kHz, Monaural
 }}}

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


More information about the FFmpeg-trac mailing list