Resolution 896X504 not working on hololens 2

Hello everyone,

I’m working with the HololensCameraStream (VideoCapture) repository in my project. Until now, I was working with 2272x1278 resolution without any issues. However, after reducing the resolution to 896x504, the output image becomes corrupted:

Below is the code snippet where I configure the camera resolution:

CameraParameters cameraParameters = new CameraParameters();
cameraParameters.hologramOpacity = 0.0f;
cameraParameters.frameRate = Mathf.RoundToInt(frameRate);
cameraParameters.cameraResolutionWidth = 896;
cameraParameters.cameraResolutionHeight = 504;
cameraParameters.pixelFormat = CapturePixelFormat.BGRA32;
video.StartVideoModeAsync(cameraParameters, OnStartedVideoCaptureMode);

I already made sure that 896x504 is a supported resolution according to the device profiles, yet the issue persists.

 IReadOnlyList<MediaCaptureVideoProfile> profiles = MediaCapture.FindAllVideoProfiles(_deviceInfo.Id);

 var match = (from profile in profiles
              from desc in profile.SupportedRecordMediaDescription
              where desc.Width == 896 && desc.Height == 504 
              select new { profile, desc }).FirstOrDefault();

 _mediaCapture = new MediaCapture();
 await _mediaCapture.InitializeAsync(new MediaCaptureInitializationSettings()
 {
     VideoDeviceId = _deviceInfo.Id,
     SourceGroup = _frameSourceGroup,
     VideoProfile = match.profile,
     RecordMediaDescription = match.desc,
     SharingMode = MediaCaptureSharingMode.ExclusiveControl,
     MemoryPreference = MediaCaptureMemoryPreference.Cpu, 
     StreamingCaptureMode = StreamingCaptureMode.Video
 });

Has anyone experienced a similar issue or does anyone have any insights on what might be causing this image corruption when changing resolutions? I

Thank you in advance for your support