soyersoyer / cameractrls

Camera controls for Linux
Other
590 stars 24 forks source link

[Feature Request] Add ability to load a LUT #15

Closed hyuri closed 1 year ago

hyuri commented 1 year ago

Hi, it would be great to be able to load a LUT (Look-Up Table) file.

soyersoyer commented 1 year ago

What kind of camera do you have? V4L2 doesn't have a control for this yet, but it might be interesting.

hyuri commented 1 year ago

Regular laptop webcam. I was thinking it could be applied on top of the webcam feed but I realize now that this would have to be supported by V4L2, otherwise you would have to re-encode the feed + LUT in real-time and maybe even route it to a different output, right? Which sounds impractical for this.

soyersoyer commented 1 year ago

The USB UVC specification doesn't have anything like this, so it's unlikely that we can upload a LUT to an USB camera. It's possible to add some effect to the camera stream and feed a virtual camera like akvcam, v4l2loopback, (pipewire maybe?). But it's out of scope yet.

You can try webcamoid which has a color transformation plugin.

soyersoyer commented 1 year ago

I've added #20 for these types of feature requests.

hyuri commented 1 year ago

Awesome. Thanks!