Skip to content

Instantly share code, notes, and snippets.

@derwiki
Created September 19, 2014 03:15
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 derwiki/37a7ad6aac919879fefb to your computer and use it in GitHub Desktop.
Save derwiki/37a7ad6aac919879fefb to your computer and use it in GitHub Desktop.
Sample output of ffmpeg encoding a time lapse.
$ ffmpeg -f image2 -r 24 -pattern_type glob -i '*.JPG' -vf "scale=trunc(iw/4)*2:trunc(ih/4)*2" -c:v libx264 time-lapse.mp4
ffmpeg version 2.2.4 Copyright (c) 2000-2014 the FFmpeg developers
built on Jun 23 2014 16:31:17 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.2.4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
libavutil 52. 66.100 / 52. 66.100
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.100 / 55. 33.100
libavdevice 55. 10.100 / 55. 10.100
libavfilter 4. 2.100 / 4. 2.100
libavresample 1. 2. 0 / 1. 2. 0
libswscale 2. 5.102 / 2. 5.102
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, image2, from '*.JPG':
Duration: 00:00:24.88, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj422p(pc), 4000x3000, 25 tbr, 25 tbn, 25 tbc
[swscaler @ 0x7f8dba011a00] deprecated pixel format used, make sure you did set range correctly
No pixel format specified, yuvj422p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x7f8dba00fc00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x7f8dba00fc00] profile High 4:2:2, level 5.0, 4:2:2 8-bit
[libx264 @ 0x7f8dba00fc00] 264 - core 142 r2412 d7e6896 - 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=-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=20 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 '946-sunset-quarter-20-fps.mp4':
Metadata:
encoder : Lavf55.33.100
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj422p, 2000x1500, q=-1--1, 10240 tbn, 20 tbc
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg -> libx264)
Press [q] to stop, [?] for help
frame= 622 fps=1.8 q=-1.0 Lsize= 26832kB time=00:00:31.00 bitrate=7090.6kbits/s
video:26829kB audio:0kB subtitle:0 data:0 global headers:0kB muxing overhead 0.013093%
[libx264 @ 0x7f8dba00fc00] frame I:3 Avg QP:21.54 size:230922
[libx264 @ 0x7f8dba00fc00] frame P:619 Avg QP:23.02 size: 43262
[libx264 @ 0x7f8dba00fc00] mb I I16..4: 23.4% 50.9% 25.8%
[libx264 @ 0x7f8dba00fc00] mb P I16..4: 8.1% 7.7% 0.3% P16..4: 51.2% 7.2% 7.8% 0.0% 0.0% skip:17.7%
[libx264 @ 0x7f8dba00fc00] 8x8 transform intra:48.0% inter:76.1%
[libx264 @ 0x7f8dba00fc00] coded y,uvDC,uvAC intra: 18.5% 60.3% 1.3% inter: 25.6% 56.3% 1.3%
[libx264 @ 0x7f8dba00fc00] i16 v,h,dc,p: 8% 31% 5% 56%
[libx264 @ 0x7f8dba00fc00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 18% 40% 5% 5% 4% 6% 3% 4%
[libx264 @ 0x7f8dba00fc00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 23% 26% 5% 6% 5% 6% 3% 5%
[libx264 @ 0x7f8dba00fc00] i8c dc,h,v,p: 47% 25% 20% 8%
[libx264 @ 0x7f8dba00fc00] Weighted P-Frames: Y:52.0% UV:18.7%
[libx264 @ 0x7f8dba00fc00] ref P L0: 45.5% 14.9% 17.7% 13.9% 8.0%
[libx264 @ 0x7f8dba00fc00] kb/s:7066.71
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment