Lens Color correction - use in raspivid

I am using Arducam M12 IMX219 camera in a Pi project.

At the start I had very bad color (okay in center, very red around the sides) but I downloaded the Lens Color correction files and it is much better using raspistill_M12_100_lens

My problem is I need to have the color correction when I take videos using PiCamera or raspivid.

How can I use the color correction with video?





Using raspivid, you should modify the source code and add lens shading fix interface. you can refer to the 6by9’s project https://github.com/6by9/userland.git.

Let me know if you need more help.