Hinweis: Das Linux Header Paket ist in diesem Beispiel für die Ubuntu 20.04 LTS Installation und muss ggf. angepasst werden
Code: Select all
sudo apt install v4l2loopback-source module-assistant v4l2loopback-source linux-headers-5.8.0-49*
Code: Select all
cd ~;
mkdir obs;
cd obs;
git clone https://github.com/CatxFish/obs-v4l2sink.git;
git clone --recursive https://github.com/obsproject/obs-studio.git;
cd obs-v4l2sink;
mkdir build && cd build
cmake -DLIBOBS_INCLUDE_DIR="../../obs-studio/libobs" -DCMAKE_INSTALL_PREFIX=/usr ..
make -j4
sudo make install
ln -s /usr/share/
sudo modprobe v4l2loopback exclusive_caps=1
v4l2-ctl --list-devices
Code: Select all
sudo modprobe v4l2loopback devices=4
Code: Select all
ffmpeg -f video4linux2 -video_size 1920x1080 -input_format mjpeg -i /dev/video2 -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video4