[FFmpeg-trac] #4494(undetermined:new): Cannot convert MPEG audio to an MP3 file

FFmpeg trac at avcodec.org
Sat Apr 18 16:09:52 CEST 2015


#4494: Cannot convert MPEG audio to an MP3 file
--------------------------------------+----------------------------------
             Reporter:  birdie        |                     Type:  defect
               Status:  new           |                 Priority:  normal
            Component:  undetermined  |                  Version:  2.6.1
             Keywords:                |               Blocked By:
             Blocking:                |  Reproduced by developer:  0
Analyzed by developer:  0             |
--------------------------------------+----------------------------------
 Summary of the bug:
 How to reproduce:
 {{{
 $ ffmpeg -i *mpg -c:a copy out.mp3
 ffmpeg version 2.6.2 Copyright (c) 2000-2015 the FFmpeg developers

 Input #0, mpeg, from 'out.mpg':
   Duration: 00:03:49.73, start: 0.500000, bitrate: 226 kb/s
     Stream #0:0[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 224 kb/s
 [mp3 @ 0x8d65820] Invalid audio stream. Exactly one MP3 audio stream is
 required.
 Output #0, mp3, to 'out.mp3':
   Metadata:
     encoder         : Lavf56.25.101
     Stream #0:0: Audio: mp2, 48000 Hz, stereo, 224 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
 Could not write header for output file #0 (incorrect codec parameters ?):
 Invalid argument
 }}}

 At the same time mplayer works just fine:
 {{{
 $ mplayer -dumpaudio *.mpg -dumpfile outputfile.mp3
 MPlayer SVN-r37381-4.7.4 (C) 2000-2015 MPlayer Team
 210 audio & 441 video codecs

 Playing out.mpg.
 libavformat version 56.25.101 (internal)
 MPEG-PS file format detected.
 dump: 6433728 bytes written to 'outputfile.mp3'.
 Core dumped ;)

 Exiting... (End of file)
 }}}

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


More information about the FFmpeg-trac mailing list