Skip to content

Instantly share code, notes, and snippets.

@camb416
Created April 7, 2015 18:04
Show Gist options
  • Save camb416/08264e1744abfb839fa5 to your computer and use it in GitHub Desktop.
Save camb416/08264e1744abfb839fa5 to your computer and use it in GitHub Desktop.
create a slitscan image of 36 seconds of 1080 video
#!/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