Skip to content

Instantly share code, notes, and snippets.

Created March 7, 2013 20:19
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 anonymous/5111465 to your computer and use it in GitHub Desktop.
Save anonymous/5111465 to your computer and use it in GitHub Desktop.
cat image-001.jpg image-002.jpg image-003.jpg image-004.jpg | ffmpeg -f image2pipe -r 1 -vcodec mjpeg -i - -vcodec libx264 t.mp4
ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
built on Nov 22 2012 17:12:14 with Apple clang version 4.1 (tags/Apple/clang-421.11.65) (based on LLVM 3.1svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/1.0 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[image2pipe @ 0x7fd4e2006600] Estimating duration from bitrate, this may be inaccurate
Input #0, image2pipe, from 'pipe:':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p, 560x366 [SAR 200:200 DAR 280:183], 1 fps, 1 tbr, 1 tbn, 1 tbc
[libx264 @ 0x7fd4e2026c00] using SAR=1/1
[libx264 @ 0x7fd4e2026c00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
[libx264 @ 0x7fd4e2026c00] profile High, level 2.2
[libx264 @ 0x7fd4e2026c00] 264 - core 125 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - 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=3 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=1 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 't.mp4':
Metadata:
encoder : Lavf54.29.104
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuvj420p, 560x366 [SAR 1:1 DAR 280:183], q=-1--1, 1 tbn, 1 tbc
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg -> libx264)
pipe:: Input/output error
frame= 4 fps=0.0 q=-1.0 Lsize= 180kB time=00:00:02.00 bitrate= 738.8kbits/s
video:180kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.446460%
[libx264 @ 0x7fd4e2026c00] frame I:1 Avg QP:19.81 size: 61735
[libx264 @ 0x7fd4e2026c00] frame P:3 Avg QP:18.69 size: 40480
[libx264 @ 0x7fd4e2026c00] mb I I16..4: 0.0% 97.6% 2.4%
[libx264 @ 0x7fd4e2026c00] mb P I16..4: 0.9% 83.5% 15.2% P16..4: 0.3% 0.0% 0.0% 0.0% 0.0% skip: 0.0%
[libx264 @ 0x7fd4e2026c00] 8x8 transform intra:87.3% inter:100.0%
[libx264 @ 0x7fd4e2026c00] coded y,uvDC,uvAC intra: 97.7% 96.7% 85.8% inter: 100.0% 100.0% 50.0%
[libx264 @ 0x7fd4e2026c00] i16 v,h,dc,p: 9% 5% 5% 82%
[libx264 @ 0x7fd4e2026c00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 21% 14% 4% 5% 5% 8% 5% 10%
[libx264 @ 0x7fd4e2026c00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 20% 8% 4% 6% 8% 11% 7% 9%
[libx264 @ 0x7fd4e2026c00] i8c dc,h,v,p: 42% 23% 26% 9%
[libx264 @ 0x7fd4e2026c00] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7fd4e2026c00] ref P L0: 21.9% 15.6% 62.5%
[libx264 @ 0x7fd4e2026c00] kb/s:366.35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment