Skip to content

Instantly share code, notes, and snippets.

@ImranR98
Created March 23, 2025 04:48
Show Gist options
  • Select an option

  • Save ImranR98/423cc94f4b639a7f0588f46d5804ccb3 to your computer and use it in GitHub Desktop.

Select an option

Save ImranR98/423cc94f4b639a7f0588f46d5804ccb3 to your computer and use it in GitHub Desktop.
Stream from Meta Quest 3S over Wi-Fi
#!/bin/bash
set -e
# Stream from Meta Quest 3S over Wi-Fi
# No audio support
# Assumes the headset is the only ADB device connected
if [ -z "$(which scrcpy)" ]; then
echo "strcpy not installed!" >&2
exit 1
fi
stream() {
scrcpy --tcpip --audio-dup -b 25M --crop 1500:1400:180:220
}
stream && exit || :
if [[ "$(adb devices| grep -v offline | wc -l)" -le 2 ]]; then
echo "Plug in your headset now, ensure USB debugging is enabled, and allow the USB connection to this PC. [press Enter to continue]"
read anything
fi
stream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment