[FFmpeg-user] Converting video + stereo to video + mono

Jason Heeris jason.heeris at gmail.com
Sat Apr 28 12:47:38 CEST 2012


On 28/04/12 18:34, Carl Eugen Hoyos wrote:
> Sorry, my answer should have been:
> "Complete, uncut console output missing."

Ah, understood now :) Here it is:

$ ffmpeg -i Input.avi -vcodec libx264 -crf 24 -acodec aac -ac 1 -strict
experimental Output.mp4 > ffmpeg.txt 2>&1

ffmpeg version 0.10.2-4:0.10.2-0ubuntu0jon1~oneiric1 Copyright (c)
2000-2012 the FFmpeg developers
  built on Mar 18 2012 11:07:55 with gcc 4.6.1
  configuration: --extra-version='4:0.10.2-0ubuntu0jon1~oneiric1'
--arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu
--disable-stripping --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-libfreetype --enable-vaapi
--enable-frei0r --enable-gpl --enable-postproc --enable-x11grab
--enable-librtmp --enable-libvo-aacenc --enable-version3
--enable-libvo-amrwbenc --enable-version3 --enable-libdc1394
--shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
  avutil      configuration: --extra-version='4:0.10.2.0jon1~oneiric1'
--arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu
--disable-stripping --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-libfreetype --enable-vaapi
--enable-frei0r --enable-libopenjpeg --enable-gpl --enable-postproc
--enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp
--enable-libx264 --enable-libopencore-amrnb --enable-version3
--enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc
--enable-version3 --enable-libvo-amrwbenc --enable-version3
--enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared
--disable-static
  avcodec     configuration: --extra-version='4:0.10.2.0jon1~oneiric1'
--arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu
--disable-stripping --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-libfreetype --enable-vaapi
--enable-frei0r --enable-libopenjpeg --enable-gpl --enable-postproc
--enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp
--enable-libx264 --enable-libopencore-amrnb --enable-version3
--enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc
--enable-version3 --enable-libvo-amrwbenc --enable-version3
--enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared
--disable-static
  avformat    configuration: --extra-version='4:0.10.2.0jon1~oneiric1'
--arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu
--disable-stripping --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-libfreetype --enable-vaapi
--enable-frei0r --enable-libopenjpeg --enable-gpl --enable-postproc
--enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp
--enable-libx264 --enable-libopencore-amrnb --enable-version3
--enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc
--enable-version3 --enable-libvo-amrwbenc --enable-version3
--enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared
--disable-static
  avdevice    configuration: --extra-version='4:0.10.2.0jon1~oneiric1'
--arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu
--disable-stripping --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-libfreetype --enable-vaapi
--enable-frei0r --enable-libopenjpeg --enable-gpl --enable-postproc
--enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp
--enable-libx264 --enable-libopencore-amrnb --enable-version3
--enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc
--enable-version3 --enable-libvo-amrwbenc --enable-version3
--enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared
--disable-static
  avfilter    configuration: --extra-version='4:0.10.2.0jon1~oneiric1'
--arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu
--disable-stripping --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-libfreetype --enable-vaapi
--enable-frei0r --enable-libopenjpeg --enable-gpl --enable-postproc
--enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp
--enable-libx264 --enable-libopencore-amrnb --enable-version3
--enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc
--enable-version3 --enable-libvo-amrwbenc --enable-version3
--enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared
--disable-static
  swscale     configuration: --extra-version='4:0.10.2.0jon1~oneiric1'
--arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu
--disable-stripping --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-libfreetype --enable-vaapi
--enable-frei0r --enable-libopenjpeg --enable-gpl --enable-postproc
--enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp
--enable-libx264 --enable-libopencore-amrnb --enable-version3
--enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc
--enable-version3 --enable-libvo-amrwbenc --enable-version3
--enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared
--disable-static
  swresample  configuration: --extra-version='4:0.10.2.0jon1~oneiric1'
--arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu
--disable-stripping --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-libfreetype --enable-vaapi
--enable-frei0r --enable-libopenjpeg --enable-gpl --enable-postproc
--enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp
--enable-libx264 --enable-libopencore-amrnb --enable-version3
--enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc
--enable-version3 --enable-libvo-amrwbenc --enable-version3
--enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared
--disable-static
  postproc    configuration: --extra-version='4:0.10.2.0jon1~oneiric1'
--arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu
--disable-stripping --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-libfreetype --enable-vaapi
--enable-frei0r --enable-libopenjpeg --enable-gpl --enable-postproc
--enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp
--enable-libx264 --enable-libopencore-amrnb --enable-version3
--enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc
--enable-version3 --enable-libvo-amrwbenc --enable-version3
--enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared
--disable-static
  libavutil      51. 35.100 / 51. 35.100
  libavcodec     53. 61.100 / 53. 61.100
  libavformat    53. 32.100 / 53. 32.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
[mpeg4 @ 0x1e19a40] Invalid and inefficient vfw-avi packed B frames detected
Input #0, avi, from 'Input.avi':
  Duration: 00:00:52.13, start: 0.000000, bitrate: 1153 kb/s
    Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID /
0x44495658), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 23.98 tbr, 23.98 tbn,
24.03 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo,
s16, 128 kb/s
[buffer @ 0x1e11da0] w:640 h:480 pixfmt:yuv420p tb:1/1000000 sar:1/1
sws_param:
Incompatible sample format 's16' for codec 'aac', auto-selecting format
'flt'
[libx264 @ 0x1e4acc0] using SAR=1/1
[libx264 @ 0x1e4acc0] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.2
[libx264 @ 0x1e4acc0] profile High, level 3.0
[libx264 @ 0x1e4acc0] 264 - core 120 r2151 a3f4407 - H.264/MPEG-4 AVC
codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html -
options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7
psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1
8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2
threads=12 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1
weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23 scenecut=40
intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=24.0 qcomp=0.60
qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'Output.mp4':
  Metadata:
    encoder         : Lavf53.32.100
    Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv420p, 640x480
[SAR 1:1 DAR 4:3], q=-1--1, 250k tbn, 23.98 tbc
    Stream #0:1: Audio: aac (@[0][0][0] / 0x0040), 44100 Hz, 1 channels,
flt, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg4 -> libx264)
  Stream #0:1 -> #0:1 (mp3 -> aac)
Press [q] to stop, [?] for help
[mpeg4 @ 0x27bb7c0] Invalid and inefficient vfw-avi packed B frames detected
frame=   80 fps=  0 q=29.0 size=     118kB time=00:00:00.91
bitrate=1055.4kbits/s dup=1 drop=0    frame=  155 fps=154 q=29.0 size=
   392kB time=00:00:04.04 bitrate= 794.7kbits/s dup=1 drop=0    frame=
237 fps=157 q=29.0 size=     688kB time=00:00:07.46 bitrate=
754.8kbits/s dup=1 drop=0    frame=  302 fps=150 q=29.0 size=     960kB
time=00:00:10.17 bitrate= 773.2kbits/s dup=1 drop=0    frame=  368
fps=146 q=29.0 size=    1238kB time=00:00:12.92 bitrate= 784.5kbits/s
dup=1 drop=0    frame=  440 fps=146 q=29.0 size=    1496kB
time=00:00:15.93 bitrate= 769.3kbits/s dup=1 drop=0    frame=  513
fps=146 q=29.0 size=    1736kB time=00:00:18.97 bitrate= 749.5kbits/s
dup=1 drop=0    frame=  610 fps=152 q=29.0 size=    2017kB
time=00:00:23.02 bitrate= 717.6kbits/s dup=1 drop=0    frame=  725
fps=160 q=29.0 size=    2260kB time=00:00:27.81 bitrate= 665.4kbits/s
dup=1 drop=0    frame=  836 fps=167 q=29.0 size=    2534kB
time=00:00:32.44 bitrate= 639.8kbits/s dup=1 drop=0    frame=  913
fps=165 q=29.0 size=    2771kB time=00:00:35.66 bitrate= 636.5kbits/s
dup=1 drop=0    frame= 1000 fps=166 q=29.0 size=    3137kB
time=00:00:39.28 bitrate= 654.0kbits/s dup=1 drop=0    frame= 1077
fps=165 q=29.0 size=    3347kB time=00:00:42.50 bitrate= 645.0kbits/s
dup=1 drop=0    frame= 1185 fps=168 q=29.0 size=    3648kB
time=00:00:47.00 bitrate= 635.8kbits/s dup=1 drop=0    frame= 1251
fps=165 q=-1.0 Lsize=    4015kB time=00:00:52.09 bitrate= 631.3kbits/s
dup=1 drop=0
video:3210kB audio:764kB global headers:0kB muxing overhead 1.016379%
[libx264 @ 0x1e4acc0] frame I:11    Avg QP:19.55  size: 37761
[libx264 @ 0x1e4acc0] frame P:396   Avg QP:22.66  size:  6054
[libx264 @ 0x1e4acc0] frame B:844   Avg QP:28.22  size:   561
[libx264 @ 0x1e4acc0] consecutive B-frames:  4.6%  8.5% 24.0% 63.0%
[libx264 @ 0x1e4acc0] mb I  I16..4:  5.9% 79.7% 14.4%
[libx264 @ 0x1e4acc0] mb P  I16..4:  0.5%  1.3%  0.6%  P16..4: 40.9%
12.8%  9.9%  0.0%  0.0%    skip:34.0%
[libx264 @ 0x1e4acc0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 27.6%
0.8%  0.1%  direct: 0.3%  skip:71.1%  L0:34.4% L1:62.3% BI: 3.3%
[libx264 @ 0x1e4acc0] 8x8 transform intra:67.1% inter:75.0%
[libx264 @ 0x1e4acc0] coded y,uvDC,uvAC intra: 71.5% 83.6% 50.2% inter:
8.2% 13.5% 0.9%
[libx264 @ 0x1e4acc0] i16 v,h,dc,p: 30% 42% 17% 11%
[libx264 @ 0x1e4acc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 24% 25%  4%  6%
 6%  7%  5%  6%
[libx264 @ 0x1e4acc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 21% 15%  5%  8%
 8%  8%  7%  6%
[libx264 @ 0x1e4acc0] i8c dc,h,v,p: 41% 28% 23%  8%
[libx264 @ 0x1e4acc0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x1e4acc0] ref P L0: 64.0% 11.1% 20.5%  4.4%
[libx264 @ 0x1e4acc0] ref B L0: 86.5% 12.1%  1.4%
[libx264 @ 0x1e4acc0] ref B L1: 92.9%  7.1%
[libx264 @ 0x1e4acc0] kb/s:503.86

— Jason


More information about the ffmpeg-user mailing list