Last active
October 21, 2017 12:53
-
-
Save kokoye2007/51c9a9e9a58cc598bf79073b24d72526 to your computer and use it in GitHub Desktop.
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 characters
#!/bin/bash | |
# http://www.itforeveryone.co.uk/image-to-video.html | |
mkdir small | |
cp *.jpg small/. | |
# change image resolution - resize 200x200 | |
mogrify -resize 200x200 small/*.jpg | |
# Create the morph images | |
convert small/*.jpg -delay 10 -morph 5 small/%05d.jpg | |
# Stitch them together into a video | |
ffmpeg -r 50 -qscale 2 -i small/%05d.jpg output.mp4 | |
#No morph | |
#use easy mencoder | |
# http://superuser.com/questions/249101/how-can-i-combine-30-000-images-into-a-timelapse-movie | |
#I am using frame per second = xxx = 25 and bitrate = yyy = 1200 | |
# add audio ? ok | |
#-oac copy -audiofile BoAungDin.mp3 | |
#mencoder mf://*.jpg -mf fps=xxx:type=jpg -ovc x264 -x264encopts bitrate=yyyy:threads=2 -o outputfile.mkv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment