<p>Frei0r effects has a lenscorrection module:
<a href="https://ffmpeg.org/ffmpeg-filters.html#frei0r-1" rel="nofollow">https://ffmpeg.org/ffmpeg-filters.html#frei0r-1</a></p>

<p>this is an example to remove the fisheye distortion of a samyang 7.5mm</p>

<blockquote>
  <p>-filter_complex 'frei0r=lenscorrection:0.5:0.5:0.16:0.6'</p>
</blockquote>

<p>this is the docs from the mlt framework for frei0r lenscorrection
<a href="https://www.mltframework.org/bin/view/MLT/FilterFrei0r-lenscorrection" rel="nofollow">https://www.mltframework.org/bin/view/MLT/FilterFrei0r-lenscorrection</a></p>

CC BY-SA 3.0
2016-03-16T20:40:02.187Z
2016-03-16T20:40:02.187Z
Hans Meiser
<p>Based on an an answer to <a href="https://video.stackexchange.com/questions/14772/correct-lens-distortion-with-ffmpeg">Correct lens distortion with ffmpeg</a> it is possible with the <a href="http://docs.opencv.org/2.4/doc/tutorials/calib3d/camera_calibration/camera_calibration.html" rel="nofollow noreferrer">OpenCV toolkit</a></p>

<p>(That may also mean this is a duplicate question)</p>

CC BY-SA 3.0
2015-12-17T15:23:53.383Z
2015-12-17T15:23:53.383Z
2017-04-13T12:46:08.110Z
TafT
<p>Is there a Linux command-line option to do lens correction on videos?  (Either as a tool, or a collection of tools)</p>

<p>Specifically, GoPro videos?  I know I can do correction in GoPro Studio, but I need something that I can incorporate into a batch process.</p>

CC BY-SA 3.0
2015-12-17T15:24:11.273Z
Possible duplicate of http://video.stackexchange.com/questions/14772/correct-lens-distortion-with-ffmpeg which provides a possible answer.
TafT
CC BY-SA 3.0
2016-11-19T18:28:21.687Z
See [Is there a way to remove GoPro fisheye using ffmpeg](http://stackoverflow.com/a/40659507/1109017).
llogan
CC BY-SA 3.0
2014-09-26T13:10:54.133Z
On the Photo.SE site a [very similar question](http://photo.stackexchange.com/q/41260/9161) was asked and answered (by me). While not directly applicable to a video file, I think you should fairly easily be able to convert video to a series of images (with e.g. [ffmpeg](https://www.ffmpeg.org)), apply the correction to the images and combine everything back to a video again.
Saaru Lindestøkke
<editing>
Linux command-line option to do video lens correction?
payne
# Linux command-line option to do video lens correction?

(Asked by: username_0 on 2014-09-21)

Is there a Linux command-line option to do lens correction on videos? (Either as a tool, or a collection of tools)

Specifically, GoPro videos? I know I can do correction in GoPro Studio, but I need something that I can incorporate into a batch process.

**Tags:** editing

> **Comments:**
> **username_3**: On the Photo.SE site a [very similar question](http://photo.stackexchange.com/q/41260/9161) was asked and answered (by me). While not directly applicable to a video file, I think you should fairly easily be able to convert video to a series of images (with e.g. [ffmpeg](https://www.ffmpeg.org)), apply the correction to the images and combine everything back to a video again.  
> **username_1**: Possible duplicate of http://video.stackexchange.com/questions/14772/correct-lens-distortion-with-ffmpeg which provides a possible answer.  
> **username_2**: See [Is there a way to remove GoPro fisheye using ffmpeg](http://stackoverflow.com/a/40659507/1109017).  

---

## 2 answers

### Answer by username_4 on 2016-03-16. Score: 2

Frei0r effects has a lenscorrection module:
<https://ffmpeg.org/ffmpeg-filters.html#frei0r-1>

this is an example to remove the fisheye distortion of a samyang 7.5mm

> -filter\_complex 'frei0r=lenscorrection:0.5:0.5:0.16:0.6'

this is the docs from the mlt framework for frei0r lenscorrection
<https://www.mltframework.org/bin/view/MLT/FilterFrei0r-lenscorrection>


---

### Answer by username_1 on 2015-12-17. Score: 0

Based on an an answer to [Correct lens distortion with ffmpeg](https://video.stackexchange.com/questions/14772/correct-lens-distortion-with-ffmpeg) it is possible with the [OpenCV toolkit](http://docs.opencv.org/2.4/doc/tutorials/calib3d/camera_calibration/camera_calibration.html)

(That may also mean this is a duplicate question)


---

