Initial Commit

This commit is contained in:
brotoskyj
2025-01-03 13:47:58 -05:00
commit ec81a3d58f
5 changed files with 55 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
/target
Generated
+7
View File
@@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "obs_fix"
version = "2025.1.3"
+16
View File
@@ -0,0 +1,16 @@
[package]
name = "obs_fix"
version = "2025.1.3"
edition = "2021"
[dependencies]
[profile.release]
opt-level = "z"
lto = "fat"
debug = false
codegen-units = 1
panic = 'abort'
strip = true
debug-assertions = false
overflow-checks = false
+21
View File
@@ -0,0 +1,21 @@
![Rust](https://img.shields.io/badge/rust-%23000000.svg?style=for-the-badge&logo=rust&logoColor=white)
# OBS Flatpak Virtual Camera Fix
A simple Rust binary to turn on the v4l2loopback interface for OBS
## Run Locally
Make binary executable
```bash
chmod +x obs_fix
```
Execute with sudo permissions
```bash
sudo ./obs_fix
```
+10
View File
@@ -0,0 +1,10 @@
use std::process::Command;
fn main() {
Command::new("/usr/sbin/modprobe")
.arg("v4l2loopback")
.arg("exclusive_caps=1")
.arg("card_label='OBS Virtual Camera'")
.spawn()
.expect("Modprobe command has failed");
}