Skip to content

Instantly share code, notes, and snippets.

@cvan
Last active September 6, 2022 13:54
Show Gist options
  • Save cvan/54535a41db8a67d0370971f6e393675d to your computer and use it in GitHub Desktop.
Save cvan/54535a41db8a67d0370971f6e393675d to your computer and use it in GitHub Desktop.
`adb` commands to call for capturing high-res videos on Oculus VR headsets
#!/bin/sh
# `adb` commands to call for capturing high-res videos on Oculus VR headsets
#
# Usage:
#
# curl https://gist.githubusercontent.com/cvan/54535a41db8a67d0370971f6e393675d/raw/c2183adf4bf0e85edc422a13599eba54e62ee473/video-setprop.sh > /tmp/oculusvr-video-setup.sh
# chmod +x /tmp/oculusvr-video-setup.sh
# ./tmp/oculusvr-video-setup.sh
#
# Source: modified from https://github.com/MozillaReality/FirefoxReality/wiki/Tips-for-recording-videos
#
# Note: this script must be run again each time the VR headset reboots
adb shell setprop debug.oculus.capture.width 1920
adb shell setprop debug.oculus.capture.height 1080
adb shell setprop debug.oculus.capture.fps 30
adb shell setprop debug.oculus.capture.bitrate 10000000
# Disclaimer: in the headset, what you see is not what you get
# Note: these values can be tweaked to change the Field of View (FOV)
adb shell setprop debug.oculus.eyeFovDown 49
adb shell setprop debug.oculus.eyeFovUp 48
adb shell setprop debug.oculus.eyeFovOutward 50
adb shell setprop debug.oculus.eyeFovInward 50
adb shell setprop debug.oculus.textureWidth 1920
adb shell setprop debug.oculus.textureHeight 1080
adb shell setprop debug.oculus.foveation.level 0
adb shell setprop debug.oculus.adaclocks.force 0
adb shell setprop debug.oculus.cpuLevel -1
adb shell setprop debug.oculus.gpuLevel -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment