shell/install/droidcam-obs

33 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-07-04 07:51:04 +00:00
#!/bin/bash
##makedesc: Install droidcam-obs plugin v1.5.1
2022-07-04 07:51:04 +00:00
# https://www.dev47apps.com/droidcam/linux/
# https://www.dev47apps.com/obs/
# https://www.dev47apps.com/obs/usage.html
2022-09-29 05:21:35 +00:00
# https://obsproject.com/forum/threads/how-to-start-virtual-camera-without-sudo-privileges.139783/
2022-07-04 07:51:04 +00:00
echo
echo "==============================================="
echo "Installing droidcam-obs..."
echo "==============================================="
echo
2022-09-30 06:06:16 +00:00
# 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!'
2022-07-04 07:51:04 +00:00
2023-04-14 04:06:40 +00:00
mkdir -p $HOMEinstall/droidcam-obs
2022-07-04 07:51:04 +00:00
wget -O /tmp/droidcam-obs.zip https://files.dev47apps.net/obs/droidcam_obs_1.5.1_linux.zip
2023-04-14 04:06:40 +00:00
unzip -oq /tmp/droidcam-obs.zip -d $HOMEinstall/droidcam-obs
2022-07-04 07:51:04 +00:00
rm -rf /tmp/droidcam-obs.zip
2023-04-14 04:06:40 +00:00
cd $HOMEinstall/droidcam-obs && ./install.sh
2022-09-30 06:06:16 +00:00
sudo modprobe v4l2loopback video_nr=2 card_label="OBS Virtual Camera"
2022-07-04 07:51:04 +00:00
echo
2023-04-11 15:43:14 +00:00
echo "Finish!"
2022-07-04 07:51:04 +00:00
echo "Don't forget to:"
2022-09-29 05:21:35 +00:00
echo "1) restart OBS if it is running right now OR install (if not) and start it"
2022-07-04 07:51:04 +00:00
echo "2) install android app: https://play.google.com/store/apps/developer?id=Dev47Apps"
2022-09-30 06:06:16 +00:00
echo "3) if virtual camera not starting then execute:"
echo -e "\tsudo modprobe v4l2loopback video_nr=2 card_label=\"OBS Virtual Camera\""
2022-07-04 07:51:04 +00:00
echo