Skip to content

Instantly share code, notes, and snippets.

@kokoye2007
Last active October 21, 2017 12:53
Show Gist options
  • Save kokoye2007/51c9a9e9a58cc598bf79073b24d72526 to your computer and use it in GitHub Desktop.
Save kokoye2007/51c9a9e9a58cc598bf79073b24d72526 to your computer and use it in GitHub Desktop.
#!/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