Skip to content

Instantly share code, notes, and snippets.

@Technetium1
Created September 20, 2019 10:31
Show Gist options
  • Save Technetium1/b803e68972e498bfbbc8cff4087933af to your computer and use it in GitHub Desktop.
Save Technetium1/b803e68972e498bfbbc8cff4087933af to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
sudo modprobe v4l2loopback exclusive_caps=1
ffmpeg -f x11grab -r 15 -s 1920x1080 -i :0.0+0,0 -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment