Waiting for content
sudo apt install scrcpy
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
adb android-libadb android-libbase android-libboringssl android-libcrypto-utils android-libcutils android-liblog
android-sdk-platform-tools-common scrcpy-server
The following NEW packages will be installed
adb android-libadb android-libbase android-libboringssl android-libcrypto-utils android-libcutils android-liblog
android-sdk-platform-tools-common scrcpy scrcpy-server
0 to upgrade, 10 to newly install, 0 to remove and 11 not to upgrade.
Need to get 907 kB of archives.
After this operation, 2.812 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Make sure you are a developer on Quest 2
Connect Quest 2 to pC with USB cable
Native output is 3664x1920. Half width is 1832. We want 1600x1200 centered on right eye so offset is 1832+232/2=1948 by 720/2=360 (1948:360) but screens are not centred in their halves so use 1964:330
scrcpy -m 1600 --crop 1600:1200:1964:330 -r /home/pete/Videos/IDUXX.mkv --window-x 100 --window-y 100 --window-width 1600 --window-height 1200 --display 1 --stay-awake --disable-screensaver
Over Wireless
Exit scrcpy with ctrl-C but leave USB connected
adb tcpip 5555
restarting in TCP mode port: 5555
Find ip address for Quest 2 (192.168.178.47)
adb connect 192.168.178.47:5555
connected to 192.168.178.47:5555
Disconnect USB cable and
scrcpy
RECORDING VIDEO IN 16:9 ON QUEST 2
Connect Quest 2 to computer and use ADB commands, either from the command line if you have already installed scrcpy, or via SideQuest:
adb shell setprop debug.oculus.capture.width 1920
adb shell setprop debug.oculus.capture.height 1080
adb shell setprop debug.oculus.capture.bitrate 30000000
adb shell setprop debug.oculus.capture.fps 60
// or
adb shell setprop debug.oculus.fullRateCapture 1
or, to mimic the scrcpy commands:
adb shell setprop debug.oculus.capture.width 1600
adb shell setprop debug.oculus.capture.height 1200
adb shell setprop debug.oculus.capture.bitrate 30000000
adb shell setprop debug.oculus.capture.fps 60
// or
adb shell setprop debug.oculus.fullRateCapture 1
Note that these commands may slow down your Quest 2 or cause jitter; you may have to adjust the FPS / resolution / bitrate. Also, these commands must be repeated every time you reset the Quest 2.
For reference, the default values are 1,024 × 1,024 resolution, 30 FPS framerate, and 5,000,000 bitrate
AUDIO
There are still problems with sndcpy and quest 2.