Created
August 30, 2021 07:35
-
-
Save imneonizer/64212f7570789abc82b4ab8a293aca55 to your computer and use it in GitHub Desktop.
Automatically discover droidcam client
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
#!/bin/bash | |
export ANDROID_SERIAL=`adb devices -l | grep -i oneplus | awk '{print $1}'` | |
droidcam-cli adb 4747& | |
scrcpy |
Author
imneonizer
commented
Oct 5, 2021
#!/bin/bash
export ANDROID_SERIAL=`adb devices -l | grep -i oneplus | awk '{print $1}'`
if [ ! `pgrep scrcpy` ];then
scrcpy
fi
ffmpeg -i http://localhost:8080/videofeed -vf format=yuv420p -f v4l2 /dev/video0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment