https://github.com/piotrpdev/camerafreeze
Freeze a virtual camera using a hotkey. Made specifically to freeze a webcam during video calls on Linux.
https://github.com/piotrpdev/camerafreeze
camera python v4l2 v4l2loopback virtual
Last synced: 9 months ago
JSON representation
Freeze a virtual camera using a hotkey. Made specifically to freeze a webcam during video calls on Linux.
- Host: GitHub
- URL: https://github.com/piotrpdev/camerafreeze
- Owner: piotrpdev
- License: gpl-2.0
- Archived: true
- Created: 2023-07-06T13:56:16.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-06T16:30:56.000Z (almost 3 years ago)
- Last Synced: 2025-03-02T03:42:22.939Z (over 1 year ago)
- Topics: camera, python, v4l2, v4l2loopback, virtual
- Language: Python
- Homepage:
- Size: 3.46 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
https://github.com/piotrpdev/CameraFreeze/assets/99439005/2728ba13-7dd3-4139-afaf-f5df4a306986
# Camera Freeze
Freeze a virtual camera using a hotkey. Made specifically to freeze a webcam during video calls on Linux.
## Requirements
- [Python 3](https://www.python.org/downloads/)
- [v4l2loopback](https://github.com/umlaeute/v4l2loopback) (and a virtual camera)
## Installation
> **Note:** This project uses the [`keyboard`](https://pypi.org/project/keyboard/) package which requires root privileges to work.
### Ensure pip exists (if not already installed)
```bash
sudo venv/bin/python -m ensurepip
```
### Install dependencies
```bash
sudo venv/bin/python -m pip install -r requirements.txt
```
## Usage
### Run with default settings
> **Note:** This will use `/dev/video0` as the virtual camera and '#' as the hotkey.
```bash
sudo venv/bin/python camera_freeze.py
```
### See available options
```bash
sudo venv/bin/python camera_freeze.py -h
```