44 lines
1.4 KiB
Bash
Executable File
44 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
##makedesc: Install droidcam-obs plugin v1.5.1
|
|
|
|
#TODO
|
|
# ffmpeg -version | head -n 1 | awk '{print $3}'
|
|
# https://github.com/dev47apps/droidcam-obs-plugin/releases
|
|
|
|
exit
|
|
|
|
|
|
|
|
# https://www.dev47apps.com/droidcam/linux/
|
|
# https://www.dev47apps.com/obs/
|
|
# https://www.dev47apps.com/obs/usage.html
|
|
# https://obsproject.com/forum/threads/how-to-start-virtual-camera-without-sudo-privileges.139783/
|
|
|
|
|
|
|
|
|
|
echo
|
|
echo "==============================================="
|
|
echo "Installing droidcam-obs..."
|
|
echo "==============================================="
|
|
echo
|
|
|
|
# command -v "obs" >/dev/null 2>&1 || echo 'You need to install obs first!'
|
|
command -v "obs-studio" >/dev/null 2>&1 || echo 'You need to install obs-studio first!'
|
|
|
|
mkdir -p $HOMEinstall/droidcam-obs
|
|
wget -O /tmp/droidcam-obs.zip https://files.dev47apps.net/obs/droidcam_obs_1.5.1_linux.zip
|
|
unzip -oq /tmp/droidcam-obs.zip -d $HOMEinstall/droidcam-obs
|
|
rm -rf /tmp/droidcam-obs.zip
|
|
cd $HOMEinstall/droidcam-obs && ./install.sh
|
|
sudo modprobe v4l2loopback video_nr=2 card_label="OBS Virtual Camera"
|
|
|
|
echo
|
|
echo "Finish!"
|
|
echo "Don't forget to:"
|
|
echo "1) restart OBS if it is running right now OR install (if not) and start it"
|
|
echo "2) install android app: https://play.google.com/store/apps/developer?id=Dev47Apps"
|
|
echo "3) if virtual camera not starting then execute:"
|
|
echo -e "\tsudo modprobe v4l2loopback video_nr=2 card_label=\"OBS Virtual Camera\""
|
|
echo
|