Skip to content

Instantly share code, notes, and snippets.

@richjenks
Last active August 6, 2025 18:28
Show Gist options
  • Save richjenks/03fc1b3a1c8e187229d077451b75b87c to your computer and use it in GitHub Desktop.
Save richjenks/03fc1b3a1c8e187229d077451b75b87c to your computer and use it in GitHub Desktop.
Optimise video for web
ffmpeg -i INPUT.WEBM \
-c:v libx264 -preset slow -crf 23 -profile:v high -level 4.1 \
-g 60 -keyint_min 60 \
-pix_fmt yuv420p -movflags +faststart \
-c:a aac -b:a 128k -ac 2 -ar 44100 \
-vsync cfr \
OUTPUT.MP4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment