| The scrcpy project is already great for this:
https://github.com/Genymobile/scrcpy Here's a little script for streaming through your camera on obs: get-adb-devices-list() {
adb devices | grep -v "List of devices attached" | grep -v "daemon" | grep -v "^$" | grep -c .
} echo "device count: $(get-adb-devices-list)"
while [ "$(get-adb-devices-list)" -eq 0 ]; do
echo "Waiting for the device..."
sleep 0.5
done IP_ADDRESS=$(sudo adb shell ip addr show wlan0 | grep "192.168.." | awk -F ' ' '{print $2}' | cut -d '/' -f1) connect-adb-tcp () {
sleep 1
echo "Connect to the device...$IP_ADDRESS" && \
adb tcpip 5555 && \
sudo adb connect "$IP_ADDRESS"
} connect-adb-tcp && \
v4l2-ctl --list-devices && \
scrcpy -e --v4l2-sink=/dev/video0 --lock-video-orientation=1 -n -N &> ./log & obs |
For folks willing to build from source, I have an additional commit on top of the PR (linked in the comments) that enables support for Android's constrained high speed capture mode, allowing 120fps/240fps camera streaming. Not the most useful for meetings, but enables things like capturing high frame rate mixed reality VR footage. As far as I'm aware, there's no other Android webcam app, proprietary or open source, that can do anything above 60fps.