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

FFmpeg trac at avcodec.org
Sun Oct 19 09:57:38 CEST 2014


#4042: ffmpeg is not able to convert mp2 audio
--------------------------------+----------------------------------------
             Reporter:  f_rush  |                    Owner:
                 Type:  defect  |                   Status:  closed
             Priority:  normal  |                Component:  undetermined
              Version:  2.4.2   |               Resolution:  invalid
             Keywords:          |               Blocked By:
             Blocking:          |  Reproduced by developer:  0
Analyzed by developer:  0       |
--------------------------------+----------------------------------------
Changes (by f_rush):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 ok, I see now. the problem is that ffmpeg output calculates incorrect time
 ranges while conversion is ongoing.
 if I'm running the full conversion it works fine and output file is good
 enough for me.

 {{{
  $ time ffmpeg -i abi.mpg abi.mp2
 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 @ 0x1390aa0] non-interleaved AVI
 Input #0, avi, from 'abi.mpg':
   Metadata:
     encoder         : MEncoder SVN-r37289
   Duration: 01:32:15.60, start: 0.000000, bitrate: 123104 kb/s
     Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 25
 tbr, 25 tbn, 25 tbc
     Stream #0:1: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16,
 224 kb/s
 Output #0, mp2, to 'abi.mp2':
   Metadata:
     encoder         : Lavf54.29.104
     Stream #0:0: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
 Stream mapping:
   Stream #0:1 -> #0:0 (mp2 -> mp2)
 Press [q] to stop, [?] for help
 error parsing debug value40:12.30 bitrate=   0.2kbits/s
 debug=0
 size=   86493kB time=1033:18:10.95 bitrate=   0.2kbits/s
 video:0kB audio:86493kB subtitle:0 global headers:0kB muxing overhead
 0.000000%

 real    26m8.850s
 user    2m46.876s
 sys     3m36.180s
 }}}

 and outputed file duration also exceeds source file:

 {{{
 Input #0, mp3, from 'abi.mp2':
   Duration: 01:34:06.88, start: 0.000000, bitrate: 125 kb/s
     Stream #0:0: Audio: mp2, 48000 Hz, stereo, s16p, 125 kb/s
 }}}

 You can see 01:34:06.88 while original file was 01:32:15.60.

 So I guess I can close ticket as invalid. Thank you for you help cehoyos.

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


More information about the FFmpeg-trac mailing list