Skip to content

Instantly share code, notes, and snippets.

@imneonizer
Created August 30, 2021 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imneonizer/64212f7570789abc82b4ab8a293aca55 to your computer and use it in GitHub Desktop.
Save imneonizer/64212f7570789abc82b4ab8a293aca55 to your computer and use it in GitHub Desktop.
Automatically discover droidcam client
#!/bin/bash
export ANDROID_SERIAL=`adb devices -l | grep -i oneplus | awk '{print $1}'`
droidcam-cli adb 4747&
scrcpy
@imneonizer
Copy link
Author

gst-launch-1.0 souphttpsrc is-live=true location="http://localhost:8080/videofeed" ! decodebin ! videoconvert ! autovideosink

@imneonizer
Copy link
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

@imneonizer
Copy link
Author

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