Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

VirtualCam is a lightweight command-line tool for Linux that creates a virtual camera device using FFmpeg and v4l2loopback.

License

Notifications You must be signed in to change notification settings

codebyhasan/virtualcam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

5 Commits

Repository files navigation

VirtualCam

This script will automatically set up a virtual camera on your Linux system using v4l2loopback and FFmpeg, configure it to persist across reboots, and ensure all prerequisites are installed.

Run the following command to download, make executable, and run the setup script:

wget https://github.com/codebyhasan/virtualcam/blob/main/setup_vi rtualcam.sh -O setup_virtualcam.sh && chmod +x setup_virtualcam.sh && ./setup_virtualcam.sh

What it does:

  • Installs required packages: linux-headers, v4l2loopback-dkms, ffmpeg, python3, kmod.
  • Configures the virtual camera to appear as /dev/video0.
  • Sets up v4l2loopback to load automatically with your preferred settings after reboot.
  • Makes the Python script virtualcam.py ready to run as a command.

Once done, you can control the virtual camera using the virtualcam command:

virtualcam start # Start in foreground
virtualcam start --bg # Start in background
virtualcam stop # Stop the camera
virtualcam toggle # Toggle ON/OFF
virtualcam status # Show current status

About

VirtualCam is a lightweight command-line tool for Linux that creates a virtual camera device using FFmpeg and v4l2loopback.

Topics

Resources

Readme

License

MIT license

Stars

Watchers

Forks