-
-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add P010 HDR10 video format support #968
Conversation
b04b49b
to
e0037da
Compare
@awawa-dev |
Check out logs, it should lists all available modes there. Is the HDR signal connected to the grabber? Edit: |
Yes, it may be due to the USB cable. I can't connect the original cable, which is included, to my PC/laptop because I don't have a USB-C port. 2024-11-02T19:52:25.246Z [MEDIA_FOUNDATION:UGREEN 25173] UGREEN 25173 1280 x 720 @ 30 fps NV12 (nv12) |
4k capturing is also disabled, only 1080p and compressed formats for limited bandwidth. Did you try to provide 4k signal on the input? But from the symptoms it reminds me of Elgato which behaves similarly if something does not suit it with USB (bad cable, too low port power). But HD60x works with USB-C to USB-C cable and USB-C to USB-A adapter connected to ordinary USB3.0 port. Mine will arrive next week so I will check it thoroughly. |
@awawa-dev And the result is positive!!!! 😀 Now I will try to compile the kernel for RPI Bokworm aarch 64 with their help. |
Great! 🚀 |
@satgit62 I've found simpler method to patch the uvc-v4l2 module: you do not need to recompile whole kernel. I will post details tomorrow. |
@satgit62 Unfortunately some things in Raspberry Pi OS like the source version cannot be obtain so script hardcode-s them. They have recently given up on kernel version-commit markings and there is no way to determine without detective work which version of the kernel sources they probably used as if they wanted to hide something (it's a joke... I suppose?). And RPi-Distro/rpi-source#34 script doesnt work anymore. The more I dig into Raspberry Pi OS the less I want to. Building the entire kernel itself takes about an ~hour on RPi 5 with an SSD drive, if you have a weaker configuration and an SD card it will probably take much, much longer. You can try cross-compiling on PC but I didn't feel like it. An alternative there is my ready SD image with a patched kernel (uvc module only so it's tainted but it doesnt matter) built entirely by Github Action: https://github.com/awawa-dev/P010_for_V4L2/releases/tag/raspios_lite_arm64-2024-10-28 I'm giving up on building full patched & built kernels in my releases because I'd really have to build 2 kernels: one for RPi5 and the other ones. Using the current runners in Github Action and qemu it would probably take a few days ;-) So we're only patching the kernel modules. |
fb07309
to
8d7cf62
Compare
81e040b
to
1c686f4
Compare
I found a bug in YUV limited detection during calibration and ELgato (and possible Hagabis) for some reason is using full range for HDR P010. Fixed it in the latest commit. I dont have UGreen anymore (it used YUV limited range) to check if the calibration is still working fine also for this grabber. Please re-calibrate P010 LUT in the free time after installing new HyperHDR version. |
Tested on Windows with Elgato HD60X.
LUT calibration also supports P010 format.