Created
October 26, 2017 23:46
-
-
Save Grsmto/e529f7708ac0db1c1df2b2f1be24f81a to your computer and use it in GitHub Desktop.
Encode video to webm
This file contains 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 video.mp4 -vf scale=1280x720 -b:v 1024k \ | |
-minrate 512k -maxrate 1485k -tile-columns 2 -g 240 -threads 8 \ | |
-quality good -crf 33 -c:v libvpx-vp9 \ | |
-pass 1 -speed 4 -strict -2 video.webm && \ | |
ffmpeg -i video.mp4 -vf scale=1280x720 -b:v 1024k \ | |
-minrate 512k -maxrate 1485k -tile-columns 2 -g 240 -threads 8 \ | |
-quality good -crf 33 -c:v libvpx-vp9 \ | |
-pass 2 -speed 4 -strict -2 -y video.webm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment