Skip to content

Instantly share code, notes, and snippets.

@vavrecan
Last active October 20, 2018 22:51
Show Gist options
  • Save vavrecan/0e3a03a93888220a09199d7c1a34bb24 to your computer and use it in GitHub Desktop.
Save vavrecan/0e3a03a93888220a09199d7c1a34bb24 to your computer and use it in GitHub Desktop.
capture
$ best Linux screen capture settings of the day
ffmpeg -thread_queue_size 128 -f alsa -i default -f x11grab -isync -r 30 -ac 2 -s 1920×1080 -i :0.0+0,0 -vcodec libx264 -preset veryfast -pix_fmt yuv420p -acodec libmp3lame -ar 44100 -ab 192k -threads 4 -y Desktop.mp4
# vokoscreen app to capture
# Update: w/ VAAPI e.g. for Intel’s QuickSync:
ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -thread_queue_size 64 -f alsa -i default -thread_queue_size 64 -f x11grab -isync -r 30 -ac 1 -s 1920×1080 -i :0.0+0,0 -vf ‘format=nv12,hwupload’ -threads 8 -aspect 16:9 -b:v 12500k -vcodec h264_vaapi -af “lowpass=f=7000″ -acodec aac -ab 192k -threads 8 ~/Desktop/`date ‘+%Y%m%d-%H%M%S’.mp4`
# https://rene.rebe.de/2017-06-23/best-video-screen-capture-settings-of-the-day/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment