FFmpeg · Video

Compress a video

Re-encode with H.264. Lower CRF means higher quality and a larger file; 23 is the default and 28 is smaller.

ffmpeg -i input.mp4 -c:v libx264 -crf 28 -preset medium -c:a aac -b:a 128k output.mp4

Official FFmpeg documentation

More video commands

All video commands · FFmpeg cheatsheet

Was this page helpful?