Code:
$ time ffmpeg -i IronMan.mkv -acodec libfaac -ab 192k -vcodec libx264 -vpre slow -crf 20 -threads 0 output.mp4
FFmpeg version SVN-r22368, Copyright (c) 2000-2010 the FFmpeg developers
built on Mar 8 2010 16:32:17 with gcc 4.4.3
configuration: --prefix=/usr/local --enable-nonfree --enable-gpl --enable-version3 --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libx264 --enable-pthreads --enable-x11grab
libavutil 50.11. 0 / 50.11. 0
libavcodec 52.58. 0 / 52.58. 0
libavformat 52.55. 0 / 52.55. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.10. 0 / 0.10. 0
[matroska @ 0x13623c0]Estimating duration from bitrate, this may be inaccurate
Seems stream 0 codec frame rate differs from container frame rate: 47.95 (10000000/208541) -> 24.00 (24/1)
Input #0, matroska, from 'IronMan.mkv':
Duration: 00:01:48.50, start: 0.000000, bitrate: N/A
Stream #0.0: Video: h264, yuv420p, 1280x720, PAR 115:87 DAR 1840:783, 24.39 fps, 24 tbr, 1k tbn, 47.95 tbc
Stream #0.1: Audio: aac, 48000 Hz, stereo, s16
[libx264 @ 0x1411820]using SAR=115/87
[libx264 @ 0x1411820]using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
[libx264 @ 0x1411820]profile High, level 3.1
Output #0, mp4, to 'output.mp4':
Metadata:
encoder : Lavf52.55.0
Stream #0.0: Video: libx264, yuv420p, 1280x720 [PAR 115:87 DAR 1840:783], q=10-51, 200 kb/s, 24 tbn, 24 tbc
Stream #0.1: Audio: aac, 48000 Hz, stereo, s16, 192 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 2599 fps= 17 q=-1.0 Lsize= 73048kB time=108.33 bitrate=5523.8kbits/s dup=0 drop=1
video:70777kB audio:2191kB global headers:0kB muxing overhead 0.109766%
[libx264 @ 0x1411820]frame I:44 Avg QP:18.56 size:106649
[libx264 @ 0x1411820]frame P:1049 Avg QP:21.70 size: 34854
[libx264 @ 0x1411820]frame B:1506 Avg QP:23.79 size: 20731
[libx264 @ 0x1411820]consecutive B-frames: 11.3% 21.1% 27.8% 39.8%
[libx264 @ 0x1411820]mb I I16..4: 5.2% 81.6% 13.2%
[libx264 @ 0x1411820]mb P I16..4: 8.6% 41.4% 2.8% P16..4: 28.1% 9.9% 5.2% 0.0% 0.0% skip: 4.0%
[libx264 @ 0x1411820]mb B I16..4: 1.8% 14.0% 1.3% B16..8: 44.9% 2.9% 2.7% direct: 6.7% skip:25.7% L0:46.2% L1:45.5% BI: 8.3%
[libx264 @ 0x1411820]8x8 transform intra:79.6% inter:77.0%
[libx264 @ 0x1411820]direct mvs spatial:99.5% temporal:0.5%
[libx264 @ 0x1411820]coded y,uvDC,uvAC intra: 70.0% 83.9% 36.7% inter: 31.9% 32.0% 2.2%
[libx264 @ 0x1411820]i16 v,h,dc,p: 25% 13% 8% 53%
[libx264 @ 0x1411820]i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 7% 7% 9% 14% 16% 12% 13% 11%
[libx264 @ 0x1411820]i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 7% 6% 9% 15% 16% 12% 11% 10%
[libx264 @ 0x1411820]Weighted P-Frames: Y:1.3%
[libx264 @ 0x1411820]ref P L0: 59.1% 17.1% 9.9% 7.4% 5.1% 1.4% 0.0%
[libx264 @ 0x1411820]ref B L0: 77.4% 15.1% 6.1% 1.4%
[libx264 @ 0x1411820]ref B L1: 95.1% 4.9%
[libx264 @ 0x1411820]kb/s:5354.04
real 2m37.882s
user 17m59.996s
sys 0m26.325s
With the above FFmpeg command using the
Bookmarks