Skip to content

Instantly share code, notes, and snippets.

@AlexChesser
Created January 13, 2016 15:01
Show Gist options
  • Save AlexChesser/e3787ef80fd3132bd5b3 to your computer and use it in GitHub Desktop.
Save AlexChesser/e3787ef80fd3132bd5b3 to your computer and use it in GitHub Desktop.
Compression command line:
ECHO This will reduce video size if you have ffmpeg installed
ECHO usage: compress.cmd <filename>
SET infile_quoted=%1
SET infile=%infile_quoted:"=%
ffmpeg.exe -y -i "%infile%" -crf 20.0 -vcodec libx264 -filter:v scale=960:540 -preset slow -acodec libvo_aacenc -ar 32000 -b:v 650k -b:a 128k -coder 1 -flags +loop -cmp chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -threads 0 "compressed_%infile%"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment