Skip to content
This repository was archived by the owner on Mar 15, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 52 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ issue #17][vcam#17].

[run-v4l2loopback]: https://github.com/umlaeute/v4l2loopback#run

## Build
## Build [Debian]

- Install QT

Expand All @@ -52,3 +52,54 @@ cmake -DLIBOBS_INCLUDE_DIR="../../obs-studio/libobs" -DCMAKE_INSTALL_PREFIX=/usr
make -j4
sudo make install
```

## Build [RHEL/CentOS]

#### Dependencies

If you are compiling this on Fedora, I would suggest installing the following dependencies inside a `toolbox` ([here](https://fedoramagazine.org/a-quick-introduction-to-toolbox-on-fedora/) you can learn more about it)

- QT Development, the package has the following name:
- `qt5-qtbase-devel`

- `Development Tools` group (install with `sudo yum groupinstall "Development Tools"`)

- The following packages are not included in the Development Tools group, but are required:
- `cmake`
- `g++`

- RPM Fusion Free ([here](https://rpmfusion.org/Configuration) you can learn how to enable this repository)
- `obs-studio-libs`
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uneeded (implementation detail), this will be fetch automatically once obs-studio-devel is installed.

- `obs-studio-devel`


#### Build

Download sources and prepare the build files

```bash
git clone --recursive https://github.com/obsproject/obs-studio.git
git clone https://github.com/CatxFish/obs-v4l2sink.git
cd obs-v4l2sink
mkdir build && cd build
```

Compile and install the plugin

```bash
cmake -DLIBOBS_INCLUDE_DIR="../../obs-studio/libobs" -DCMAKE_INSTALL_PREFIX=/usr -DLIBOBS_LIB="/usr/lib64/libobs.so.0" -DCMAKE_INSTALL_PREFIX="${HOME}/.config/obs-studio/plugins/v4l2sink" ..
make -j4
make install
```

The plugin will be installed inside `~/.config/obs-studio/plugins`

#### Flatpak OBS

If you are using the Flatpak OBS version, copy the plugin's files into the application folder:

```bash
sudo cp -r $HOME/.config/obs-studio/plugins/v4l2sink/* /var/lib/flatpak/app/com.obsproject.Studio/x86_64/stable/active/files/
```

Open OBS and navigate to the "Tools" drop-down: you should now see the V4L2 video output