Skip to content

Instantly share code, notes, and snippets.


Kevin Wu wuziq

View GitHub Profile
wuziq / building transmission
Created Sep 21, 2019
how to build transmission with openssl
View building transmission
brew install/upgrade openssl
homebrew tells you where it's installed and what LD/CPP flags to use. for me it was:
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
seems that transmission is also looking for OPENSSL_ROOT_DIR, so:
export OPENSSL_ROOT_DIR=/usr/local/opt/openssl
wuziq /
Created Sep 2, 2018 — forked from mikoim/
YouTube recommended encoding settings on ffmpeg (+ libx264)
ffmpeg -i input -c:v libx264 -preset slow -profile:v high -crf 18 -coder 1 -pix_fmt yuv420p -movflags +faststart -g 30 -bf 2 -c:a aac -b:a 384k -profile:a aac_low output
wuziq /
Created Aug 23, 2017 — forked from neilpa/
Use ffmpeg to convert raw Android camera frame buffers
# Assuming the raw byte[] buffer from onPreviewFrame was written at $1
# Need preview size since we dumped to a raw file w/out header info
# Converting to JPEG
ffmpeg -f image2 -vcodec rawvideo -s $SIZE -pix_fmt nv21 -i $INPUT out.jpeg
# Converting to PNG
wuziq / .vimrc
Last active Aug 29, 2015 — forked from rocarvaj/.vimrc
View .vimrc
" VIM Configuration File
" Description: Optimized for C/C++ development, but useful also for other things.
" Author: Gerhard Gappmeier
" set UTF-8 encoding
set enc=utf-8
set fenc=utf-8
set termencoding=utf-8
" disable vi compatibility (emulation of old bugs)
You can’t perform that action at this time.