Created
February 26, 2019 22:47
-
-
Save kefir-/a4f9d0d8fd2b4089e7b8e70c15a84d37 to your computer and use it in GitHub Desktop.
Screen capture with webcam overlay using ffmpeg
This file contains hidden or 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 -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
Source: https://unix.stackexchange.com/questions/73622/how-to-get-near-perfect-screen-recording-quality