[FFmpeg-trac] #4042(ffmpeg:new): ffmpeg is not able to convert mp2 audio

FFmpeg trac at avcodec.org
Sun Oct 19 00:37:14 CEST 2014


#4042: ffmpeg is not able to convert mp2 audio
--------------------------------+-------------------------------------
             Reporter:  f_rush  |                     Type:  defect
               Status:  new     |                 Priority:  important
            Component:  ffmpeg  |                  Version:  2.4.2
             Keywords:          |               Blocked By:
             Blocking:          |  Reproduced by developer:  0
Analyzed by developer:  0       |
--------------------------------+-------------------------------------
 Summary of the bug:
 ffmpeg is not able to convert mp2 audio track on huge files ( 60-80G ).
 works on 2.4.2, but also was successfully reproduced on 1.0.10.

 How to reproduce:
 {{{
 % ffmpeg -i video2.mpg -t 100 -c:a libfaac -map 0:1 output.m4a
 ffmpeg version 2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
   built on Oct  5 2014 09:31:05 with gcc 4.9.1 (Debian 4.9.1-16)
   configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector-
 strong -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro'
 --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl
 --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac
 --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm
 --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb
 --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping
 --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger
 --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter
 --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb
 --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64
 -linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-
 gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus
 --enable-fontconfig --enable-libpulse --disable-mips32r2 --disable-
 mipsdspr1 --disable-mipsdspr2 --enable-libvidstab --enable-libzvbi
 --enable-avresample --disable-htmlpages --disable-podpages --enable-
 libiec61883 --enable-libfdk-aac --enable-vaapi --enable-libx265 --enable-
 libdc1394 --disable-altivec --shlibdir=/usr/lib/x86_64-linux-gnu
   libavutil      54.  7.100 / 54.  7.100
   libavcodec     56.  1.100 / 56.  1.100
   libavformat    56.  4.101 / 56.  4.101
   libavdevice    56.  0.100 / 56.  0.100
   libavfilter     5.  1.100 /  5.  1.100
   libavresample   2.  1.  0 /  2.  1.  0
   libswscale      3.  0.100 /  3.  0.100
   libswresample   1.  1.100 /  1.  1.100
   libpostproc    53.  0.100 / 53.  0.100
 }}}
 After execution I get about 5-6kB audio file with no sound.

 Initially I tried to convert video file from raw to x264, video conversion
 finishes without any issues, though there is no sounds, even audio track
 in file is present. Then I tried to convert just audio without video and
 it is the same. It doesn't matter to which audio format I want to convert.
 Even simple copy doesn't work.

 Here is full output for copy:

 {{{
  $ ffmpeg -i video2.mpg -t 100 -c:a copy -map 0:1 output.aac
 ffmpeg version 2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
   built on Oct  5 2014 09:31:05 with gcc 4.9.1 (Debian 4.9.1-16)
   configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector-
 strong -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro'
 --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl
 --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac
 --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm
 --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb
 --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping
 --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger
 --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter
 --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb
 --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64
 -linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-
 gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus
 --enable-fontconfig --enable-libpulse --disable-mips32r2 --disable-
 mipsdspr1 --disable-mipsdspr2 --enable-libvidstab --enable-libzvbi
 --enable-avresample --disable-htmlpages --disable-podpages --enable-
 libiec61883 --enable-libfdk-aac --enable-vaapi --enable-libx265 --enable-
 libdc1394 --disable-altivec --shlibdir=/usr/lib/x86_64-linux-gnu
   libavutil      54.  7.100 / 54.  7.100
   libavcodec     56.  1.100 / 56.  1.100
   libavformat    56.  4.101 / 56.  4.101
   libavdevice    56.  0.100 / 56.  0.100
   libavfilter     5.  1.100 /  5.  1.100
   libavresample   2.  1.  0 /  2.  1.  0
   libswscale      3.  0.100 /  3.  0.100
   libswresample   1.  1.100 /  1.  1.100
   libpostproc    53.  0.100 / 53.  0.100
 [avi @ 0xfeffa0] non-interleaved AVI
 Input #0, avi, from 'video2.mpg':
   Metadata:
     encoder         : MEncoder SVN-r37289
   Duration: 01:37:08.64, start: 0.000000, bitrate: 123100 kb/s
     Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480,
 122869 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
     Stream #0:1: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16p,
 224 kb/s
 File 'output.aac' already exists. Overwrite ? [y/N] y
 Output #0, adts, to 'output.aac':
   Metadata:
     encoder         : Lavf56.4.101
     Stream #0:0: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, 224
 kb/s
 Stream mapping:
   Stream #0:1 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 size=       5kB time=00:01:36.79 bitrate=   0.4kbits/s
 video:0kB audio:5kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.000000%
 }}}

 Source file can be played with mplayer without any issues. I tried to get
 small file (about 150M) with same codecs (the file is produced with
 mencoder and dump the stream from /dev/video0 ) and it can convert it
 fine. Looks like only big files are affected. So it's impossible to attach
 80G video to the ticket.

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


More information about the FFmpeg-trac mailing list