Created
March 23, 2025 04:48
-
-
Save ImranR98/423cc94f4b639a7f0588f46d5804ccb3 to your computer and use it in GitHub Desktop.
Stream from Meta Quest 3S over Wi-Fi
This file contains hidden or 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 | |
| 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