This repository contains a Unity3D project designed for capturing videos in different resolutions on the HoloLens 2. It provides an easy-to-use interface for initiating video recordings and selecting resolutions. Internally, the Windows MediaCaptureAPI is utilized to allow capturing of different resolutions under different profiles. Using the VideoCaptureAPI provided by Unity3D only resolutions under the Legacy profile are recordable.
2272x1278 1952x1100 1920x1080 1504x846 1280x720 1128x636 960x540 760x428 640x360 500x282 424x240
- Start recording: Say "start" or press the start button right to the video panel
- Stop recording: Say "stop"
- Change resolution: Press the resolution button right to the video panel. A list of supported resolutions will pop up. Select the desired one
- Change language (EN/DE): Bring up your left hand, palm facing you. A menu will pop up right to your hand. Tap the button to switch between English and German
- Save video: Captured videos are automatically saved in he local application folder under the name video_{video count}_{resolution width}x{resolution height}.mp4. In case of name collisions, existing files are overwritten!
- Access video: Connect your HoloLens 2 to your PC via USB and access local storage in your file explorer. Alternatively, connect your HoloLens 2 and PC to the same network and access the local app storage via the Windows Device Portal
- Clone this repository (or download and unpack .zip)
- Add project to UnityHub and set specified Unity version (used: 6000.03.23f1) and UWP as target platform
- Open project. This will take some time as necessary packages will be installed automatically
- Open project build settings (File -> Build Settings)
- Switch platform to Universal Windows if not already selected
- Set Architecture to ARM 64-bit
- Set Build and Run to Local Machine or Remote Device depending on your preference
- Set Build Configuration to Master
- Build (and run) project on HoloLens 2
This project is licensed under the MIT License. See LICENSE.md for further details.