Oculus/Meta Quest 2 - Adjust Video Capture Settings Through ADB

Oculus/Meta Quest 2 - Adjust Video Capture Settings Through ADB
Photo by Vinicius "amnx" Amano / Unsplash

In the latest Oculus Developer Hub update, you can now record video on the Meta Quest 2 at a higher resolution, framerate, and bitrate. This allows significantly higher quality video capture than possible previously.

While the Oculus Developer Hub is a fantastic tool (cannot state enough how much easier development is with this tool, it's the best), sometimes you just need to change some of these settings without using the tool.

So, here I present the command line commands to adjust video capture on the Meta Quest 2!

Settings to enable 2160p video capture at 36fps:

adb shell setprop debug.oculus.refreshRate 72
adb shell setprop debug.oculus.capture.fps 30
adb shell setprop debug.oculus.fullRateCapture 0
adb shell setprop debug.oculus.swapInterval 2
adb shell setprop debug.oculus.capture.width 3840
adb shell setprop debug.oculus.capture.height 2160
adb shell setprop debug.oculus.eyeFovDown 30
adb shell setprop debug.oculus.eyeFovUp 30
adb shell setprop debug.oculus.eyeFovOutward 45
adb shell setprop debug.oculus.eyeFovInward 45
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 5
adb shell setprop debug.oculus.gpuLevel 5
adb shell am force-stop com.oculus.vrshell

You can adjust the bitrate using the following command (example is 40 Mbps):

adb shell setprop debug.oculus.capture.bitrate 40000000

Bonus Commands

How to disable the proximity sensor (keep the screen on)

adb shell am broadcast -a com.oculus.vrpowermanager.prox_close

How to enable the proximity sensor again

adb shell am broadcast -a com.oculus.vrpowermanager.automation_disable

How to enable Link through ADB

adb shell am start "xrstreamingclient://?launch_location=ODH&alink=true&adaptiveSrcLatencyMs=100&maxAdaptiveSrcLatencyMs=400&posePerSecond=500&sessionId=ODH"

How to disable Link through ADB

adb shell am force-stop com.oculus.xrstreamingclient

How to enable Air Link through ADB

adb shell am broadcast -a "com.oculus.systemux.action.TOGGLE_AIRLINK" --ez enable_airlink 1

How to disable Air Link through ADB

adb shell am broadcast -a "com.oculus.systemux.action.TOGGLE_AIRLINK" --ez enable_airlink 0

Disable Guardian

adb shell setprop debug.oculus.guardian_pause 1