1
0
mirror of https://github.com/tiyn/wiki.git synced 2025-11-07 05:31:17 +01:00

obs/v4l2: added troubleshooting for error

This commit is contained in:
tiyn
2025-03-18 05:52:33 +01:00
parent 694a183300
commit 3914097907
3 changed files with 46 additions and 4 deletions

View File

@@ -19,6 +19,19 @@ It features the same syntax.
This section addresses various usages of the arch linux package managers.
### Downgrading Packages
Packages of the AUR can be downgraded by using the
[Downgrade](https://github.com/archlinux-downgrade/downgrade) program.
This program can then easily be used to an AUR package.
This works like the following assuming the package `v4l2loopback-dmks` needs to be downgraded.
```sh
sudo downgrade v4l2loopback-dmks
```
Afterwards the target version can be selected and the downgrading process will conclude.
#### Manual Installation of a `PKGBUILD` File
A `PKGBUILD` file is a [shell](/wiki/linux/shell.md) script that contains the installation

View File

@@ -21,6 +21,11 @@ package needs to be installed.
Some distributions have a package named `v4l2loopback-dkms` in the package
manager, making the manual installation process unnecessary.
Make sure to
[start the service](/wiki/linux/systemd.md#startstopenabledisable-a-service) by
running `systemctl start v4l2loopback.service` and/or enable it to start after each
boot with `systemctl enable v4l2loopback.service`.
### Usage
This section focusses on various use-cases for the v4l2loopback software.
@@ -75,3 +80,18 @@ Afterwards enable the service to start at every boot process by running:
```sh
sudo systemctl enable v4l2loopback
```
## Troubleshooting
This section focusses on various errors that can appear in the v4l2loopback software.
### `Failed to start streaming on '/dev/video2' (Invalid argument)`
This error does occur most of the time when trying to start
[OBS' virtual camera](/wiki/obs.md#virtual-camera).
This section is based on an
[OBS Forum entry by rebelduck](https://obsproject.com/forum/threads/obs-virtual-camera-failed-to-start-streaming-on-dev-video2-invalid-argument.184717/)
To fix it downgrade the packages `v4l2loopback-dkms` and `v4l2loopback-utils` to the last working
version.
For [Arch Linux](/wiki/linux/arch-linux.md) this can be achieved by using
[Downgrade](/wiki/linux/package_manager.md#downgrading-packages).