-
Star
(121)
You must be signed in to star a gist -
Fork
(21)
You must be signed in to fork a gist
-
-
Save alexellis/bbf2bc2a6789480fcd0031f99800df9c to your computer and use it in GitHub Desktop.
Revisions
-
porjo revised this gist
Nov 10, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,9 @@ ### Convert sequence of JPEG images to MP4 video `ffmpeg -r 24 -pattern_type glob -i '*.JPG' -i DSC_%04d.JPG -s hd1080 -vcodec libx264 timelapse.mp4` - `-r 24` - output frame rate - `-pattern_type glob -i '*.JPG'` - all JPG files in the current directory - `-i DSC_%04d.JPG` - e.g. DSC_0397.JPG - `-s hd1080` - 1920x1080 resolution -
porjo revised this gist
Nov 7, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,6 +14,6 @@ Add the following after `-vcodec libx264` to achieve better quality output `-crf 18 -preset slow` ### Bulk convert JPGs to 1920x1080, centered `convert input.jpg -resize '1920x1080^' -gravity center -crop '1920x1080+0+0' output.jpg` -
porjo revised this gist
Nov 7, 2016 . 1 changed file with 6 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,4 +11,9 @@ Add the following after `-vcodec libx264` to achieve better quality output `-crf 18 -preset slow` ### Bulk JPGs to 1920x1080, centered `convert input.jpg -resize '1920x1080^' -gravity center -crop '1920x1080+0+0' output.jpg` -
Ian Bishop revised this gist
Dec 31, 2014 . 1 changed file with 6 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,11 +2,13 @@ `ffmpeg -r 24 -start_number 32 -i DSC_%04d.JPG -s hd1080 -vcodec libx264 timelapse.mp4` - `-r 24` - output frame rate - `-start_number 32` - if filenames don't start at 0000, then specify start number - `-i DSC_%04d.JPG` - e.g. DSC_0397.JPG - `-s hd1080` - 1920x1080 resolution #### Slower, better quality Add the following after `-vcodec libx264` to achieve better quality output `-crf 18 -preset slow` -
Ian Bishop revised this gist
Dec 31, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,6 +7,6 @@ `-i DSC_%04d.JPG` - e.g. DSC_0397.JPG `-s hd1080` - 1920x1080 resolution #### Slower, better quality `-crf 18 -preset slow` -
Ian Bishop revised this gist
Dec 31, 2014 . 2 changed files with 12 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ ### Convert sequence of JPEG images to MP4 video `ffmpeg -r 24 -start_number 32 -i DSC_%04d.JPG -s hd1080 -vcodec libx264 timelapse.mp4` `-r 24` - output frame rate `-start_number 32` - if filenames don't start at 0000, then specify start number `-i DSC_%04d.JPG` - e.g. DSC_0397.JPG `-s hd1080` - 1920x1080 resolution # Slower, better quality `-crf 18 -preset slow` This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +0,0 @@ -
Ian Bishop revised this gist
Dec 31, 2014 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,6 @@ ffmpeg -r 24 -start_number 32 -i DSC_%04d.JPG -s hd1080 -vcodec libx264 timelapse.mp4 # -r 24 - output frame rate # -start_number 32 - if filenames don't start at 0000, then specify start number # -i DSC_%04d.JPG - e.g. DSC_0397.JPG # -s hd1080 - 1920x1080 resolution -
Ian Bishop created this gist
Dec 31, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ ffmpeg -r 24 -start_number 32 -i DSC_%04d.JPG -s hd1080 -vcodec libx264 timelapse.mp4 # -r 24 - output frame rate # -i DSC_%04d.JPG - e.g. DSC_0397.JPG # -s hd1080 - 1920x1080 resolution