Skip to content

Instantly share code, notes, and snippets.

@descico
Created December 4, 2012 17:30
Show Gist options
  • Save descico/4206590 to your computer and use it in GitHub Desktop.
Save descico/4206590 to your computer and use it in GitHub Desktop.
ffmpeg option
exec "${FFMPEG_PATH}" -y -i "${INPUT}" \
-acodec copy -absf aac_adtstoasc \
-vcodec libx264 \
-level 41 \
-threads 4 \
-8x8dct 1 \
-coder 1 \
-qmax 51 -qdiff 8 -qmin 16 -qcomp 0.60 \
-me_method umh -me_range 32 -trellis 2 \
-refs 3 -subq 5 \
-flags +loop \
-direct-pred 3 \
-mbtree 0 \
-weightb 1 \
-aq-mode 1 \
-aq-strength 0.5 \
-g 250 \
-keyint_min 25 \
-bf 3 -b_strategy 1 \
-s ${SIZE} \
-f mp4 "${OUTPUT}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment