Skip to content

Instantly share code, notes, and snippets.

@kpq
Last active December 19, 2015 19:58
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 kpq/6009951 to your computer and use it in GitHub Desktop.
Save kpq/6009951 to your computer and use it in GitHub Desktop.
video encoding messes
ASPECTRATIO=1.777777777777 # 16x9
WIDTH=970
ffmpeg -i jackalope.mov -vcodec libx264 -acodec libfaac -pix_fmt yuv420p -b:v 1000k -b:a 128k -threads 0 -vf scale=$WIDTH':trunc('$WIDTH'/'$ASPECTRATIO'/2)*2' promo.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment