Skip to content

Instantly share code, notes, and snippets.

@IgorGee
Created December 6, 2016 10:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IgorGee/3e52ad0aa4a5c665e0e719ef05e329f1 to your computer and use it in GitHub Desktop.
Save IgorGee/3e52ad0aa4a5c665e0e719ef05e329f1 to your computer and use it in GitHub Desktop.
// note that the actual ffmpeg command is dynamic and mimics the values that were in the original source video
ffmpeg -hide_banner -r 29.97 -f image2 -s 1920x1080 -i "cccc/%d.png" -vcodec libx264 -b:v 111k -pix_fmt yuv420p videoOutNoSound.mp4
// output
Input #0, image2, from 'cccc/%d.png':
Duration: 00:00:06.41, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgb24(pc), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
[libx264 @ 0x5586cbdc95a0] using SAR=1/1
[libx264 @ 0x5586cbdc95a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x5586cbdc95a0] profile High, level 4.0
[libx264 @ 0x5586cbdc95a0] 264 - core 148 r2699 a5e06b9 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - 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=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=25 scenecut=40 intra_refresh=0 rc_lookahead=40
rc=abr mbtree=1 bitrate=111 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'cccc/videoOutNoSound.mp4':
Metadata:
encoder : Lavf57.25.100
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 111 kb/s, 29.97 fps, 11988 tbn, 29.97 tbc
Metadata:
encoder : Lavc57.24.102 libx264
Side data:
unknown side data type 10 (24 bytes)
Stream mapping:
Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
Input stream #0:0 frame changed from size:1920x1080 fmt:rgb24 to size:1920x1080 fmt:rgba
Input stream #0:0 frame changed from size:1920x1080 fmt:rgba to size:1920x1080 fmt:rgb24d= 0x
frame= 119 fps= 41 q=-1.0 Lsize= 67kB time=00:00:03.90 bitrate= 141.4kbits/s dup=0 drop=73 speed=1.34x
video:65kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.367135%
[libx264 @ 0x5586cbdc95a0] frame I:4 Avg QP:43.53 size: 8970
[libx264 @ 0x5586cbdc95a0] frame P:30 Avg QP:46.49 size: 620
[libx264 @ 0x5586cbdc95a0] frame B:85 Avg QP:47.43 size: 136
[libx264 @ 0x5586cbdc95a0] consecutive B-frames: 4.2% 0.0% 5.0% 90.8%
[libx264 @ 0x5586cbdc95a0] mb I I16..4: 11.6% 87.8% 0.5%
[libx264 @ 0x5586cbdc95a0] mb P I16..4: 1.2% 0.7% 0.0% P16..4: 3.7% 0.1% 0.2% 0.0% 0.0% skip:94.1%
[libx264 @ 0x5586cbdc95a0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 1.0% 0.0% 0.0% direct: 0.0% skip:99.0% L0:36.5% L1:63.5% BI: 0.0%
[libx264 @ 0x5586cbdc95a0] final ratefactor: 49.58
[libx264 @ 0x5586cbdc95a0] 8x8 transform intra:81.4% inter:83.7%
[libx264 @ 0x5586cbdc95a0] coded y,uvDC,uvAC intra: 7.1% 12.9% 2.0% inter: 0.0% 0.0% 0.0%
[libx264 @ 0x5586cbdc95a0] i16 v,h,dc,p: 52% 32% 7% 9%
[libx264 @ 0x5586cbdc95a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 5% 49% 2% 1% 1% 2% 1% 1%
[libx264 @ 0x5586cbdc95a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 15% 13% 12% 6% 5% 5% 4% 2%
[libx264 @ 0x5586cbdc95a0] i8c dc,h,v,p: 94% 2% 3% 1%
[libx264 @ 0x5586cbdc95a0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x5586cbdc95a0] ref P L0: 79.6% 1.4% 12.4% 6.6%
[libx264 @ 0x5586cbdc95a0] ref B L0: 91.0% 6.6% 2.4%
[libx264 @ 0x5586cbdc95a0] ref B L1: 85.9% 14.1%
[libx264 @ 0x5586cbdc95a0] kb/s:133.10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment