Skip to content

Instantly share code, notes, and snippets.

@gmcabrita
Created April 7, 2020 12:49
Show Gist options
  • Save gmcabrita/2208c9846fe2cb6da39c358efdf89f3c to your computer and use it in GitHub Desktop.
Save gmcabrita/2208c9846fe2cb6da39c358efdf89f3c to your computer and use it in GitHub Desktop.
# setup OBS camera sink
obscam() {
if [ ! -d ~/code/v4l2loopback ]; then
(
cd ~/code
git clone git@github.com:umlaeute/v4l2loopback.git
cd v4l2loopback
make
sudo make install
sudo depmod -a
)
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
cmake -DLIBOBS_INCLUDE_DIR="../../obs-studio/libobs" -DCMAKE_INSTALL_PREFIX=/usr ..
make -j4
sudo make install
)
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment