Skip to content

Instantly share code, notes, and snippets.

@KonradIT
Last active July 11, 2024 20:46
Show Gist options
  • Save KonradIT/ee685aee15ba1c3c44b4 to your computer and use it in GitHub Desktop.
Save KonradIT/ee685aee15ba1c3c44b4 to your computer and use it in GitHub Desktop.
GoPro Studio for Linux
@nebirhos
Copy link

nebirhos commented Dec 6, 2014

@KonradIT really cool, thanks!

To skip a photo every N when creating timelapse, generate the list with

ls -1tr | sed -n '0~Np' > gopro.txt

@christolb29
Copy link

Thanks for this great page, very useful and even better than using goPro studio.
I have some questions about timelapse encoding. I'm using a goPro Hero which takes timelapse picture sized 2592x1944. Then if I use the command line -vf scale=1920:1080, I get black strip at each side of the result video. It's quite normal because the picture has a 4:3 ratio and the output video is 16:9, but I would like to take off this black part. One solution I found with mencoder, is to crop the picture, so that I get a 16:9 size :
-vf crop=2592:1458:0:243,scale=1920:1080

Another solution is a width stretch of the input picture, but I still did not find how to do that. Is there anybody who found a good solution for this issue?

EDIT : I found out that the autoaspect option was responsible for the black strip, remove it and the pixel width is stretched. Then no need to crop but the aspect ratio is not kept.

@pm0u
Copy link

pm0u commented Dec 29, 2014

Any recommendations for a gopro hero 4? (silver) I'm going to start messing around in KDEnlive to figure it out in the meantime

@fjunkgo
Copy link

fjunkgo commented Mar 28, 2015

hello,

many thanks for your tutorial. I have got a sjcam 5000. The parameters are quiet good for reducing fisheye effects on picture. But, parameters are not good for the script python/kdenlive.

Do you know how to compute these parameters? or by chance... does anyone has already parameters for sjcam 5000.

Regards

here is a reference to sjcam
http://www.sjcam.com/home/32-sjcam-sj5000-wifi-action-camera.html

here are some results using the mogrify option for sjcam5000
mogrify -distort barrel "0 0 -0.3" *.JPG
https://www.dropbox.com/sh/talp7h69b5h8zwh/AAC-2LCxIYHxtxlmiNch9DqCa?dl=0

I updated the dropbox with videos generated with kdenlive.
The parameters for "Lens Correction"
Horizontal/Vertical Center=500
Center Correction:265
Edges:530
Brightness: 500

I really think that they are not optimal. If someone has better value. Feel Free to comment.

@btilford
Copy link

@pdizzle did you ever get the hero 4 figured out?

I've been using

Horizontal Center 494
Vertical Center 619
Center correction 270
Edges correction 524
Brightness 562

And it's close but not quite there.

@ebadi
Copy link

ebadi commented Jun 25, 2015

Thanks @btilford : How did you come up with these values ? Are you aware of better parameters ?
btw, Center correction:300 works better for me. :)

@btilford
Copy link

@ebadi I started with the Hero 3 stuff from above and tried to get things to look right. Wasn't able to get it 100% though.

@ponchoblesa
Copy link

Some other scripts based on this page: https://github.com/ponchoblesa/GoPro-Studio-for-linux

@amueller
Copy link

does anyone have good fisheye correction for the current "gopro hero"?

@yebo29
Copy link

yebo29 commented Oct 10, 2016

@btilford @ebadi Center Correction of 400 worked perfect for me

@spanjaard
Copy link

thanks a million for all the information. amazing work. does anybody have the parameters for gopro hero 5 black?

@erickeller
Copy link

depending on the ffmpeg version you have to replace -sameq with -qscale 0

@xiangshuii
Copy link

You may try use iDealshare VideoGo to convert GoPro CineForm video to MP4, AVI, FLV, WMV, MKV, ASF, MPG, ProRes etc

@dlparker
Copy link

dlparker commented Jun 2, 2017

depending on the ffmpeg version you have to replace -sameq with -qscale 0

My version required -q:v 0 instead.

I also needed -strict -2 to get it to handle the audio (I think)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment