Compress mp4 video for the web

Compressing video online is essential to improve the speed of your website. We've come across 2 tools that'll help compress mp4 files.

Firstly, HandBrake - a free Mac app. You simply drag your mp4 file onto the interface and select the output file name. There are lots of settings, but you can usually leave these as they are.

Secondly is a command line tool called ffmpeg. Using the commands below, ffmpeg allows you to easily decrease the file size by 40%.

brew install ffmpeg

ffmpeg -i input.mp4 -c:v libx264 -crf 24 -b:v 1M -c:a aac output.mp4

Explore our projects