Created
April 7, 2015 18:04
-
-
Save camb416/08264e1744abfb839fa5 to your computer and use it in GitHub Desktop.
create a slitscan image of 36 seconds of 1080 video
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://cameronbrowning.com/content/creating-slit-scan-images-from-quicktime-movies-with-ffmpeg-on-mac-os-x/ | |
# loop through 1080 images | |
for i in `seq 1 1080`; | |
do | |
# subtract 1 from the counter for the y offset | |
mycmd=$(printf "mogrify -crop 1920x1+0+%d image-%04d.jpg\n" `expr "$i" - "1"` $i) | |
# output the command that's about to be executed | |
# so you can see progress | |
echo $mycmd | |
#now execute it | |
$mycmd | |
done | |
# after this execute this: | |
# montage *.jpg -tile 1x -mode concatenate slitscan.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment