Ask a Question
GoPro Support Hub Find a solution. Share a solution. Ask a question. Stay stoked.
Announcements
Is your GoPro gear up to date? Check to see If it is on our Update page.
Cameras
%3CLINGO-SUB%20id%3D%22lingo-sub-281107%22%20slang%3D%22en-US%22%3EIs%20there%20a%20way%20to%20remove%20GoPro%20fisheye%20using%20ffmpeg%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-281107%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20seems%20possible%20to%20compensate%20the%20fisheye%20distortion%20using%20ffmpeg%20thanks%20to%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22http%3A%2F%2Fwww.ffmpeg.org%2Fffmpeg-all.html%23lenscorrection%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Elenscorrection%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efilter%3A%3C%2FP%3E%3CPRE%3Effmpeg%20-i%20in.mp4%20-vf%20%22lenscorrection%3Dcx%3D0.5%3Acy%3D0.5%3Ak1%3D-.25%3Ak2%3D-.25%22%20out.mp4%3C%2FPRE%3E%3CP%3EWhat%20values%20for%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ek1%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ek2%2C%20particularly%20for%20a%20gopro%3F%20Is%20there%20a%20way%20to%20compute%20them%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-281107%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EHERO7%20Black%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-281115%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20remove%20GoPro%20fisheye%20using%20ffmpeg%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-281115%22%20slang%3D%22en-US%22%3EIt%20would%20also%20depend%20on%20the%20resolution%2C%20FOV%2C%20and%20whether%20or%20not%20zoom%20was%20applied.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-281201%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20remove%20GoPro%20fisheye%20using%20ffmpeg%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-281201%22%20slang%3D%22en-US%22%3E%3CP%3ESeemed%20familiar%20from%20the%20past...just%20google%20the%20post%20up%20top.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHmm.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-281541%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20remove%20GoPro%20fisheye%20using%20ffmpeg%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-281541%22%20slang%3D%22en-US%22%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.gopro.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F4335%22%20target%3D%22_blank%22%3E%40danielr15%3C%2FA%3E%26nbsp%3Bwrote%3A%3CBR%20%2F%3EIt%20would%20also%20depend%20on%20the%20resolution%2C%20FOV%2C%20and%20whether%20or%20not%20zoom%20was%20applied.%20%3CA%20href%3D%22https%3A%2F%2Fmybkexperience.us%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CFONT%20color%3D%22%23000000%22%3Emybkexperience%3C%2FFONT%3E%3C%2FA%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3Ethanks%20for%20trying%20to%20help%20me%20%2C%2C%20but%20this%20method%20not%20working%20to%20me%20%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Reply
Tourist
Posts: 2

Is there a way to remove GoPro fisheye using ffmpeg

It seems possible to compensate the fisheye distortion using ffmpeg thanks to the lenscorrection filter:

ffmpeg -i in.mp4 -vf "lenscorrection=cx=0.5:cy=0.5:k1=-.25:k2=-.25" out.mp4

What values for k1 and k2, particularly for a gopro? Is there a way to compute them?

Adventurer
Posts: 10,339

Re: Is there a way to remove GoPro fisheye using ffmpeg

It would also depend on the resolution, FOV, and whether or not zoom was applied.
Highlighted
Nomad
Posts: 203

Re: Is there a way to remove GoPro fisheye using ffmpeg

Seemed familiar from the past...just google the post up top.

 

Hmm.

Tourist
Posts: 2

Re: Is there a way to remove GoPro fisheye using ffmpeg

[ Edited ]

@danielr15 wrote:
It would also depend on the resolution, FOV, and whether or not zoom was applied. mybkexperience

 

thanks for trying to help me ,, but this method not working to me