How to remove fisheye from videos on Ubuntu

5,020

I tried for ages, different solutions, taking me around all kinds of options, installing Shotcut, and so on. In the end, what worked for me was:

Now, you can use frei0r:defish0r like this:

ffmpeg -y -strict -2 -i in.mov -vcodec libx264 -b:v 800k 
-pix_fmt yuv420p -vf frei0r=defish0r:0.75:y:0.6:0 -acodec copy out.mov
Share:
5,020

Related videos on Youtube

Hugh Perkins
Author by

Hugh Perkins

Machine learning engineer. Wrote DeepCL, https://github.com/hughperkins/DeepCL, and a bunch of other GPU/OpenCL things.

Updated on September 18, 2022

Comments

  • Hugh Perkins
    Hugh Perkins almost 2 years

    I have some videos I have taken using a head-mounted video-camera. The camera records the videos with a 'fisheye' effect. How do I remove it?

  • Elisa Cha Cha
    Elisa Cha Cha almost 10 years
    Another option is the lenscorrection filter which has recently been ported from frei0r on 12 Aug. It is a native FFmpeg filter, so it does not need any external libraries.
  • Hugh Perkins
    Hugh Perkins almost 10 years
    (@LordNeckbeard, by the way, thanks for your posting on vidstab, which was one of my best sources on information on getting ffmpeg working, and is where I got the vidstab build information above)
  • ArekBulski
    ArekBulski almost 8 years
    @LordNeckbeard But how do you apply that lenscorrection filter?
  • Elisa Cha Cha
    Elisa Cha Cha almost 8 years
    @ArekBulski I've never actually used it and I am unable to test now so I can only refer you to the lenscorrection filter documentation and Correct lens distortion with ffmpeg.