Skip to content

Instantly share code, notes, and snippets.

@KleaTech
Created January 7, 2022 23:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KleaTech/123d58ef8a2b7c3e5cc7b00d5c27b887 to your computer and use it in GitHub Desktop.
Save KleaTech/123d58ef8a2b7c3e5cc7b00d5c27b887 to your computer and use it in GitHub Desktop.
Oculus Quest recording settings
# `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
// Each value can be set independently meaning you can change resolution without changing FPS and vice versa
// we default to(1024x1024 @ 60fps w/ 5000000 bitrate (5Mbps) in the absence of setprops
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
// You probably want to change the FOV to match the 1080p resolution as well:
adb shell setprop debug.oculus.eyeFovDown 39
adb shell setprop debug.oculus.eyeFovUp 38
adb shell setprop debug.oculus.eyeFovOutward 50
adb shell setprop debug.oculus.eyeFovInward 50
// You can (optionally) change the games back buffer to render 1 to 1 with capture size
adb shell setprop debug.oculus.textureWidth 1920
adb shell setprop debug.oculus.textureHeight 1080
// Turn off foviation, dynamic clocking and bump cpu / gpu levels to max
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
Instructions: boot up HMD, enter those adb commands, tap the power button to power cycle the screen (just the screen, not the device). Launch your app and record. Reboot to reset these values to what they used to be.
adb shell setprop debug.oculus.enableVideoCapture 1
source: https://gist.github.com/cvan/54535a41db8a67d0370971f6e393675d
https://gist.github.com/larsbergstrom/7dd790fbca15d48baf3bce179d41e9fb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment