Initial Commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
/target
|
||||
Generated
+7
@@ -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
@@ -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
|
||||
@@ -0,0 +1,21 @@
|
||||
|
||||

|
||||
|
||||
# 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
@@ -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");
|
||||
}
|
||||
Reference in New Issue
Block a user