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?

1 Answer 1


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
  • 2
    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.
    – llogan
    Aug 21, 2014 at 17:57
  • Yes, I fought with lenscorrection for a bit, but then found that defish0r did what I wanted really easily. I've put the defish0r parameters that I used in the command above. I never quite got lenscorrection to work for me. Feel free of course to add an answer that shows how to use lenscorrection. Aug 22, 2014 at 0:35
  • (@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) Aug 22, 2014 at 0:36
  • @LordNeckbeard But how do you apply that lenscorrection filter?
    – ArekBulski
    Jul 13, 2016 at 9:59
  • @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.
    – llogan
    Jul 13, 2016 at 16:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .