Skip to content

Instantly share code, notes, and snippets.

@OrderAndCh4oS
Last active July 7, 2019 09:21
Show Gist options
  • Save OrderAndCh4oS/8bfb29aa7c3557955faee39a873f302f to your computer and use it in GitHub Desktop.
Save OrderAndCh4oS/8bfb29aa7c3557955faee39a873f302f to your computer and use it in GitHub Desktop.
Screen Record with FFmpeg
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