Created
April 7, 2020 12:49
-
-
Save gmcabrita/2208c9846fe2cb6da39c358efdf89f3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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