MozillaReality / fxr-cli

A command-line tool for installing and automating the Firefox Reality virtual-reality browser.
https://www.npmjs.com/package/fxr
Mozilla Public License 2.0
4 stars 3 forks source link

add `fxr capture` for video screencaptures and screenshots #29

Open caseyyee opened 5 years ago

caseyyee commented 5 years ago

Maybe fxr screencapture?

Instructions as per slack are pretty clunky, being wrapped up with the fxr-cli would make things much easier:

manuel.martin [9:44 AM] adb shell screencap -p /sdcard/1.png

for video: adb shell setprop debug.oculus.enableVideoCapture 1 and adb shell setprop debug.oculus.enableVideoCapture 0 when finished (edited) adb pull /sdcard/oculus/VideoShots/X ./X for grabbing them

cvan commented 5 years ago

thanks for filing! this is very useful.

this is the next addition I plan on making to the CLI :+1: I've got a WIP branch (not ready yet, doing some refactoring).

it'll be fxr capture (with numerous aliases: fxr screencapture, fxr record, fxr screenshot, fxr screengrab, fxr video, etc.).

it'll handle video capture (using feature detection in #19 to know which method to use: Oculus's [like you posted above], GoogleVR's, Android's, etc.) and regular screenshots (adb shell screencap). and more! 😀