Skip to content

Instantly share code, notes, and snippets.

@thezakman
Forked from lukehedger/ffmpeg-compress-mp4
Last active June 30, 2018 03:31
Show Gist options
  • Select an option

  • Save thezakman/cb87d57aaa32878e83ead114d1c9f31f to your computer and use it in GitHub Desktop.

Select an option

Save thezakman/cb87d57aaa32878e83ead114d1c9f31f to your computer and use it in GitHub Desktop.
Compress mp4 using FFMPEG
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp3 output.mp4
$ ffmpeg -i input.mp4 -vcodec h264 -acodec aac output.mp4
$ ffmpeg -i input.mp4 -vcodec libx264 -crf 20 output.mp4
$ ffmpeg -i input.mp4 -b 1000000 output.mp4
$ for %%a in ("*.mp4") do ffmpeg -i "%%a" -vcodec h264 -b:v 700k -acodec mp3 "FB%%a~na.mp4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment