Why Hi Rokid recording may not work
The AR recording feature in the Hi Rokid app needs camera access. Vision-enabled apps also need camera access, so the two recording flows can compete for the same camera.Workflow
For some demo videos in the GlassKit repo, we record two sources:- The glasses display with
scrcpy, for example:scrcpy --no-audio --record ui.mp4- An
adbconnection is required, either over a cable or wirelessly.
- An
- The real-world point of view with a separate head-mounted camera.
ffmpeg or a video editor.
A clap, tap, or obvious UI action at the beginning makes the videos easier to sync during editing.
Combining the videos
This example combines one UI capture video and one POV camera video withffmpeg. First, manually review both recordings, identify the exact timing offset, and trim the inputs so they start in sync. In the example below, those synced inputs are pov-trim.mp4 and ui-trim.mp4.
lumakey and lutrgb steps make the black UI capture background transparent and recolor the UI overlay green so it is visible against the camera footage.
POV recording gear
The current POV recording setup is:- DJI Osmo Nano
- DJI Osmo Nano headband accessory
- DJI Mic Mini
Single in-app recording
The cleanest long-term solution is to implement recording inside the glasses app:- Capture the screen or app UI with Android screen-capture APIs.
- Use the app’s own camera feed for both app logic and recording.
- Compose the UI and camera feed into one video inside the app.