Skip to content

Instantly share code, notes, and snippets.

@alifa98
Last active October 11, 2021 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alifa98/2d0b64db757178751233397eb9804cf7 to your computer and use it in GitHub Desktop.
Save alifa98/2d0b64db757178751233397eb9804cf7 to your computer and use it in GitHub Desktop.
Fake Camera by OBS
  • Install https://github.com/umlaeute/v4l2loopback (You can install v4l2loopback-dkms by package managers such as pamac and apt )
  • Run sudo modprobe -r v4l2loopback && sudo modprobe v4l2loopback devices=1 video_nr=20 card_label="fakecam" exclusive_caps=1 Options
  • Create your desired scenes on OBS.
  • From "OBS" > "Tools" > "V4L2 video Output" select /dev/video20 (because of video_nr=20 option in command) and click on the start button.
  • Go to the application you want to use this camera, and select fakecam as webcam :)

If you have problem with finding fakecam, try command without exclusive_caps=1 option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment