Skip to content

Instantly share code, notes, and snippets.

@FreeFly19
Created November 27, 2022 06:55
Show Gist options
  • Save FreeFly19/f8dc06c4e46b7a43164b83ec24237ea9 to your computer and use it in GitHub Desktop.
Save FreeFly19/f8dc06c4e46b7a43164b83ec24237ea9 to your computer and use it in GitHub Desktop.
How to share create webcam device based on screen capturing
sudo ffmpeg -f x11grab -r 60 -s 2560x1440 -i :1 -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 -vf 'scale=1920:1080' /dev/video6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment