[FFmpeg-user] Which videoc codec gives best compression for screen recording?

Tobias Rapp t.rapp at noa-audio.com
Thu Nov 13 12:34:59 CET 2014


On 13.11.2014 12:10, Tobias Rapp wrote:
> On 13.11.2014 11:44, Carl Eugen Hoyos wrote:
>> I don't think the container has any relevance for the
>> file size and the best encoders may not work with mov.
>
> I meant a x264 profile but now I realize that the binary I use doesn't
> include this codec. Will get an updated one.

When testing with a recent version of FFmpeg with x264 included the 
output file size decreases significantly (see attached log).

Sorry for the noise.

Tobias
-------------- next part --------------
ffmpeg version N-67586-g3e1ac10 Copyright (c) 2000-2014 the FFmpeg developers
  built on Nov 12 2014 22:10:14 with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      54. 11.100 / 54. 11.100
  libavcodec     56. 12.100 / 56. 12.100
  libavformat    56. 12.103 / 56. 12.103
  libavdevice    56.  2.100 / 56.  2.100
  libavfilter     5.  2.103 /  5.  2.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
[gdigrab @ 0000000002c4cc40] Capturing whole desktop as 1920x1080x32 at (0,0)
Input #0, gdigrab, from 'desktop':
  Duration: N/A, start: 1415878114.002614, bitrate: 398133 kb/s
    Stream #0:0: Video: bmp, bgra, 1920x1080, 398133 kb/s, 6 tbr, 1000k tbn, 6 tbc
No pixel format specified, yuv444p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0000000002bec3c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0000000002bec3c0] profile High 4:4:4 Predictive, level 4.0, 4:4:4 8-bit
[libx264 @ 0000000002bec3c0] 264 - core 142 r2479 dd79a61 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - 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=4 threads=6 lookahead_threads=1 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=6 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'desktop-rec3.mp4':
  Metadata:
    encoder         : Lavf56.12.103
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p, 1920x1080, q=-1--1, 6 fps, 12288 tbn, 6 tbc
    Metadata:
      encoder         : Lavc56.12.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (bmp (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame=    4 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A    
frame=    7 fps=6.6 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A    
frame=   10 fps=6.4 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A    
frame=   13 fps=6.3 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A    
frame=   16 fps=6.2 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A    
frame=   19 fps=6.2 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A    
frame=   22 fps=6.2 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A    
frame=   25 fps=6.1 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A    
frame=   28 fps=6.1 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A    
frame=   31 fps=6.1 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A    
frame=   34 fps=6.1 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A    
frame=   37 fps=6.1 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A    
frame=   40 fps=6.1 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A    
frame=   43 fps=6.1 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A    
frame=   46 fps=6.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A    
frame=   49 fps=6.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A    
frame=   52 fps=6.0 q=23.0 size=     270kB time=00:00:00.00 bitrate=N/A    
frame=   55 fps=6.0 q=23.0 size=     271kB time=00:00:00.50 bitrate=4445.4kbits/s    
frame=   59 fps=6.1 q=23.0 size=     277kB time=00:00:01.16 bitrate=1941.6kbits/s    
frame=   60 fps=5.6 q=-1.0 Lsize=     291kB time=00:00:09.66 bitrate= 246.6kbits/s    

video:290kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.525524%
[libx264 @ 0000000002bec3c0] frame I:1     Avg QP:16.01  size:265423
[libx264 @ 0000000002bec3c0] frame P:15    Avg QP:18.35  size:  1209
[libx264 @ 0000000002bec3c0] frame B:44    Avg QP:24.27  size:   278
[libx264 @ 0000000002bec3c0] consecutive B-frames:  1.7%  0.0%  5.0% 93.3%
[libx264 @ 0000000002bec3c0] mb I  I16..4: 27.7% 34.3% 38.0%
[libx264 @ 0000000002bec3c0] mb P  I16..4:  0.2%  0.0%  0.0%  P16..4:  1.4%  0.1%  0.0%  0.0%  0.0%    skip:98.2%
[libx264 @ 0000000002bec3c0] mb B  I16..4:  0.1%  0.2%  0.0%  B16..8:  1.6%  0.0%  0.0%  direct: 0.0%  skip:98.0%  L0:42.7% L1:57.3% BI: 0.0%
[libx264 @ 0000000002bec3c0] 8x8 transform intra:37.4% inter:33.4%
[libx264 @ 0000000002bec3c0] coded y,u,v intra: 23.8% 5.3% 5.1% inter: 0.1% 0.0% 0.0%
[libx264 @ 0000000002bec3c0] i16 v,h,dc,p: 38% 62%  0%  0%
[libx264 @ 0000000002bec3c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 57%  9% 33%  0%  0%  0%  0%  0%  0%
[libx264 @ 0000000002bec3c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 39% 34% 12%  2%  2%  2%  3%  2%  3%
[libx264 @ 0000000002bec3c0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0000000002bec3c0] ref P L0: 67.0%  0.7% 28.5%  3.8%
[libx264 @ 0000000002bec3c0] ref B L0: 53.0% 44.5%  2.5%
[libx264 @ 0000000002bec3c0] ref B L1: 94.7%  5.3%
[libx264 @ 0000000002bec3c0] kb/s:236.62


More information about the ffmpeg-user mailing list