VideoCapture API in Unity3D on HL2 only returns Legacy Resolutions under SupportedResolutions

Valentin 40 Reputation points
2024-03-07T16:28:44.2733333+00:00

Using VideoCapture API I am able to record videos on the HL2 for resolutions 2272x1278 and 896x504. I am encountering the same problem as described here: https://forum.unity.com/threads/videocapture-returns-invalid-resolutions-for-hololens-2-camera.838822/

It seems like only resolutions listed under the Legacy profile are returned as supported ones. How can I record videos at different, supported resolutions on HL2 though?

Thank you!

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,155 questions
HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
406 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ying Li - MSFT 1,300 Reputation points Microsoft Vendor
    2024-03-21T07:43:03.6633333+00:00

    Hello, Welcome to Microsoft Q&A,

    You can use MediaCapture API to expand your options for camera profiles and video capture resolutions on the HoloLens device. To  capture videos with MediaCapture API, please refer to Basic photo, video, and audio capture with MediaCapture - UWP applications | Microsoft Learn.

    To check all the profiles and resolutions supported by HoloLens 2 device, please refer to https://learn.microsoft.com/en-us/windows/mixed-reality/develop/advanced-concepts/locatable-camera-overview - hololens-2.

    To learn how to select a profile based on supported resolution, please refer to - https://learn.microsoft.com/en-us/windows/uwp/audio-video-camera/camera-profiles - select-a-profile-based-on-supported-resolution-and-frame-rate.

    I did some tests with two supported resolutions: 1952x1100 and 1280x720, both of which worked successfully.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.