Last active
July 7, 2019 09:21
-
-
Save OrderAndCh4oS/8bfb29aa7c3557955faee39a873f302f to your computer and use it in GitHub Desktop.
Screen Record with FFmpeg
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 -f x11grab -y -r 30 -s 1920x1080 -i :0.0 -vcodec huffyuv out.avi | |
# Then convert it to .mp4 | |
ffmpeg -y -i out.avi -s 1920x1080 -f mp4 -vcodec libx264 -preset slow -crf 18 -b:v 3000k -maxrate 4000k -bufsize 512k -c:a aac -b:a 128k -strict -2 out.mp4 | |
# and remove the .avi | |
rm out.avi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment