Skip to content

Instantly share code, notes, and snippets.

Avatar

Kevin Wu wuziq

View GitHub Profile
@wuziq
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
wuziq / encode.sh
Created Sep 2, 2018 — forked from mikoim/README.md
YouTube recommended encoding settings on ffmpeg (+ libx264)
View encode.sh
#/bin/sh
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
wuziq / nv21-convert.sh
Created Aug 23, 2017 — forked from neilpa/nv21-convert.sh
Use ffmpeg to convert raw Android camera frame buffers
View nv21-convert.sh
# Assuming the raw byte[] buffer from onPreviewFrame was written at $1
INPUT=$1
# Need preview size since we dumped to a raw file w/out header info
SIZE=1280x960
# Converting to JPEG
ffmpeg -f image2 -vcodec rawvideo -s $SIZE -pix_fmt nv21 -i $INPUT out.jpeg
# Converting to PNG
@wuziq
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.