Last active
August 6, 2025 18:28
-
-
Save richjenks/03fc1b3a1c8e187229d077451b75b87c to your computer and use it in GitHub Desktop.
Optimise video for web
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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