Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GoPro Studio for Linux
@atom-smasher

This comment has been minimized.

Show comment
Hide comment
@atom-smasher

atom-smasher Jul 18, 2014

Easier/faster/lossless way to concatenate several MP4 files into one big MP4 file:

cd YOUR_GOPRO_FOLDER
MP4Box $( ls -1 G*.MP4 | awk '{print " -cat "$1}' | tr '\n' ' ' ) -new bigfile.mp4

Easier/faster/lossless way to concatenate several MP4 files into one big MP4 file:

cd YOUR_GOPRO_FOLDER
MP4Box $( ls -1 G*.MP4 | awk '{print " -cat "$1}' | tr '\n' ' ' ) -new bigfile.mp4
@KonradIT

This comment has been minimized.

Show comment
Hide comment
Owner

KonradIT commented Jul 20, 2014

@atom-smasher thanks

@alphazo

This comment has been minimized.

Show comment
Hide comment
@alphazo

alphazo Aug 2, 2014

Thanks for this page and especially the Kdenlive preset. I had to go back to Cineform since there is a known sepia tint on all Hero 3+ Black Protune footages but your preset seems to be fixing that as well.
I'm able to use the -dark and -underwater presets but the -indoor and -outdoor presets seem to be broken since I end up with a plain white frame. Can you have a look at them?

alphazo commented Aug 2, 2014

Thanks for this page and especially the Kdenlive preset. I had to go back to Cineform since there is a known sepia tint on all Hero 3+ Black Protune footages but your preset seems to be fixing that as well.
I'm able to use the -dark and -underwater presets but the -indoor and -outdoor presets seem to be broken since I end up with a plain white frame. Can you have a look at them?

@nebirhos

This comment has been minimized.

Show comment
Hide comment
@nebirhos

nebirhos 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

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

This comment has been minimized.

Show comment
Hide comment
@christolb29

christolb29 Dec 28, 2014

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.

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.

@pdizzle

This comment has been minimized.

Show comment
Hide comment
@pdizzle

pdizzle 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

pdizzle 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

This comment has been minimized.

Show comment
Hide comment
@fjunkgo

fjunkgo 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.

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

This comment has been minimized.

Show comment
Hide comment
@btilford

btilford May 12, 2015

@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.

@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

This comment has been minimized.

Show comment
Hide comment
@ebadi

ebadi 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. :)

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

This comment has been minimized.

Show comment
Hide comment
@btilford

btilford Aug 21, 2015

@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.

@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

This comment has been minimized.

Show comment
Hide comment

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

@amueller

This comment has been minimized.

Show comment
Hide comment
@amueller

amueller Jan 26, 2016

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

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

@yebo29

This comment has been minimized.

Show comment
Hide comment
@yebo29

yebo29 Oct 10, 2016

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

yebo29 commented Oct 10, 2016

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

@spanjaard

This comment has been minimized.

Show comment
Hide comment
@spanjaard

spanjaard Oct 12, 2016

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

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

@erickeller

This comment has been minimized.

Show comment
Hide comment
@erickeller

erickeller Nov 14, 2016

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

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

@xiangshuii

This comment has been minimized.

Show comment
Hide comment
@xiangshuii

xiangshuii Feb 17, 2017

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

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

@dlparker

This comment has been minimized.

Show comment
Hide comment
@dlparker

dlparker 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)

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