CameraController icon indicating copy to clipboard operation
CameraController copied to clipboard

HDR control for Razer Kiyo Pro

Open juliussohn opened this issue 3 years ago • 36 comments

Hey unfortunately the Razer Synapse Software to configure the webcam only works on windows. Camera Controller already covers most controls, but one key feature of the Razer Kiyo Pro cam is HDR, which would be awesome to have in camera controller

juliussohn avatar Jan 05 '22 11:01 juliussohn

I would need to see the data sent to the device to see if I can replicate it.

Do you mind extracting it with this software: https://freeusbanalyzer.com

Itaybre avatar Jan 10 '22 23:01 Itaybre

I just found that HDR is part of the UVC protocol, I will take a look. But since I cannot test it, I can't promise anything. I will need the output from USB Prober, see this small guide: https://github.com/Itaybre/CameraController/issues/25#issuecomment-953162336

Itaybre avatar Jan 11 '22 00:01 Itaybre

Does this help?

CleanShot 2022-01-11 at 14 01 51@2x

Also here are the settings from the Windows Software CleanShot 2022-01-11 at 13 42 58@2x

juliussohn avatar Jan 11 '22 13:01 juliussohn

Does this help?

CleanShot 2022-01-11 at 14 01 51@2x

Also here are the settings from the Windows Software

CleanShot 2022-01-11 at 13 42 58@2x

Yes, that work, but can you expand the "Controls Supported" in the VDC Input Terminal section?

Itaybre avatar Jan 11 '22 13:01 Itaybre

CleanShot 2022-01-11 at 15 14 22@2x

juliussohn avatar Jan 11 '22 14:01 juliussohn

I may have found some insight about how to control HDR and also FOV.

I will need help testing that, I couldn't find the camera at a reasonable price locally

Itaybre avatar Jan 19 '22 04:01 Itaybre

Sure, happy to test if you have a build!

juliussohn avatar Jan 19 '22 10:01 juliussohn

@juliussohn You should see a new section inside Advanced, for nor I just implemented setting HDR, please tell me if it works correctly

CameraControllerRazer.zip

Itaybre avatar Jan 19 '22 18:01 Itaybre

I cant see an HDR setting. Am I missing something? CleanShot 2022-01-21 at 10 30 26@2x

juliussohn avatar Jan 21 '22 09:01 juliussohn

@juliussohn Seems like I used an incorrect value for productId and vendorId (to recognize the camera). Do you mind sharing the values from USB Prober? They should be at the top when selecting the camera

Itaybre avatar Jan 21 '22 13:01 Itaybre

CleanShot 2022-01-21 at 14 01 42@2x

juliussohn avatar Jan 21 '22 13:01 juliussohn

@juliussohn Lets try with this one CameraController.zip

Itaybre avatar Jan 21 '22 13:01 Itaybre

Still nothing showing up

juliussohn avatar Jan 21 '22 15:01 juliussohn

@juliussohn found the issue, it should appear now CameraController.zip

Itaybre avatar Jan 22 '22 01:01 Itaybre

@Itaybre The toggle is there, but it doesn't seem to change the HDR setting

juliussohn avatar Jan 25 '22 10:01 juliussohn

I can confirm that turning HDR on and off doesn't change anything. It's worth noting that the Kiyo Pro only supports HDR at 30 FPS - could this be why it isn't working correctly? Is there any way to manually adjust the cameras to 30 FPS within CameraConttoller?

Happy to do what I can to test this functionality.

Corb3t avatar Jan 27 '22 18:01 Corb3t

@Corbot5000 I didn't know about the 30FPS rule. I would need recordings made with Wireshark, toggling the FPS up and down. And probably more recordings of enabling and disabling HDR.

I don't have such camera to test it myself, and it isn't even sold locally

Itaybre avatar Jan 27 '22 18:01 Itaybre

@Itaybre I have wireshark installed and the window's camera app lets me toggle between "hdr pro" and "hdr off" when I take photos. If you could give me a little more guidance on how to analyze the Kiyo pro in Wireshark, I'd be happy to do it. I can be reached on Discord at Corbot8000#8015

Corb3t avatar Jan 27 '22 21:01 Corb3t

@Itaybre attached are two wireshark logs -

  1. KiyoProHDRProOn.pcapng - HDR Pro already turned on, a few photos taken, video recorded
  2. KiyoProHDROff.pcapng - Turned HDR Pro off, photos taken, video recorded, HDR Pro turned back on
  3. KiyoProHDRoffHDRonHDRoff - HDR Off, photos/video taken, HDR Pro turned on, photos/video taken, HDR turned off

https://drive.google.com/file/d/1b6Jehiyer1171aHhA1ePDN-09gIP-Iyk/view?usp=sharing https://drive.google.com/file/d/1DYPw0M5ro02mZYs9sQxtt2U02bvmNhzO/view?usp=sharing

Corb3t avatar Jan 27 '22 21:01 Corb3t

@Corbot5000 can you do the recording as short as possible? Like just pressing the toggle in the app and wait a couple seconds doing nothing seeing too many rows doesn't help me find the correct ones

Itaybre avatar Jan 27 '22 22:01 Itaybre

@Itaybre Here's the smallest recording I could do of HDR Pro being turned on and off.

https://drive.google.com/file/d/1jLbzS2a_tifFFbSZsh2uj9qDH58_bwqf/view?usp=sharing

Corb3t avatar Jan 28 '22 03:01 Corb3t

Have a Razer Kiyo Pro myself (on Mac M1), and happy to help debug or provide test data as required.

carlosnasillo avatar Feb 02 '22 16:02 carlosnasillo

Razer Kiyo Pro and Mac M1 Max user here, let me know how can I help testing.

lupus2k avatar Feb 17 '22 20:02 lupus2k

Hi, ordered a Razer Kiyo Pro recently and will be happy to help with testing as soon as it arrives.

authorfunction avatar Feb 23 '22 21:02 authorfunction

You can find some code to set the Kiyo Pro custom controls: https://github.com/soyersoyer/kiyoproctrls

soyersoyer avatar Mar 29 '22 20:03 soyersoyer

I tried the code @soyersoyer provided, but there's no /dev/video0 or any other obvious video devices in the /dev directory. The camera is on and working (I tried with it off as well). I am on Monterey (Apple Silicon).

Edit: I just realized that the code was written for Linux, so that explains it. Ignore the above.

authorfunction avatar Mar 29 '22 21:03 authorfunction

I have a Kiyo Pro now and would be happy to test

jaketame avatar May 13 '22 07:05 jaketame

I would be happy to test too 👍

mattheworiordan avatar May 22 '22 08:05 mattheworiordan

I would be happy to test it and try to develop/debug it with some extra help on how to do this. 👍

I would definitely include FOV change into this.

m0nhawk avatar Aug 30 '22 20:08 m0nhawk

Hi All, is there any progress? I'd love to use HDR with my MBP.

cheers, M.

mk3rnb8 avatar Jan 04 '23 09:01 mk3rnb8