{"id":15085977,"url":"https://github.com/deepmancer/fake-webcam-streamer","last_synced_at":"2026-02-06T00:30:59.581Z","repository":{"id":254847602,"uuid":"847724338","full_name":"deepmancer/fake-webcam-streamer","owner":"deepmancer","description":"Automated Bash script to fake a webcam by streaming a video file as a virtual webcam on Ubuntu. Utilizes v4l2loopback and ffmpeg for seamless setup and operation.","archived":false,"fork":false,"pushed_at":"2024-08-26T12:47:13.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-16T17:23:07.867Z","etag":null,"topics":["automation","bash","bash-script","camera","fake-camera","fake-streaming","fake-webcam","ffmpeg","ffmpeg-script","linux","shell","ubuntu","v4l2loopback","virtual-camera","virtual-webcam","webcam","webcam-streaming"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deepmancer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-26T12:29:21.000Z","updated_at":"2025-06-29T20:14:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"b62ad342-4d87-4d2c-a47a-39ef0142271b","html_url":"https://github.com/deepmancer/fake-webcam-streamer","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"1434219a920375b9796d8ab2833c535f323e34e0"},"previous_names":["deepmancer/fake-webcam-streamer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deepmancer/fake-webcam-streamer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepmancer%2Ffake-webcam-streamer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepmancer%2Ffake-webcam-streamer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepmancer%2Ffake-webcam-streamer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepmancer%2Ffake-webcam-streamer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepmancer","download_url":"https://codeload.github.com/deepmancer/fake-webcam-streamer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepmancer%2Ffake-webcam-streamer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29140107,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T23:14:48.546Z","status":"ssl_error","status_checked_at":"2026-02-05T23:14:35.724Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","bash","bash-script","camera","fake-camera","fake-streaming","fake-webcam","ffmpeg","ffmpeg-script","linux","shell","ubuntu","v4l2loopback","virtual-camera","virtual-webcam","webcam","webcam-streaming"],"created_at":"2024-09-25T07:02:35.847Z","updated_at":"2026-02-06T00:30:59.548Z","avatar_url":"https://github.com/deepmancer.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📷 Fake Webcam Streamer\n\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/FFmpeg-007808.svg?style=for-the-badge\u0026logo=FFmpeg\u0026logoColor=white\" alt=\"FFmpeg Badge\"/\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Ubuntu-E95420.svg?style=for-the-badge\u0026logo=Ubuntu\u0026logoColor=white\" alt=\"Ubuntu Badge\"/\u003e\n  \u003cimg src=\"https://img.shields.io/badge/GNU%20Bash-4EAA25.svg?style=for-the-badge\u0026logo=GNU-Bash\u0026logoColor=white\" alt=\"GNU Bash Badge\"/\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Linux-FCC624.svg?style=for-the-badge\u0026logo=Linux\u0026logoColor=black\" alt=\"Linux Badge\"/\u003e\n  \u003cimg src=\"https://img.shields.io/badge/GNOME%20Terminal-241F31.svg?style=for-the-badge\u0026logo=GNOME-Terminal\u0026logoColor=white\" alt=\"GNOME Terminal Badge\"/\u003e\n\u003c/p\u003e\n\n**Fake Webcam Streamer** is an automated Bash script designed to turn a video file into a virtual webcam on Ubuntu. Using `v4l2loopback` and `ffmpeg`, it creates a seamless virtual webcam experience that can be utilized in any video input-enabled application. Whether you’re simulating a live feed for testing, presentations, or just for fun, this script handles everything from device detection to cleanup, so you don't have to.\n\n---\n\n## 🚀 Features\n\n- **🔧 Automated Setup:** Automatically detects and configures the next available video device.\n- **🔄 Seamless Streaming:** Streams your chosen video file in a continuous loop as a virtual webcam.\n- **🧹 Automatic Cleanup:** Ensures the virtual webcam module is removed when the script exits, leaving no traces.\n- **⚠️ Error Handling:** Built-in checks for missing or invalid video files to prevent issues.\n\n---\n\n## 📋 Requirements\n\n- **Ubuntu** (Tested on versions 20.04 and above)\n- **v4l2loopback**: A kernel module to create virtual video devices. Refer to the official [v4l2loopback GitHub repository](https://github.com/umlaeute/v4l2loopback) for installation instructions.\n- **ffmpeg**: A powerful multimedia framework to handle video streams. Install it using:\n  ```bash\n  sudo apt-get install ffmpeg\n  ```\n---\n\n## 💻 Installation\n\n1. **Clone the repository** to your local machine:\n    ```bash\n    git clone https://github.com/yourusername/fake-webcam-streamer.git\n    cd fake-webcam-streamer\n    ```\n\n2. **Make the script executable:**\n    ```bash\n    chmod +x fake_webcam.sh\n    ```\n\n3. **Install the required dependencies** as mentioned in the **Requirements** section.\n\n---\n\n## ▶️ Usage\n\nTo use the script, pass the path to your video file as an argument:\n\n```bash\n./fake_webcam.sh /path/to/video.mkv\n```\n\n---\n\n### Example:\n\n```bash\n./fake_webcam.sh ~/Videos/sample_video.mkv\n```\n\n---\n\n### ⚙️ How It Works:\n\n- **Cleanup Function:** A function is defined to remove the virtual webcam module when the script exits (triggered by signals like `SIGINT` or `SIGTERM`).\n- **Validation:** The script checks if the video file path is provided and verifies its existence.\n- **Device Detection:** Finds the next available video device number (`/dev/videoX`), loads the `v4l2loopback` module on that device, and streams the video in a loop using `ffmpeg`.\n\n---\n\n## 🔗 Notes\n\n- The virtual webcam will be accessible under `/dev/videoX` (where `X` is the device number found by the script). You can use this in applications like Zoom, OBS, or any other video conferencing software.\n- The video will loop continuously until the script is stopped.\n\n---\n\n## 📄 License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n---\n\n## 🙏 Acknowledgements\n\n- [v4l2loopback](https://github.com/umlaeute/v4l2loopback) - For creating virtual video devices on Linux.\n- [ffmpeg](https://ffmpeg.org/) - For handling multimedia files and streams.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepmancer%2Ffake-webcam-streamer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepmancer%2Ffake-webcam-streamer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepmancer%2Ffake-webcam-streamer/lists"}