Skip to content

Instantly share code, notes, and snippets.

@trolleway
Created November 14, 2019 00:15
Show Gist options
  • Save trolleway/a61803f34b5fce072621548cd01b408a to your computer and use it in GitHub Desktop.
Save trolleway/a61803f34b5fce072621548cd01b408a to your computer and use it in GitHub Desktop.
video interpolate framerate to 60fps, resolution to 720p, convert to mp4 for twitter in ffmpeg. can be run on Windows or Bash
ffmpeg -i MVI_1226.avi -y -filter:v "minterpolate='mi_mode=mci:mc_mode=aobmc:vsbmc=1:fps=60'" output_tmp.mp4
ffmpeg -i output_tmp.mp4 -vf scale=-1:720 -vcodec libx264 -pix_fmt yuv420p -x264-params ref=4 -tune film -acodec aac -ac 2 -ar 24000 -ab 80k output_118.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment