Asymmetric Fisheye correction for OBS studio

If you are using a cheap camera, sports camera or CCTV with wide FOV, you will likely see a distortion on the sides of the image. Advanced driver software may correct this however you may just end up like me and see, the manufacturer’s attempt to fix the issue backfires ending up in asymmetrical correction stronger on one axis than the other.

OBS Shaderfilter comes with an excellent and simple fisheye shader, however it does not take the asymmetric axes in account. Thus, I present the hacked version of this filter, which can correct the oval fisheye distortions.

Once you have installed these, make sure to restart OBS, so the shader filter is loaded.

  • Create your video source, for which you want to apply the fisheye correction, and add a new effect filter.
  • Select User-defined shader as the shader type
  • Within the filter properties select Load shader text from file and select the downloaded shader
  • Set up the correction parameters, that suit your camera lens best
    • center x/y percent should be used if the correction is to be off-center
    • power defines the strength of the correction, negative values should correct, positive ones create fisheye effect.
      • The value to be used depends on the lens you are using. My CCTV 2.8-12mm 1:1.4 lens works with -0.08, but my 4mm lens requires a value around -0.12
    • oval defines the ovality of the image correction in my case 1.25 is the level of asymmetricity of the fisheye effect

One thought on “Asymmetric Fisheye correction for OBS studio

  1. Hello Gergely Papp,
    Thank you for sharing this shader, which helped me a lot.
    I would like to chat with you privately about one of my projects, is that possible?
    Sincerely,
    JMB

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.