Skip to content

Instantly share code, notes, and snippets.

@benkaiser
Last active December 14, 2015 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benkaiser/5005081 to your computer and use it in GitHub Desktop.
Save benkaiser/5005081 to your computer and use it in GitHub Desktop.
hi-res ffmpeg capture without lag
ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s <widthxheight> -i :0.0<+offsetx,offsety> -acodec pcm_s16le -vcodec libx264 -r 25 -preset ultrafast -crf 0 -threads 0 <filename>.mkv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment