Skip to content

Instantly share code, notes, and snippets.

@kefir-
Created February 26, 2019 22:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kefir-/a4f9d0d8fd2b4089e7b8e70c15a84d37 to your computer and use it in GitHub Desktop.
Save kefir-/a4f9d0d8fd2b4089e7b8e70c15a84d37 to your computer and use it in GitHub Desktop.
Screen capture with webcam overlay using ffmpeg
ffmpeg -f x11grab -thread_queue_size 64 -video_size 1920x1080 -framerate 30 -i :1 \
-f v4l2 -thread_queue_size 64 -video_size 320x180 -framerate 30 -i /dev/video0 \
-filter_complex 'overlay=main_w-overlay_w:main_h-overlay_h:format=yuv444' \
-vcodec libx264 -preset ultrafast -qp 0 -pix_fmt yuv444p \
video.mkv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment