Skip to content

Instantly share code, notes, and snippets.

@dreamorosi
Last active September 1, 2020 10:28
Show Gist options
  • Save dreamorosi/08bd39c0dc5bff9025b3b490102c955b to your computer and use it in GitHub Desktop.
Save dreamorosi/08bd39c0dc5bff9025b3b490102c955b to your computer and use it in GitHub Desktop.
Reduce video size with ffmpeg

Reduce video size (H.264)

docker run --rm -v $(pwd):$(pwd) -w $(pwd) jrottenberg/ffmpeg -stats -i input.mp4 -vcodec libx264 -crf 28 output.mp4

Use libx265 (H.265) for even more reduction (not compatible with Windows 10 without additional codec).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment