Skip to content

Instantly share code, notes, and snippets.

@arbennett
Forked from patchdynamics/GeoTiff to MPEG
Last active December 5, 2016 06:58
Show Gist options
  • Save arbennett/75c9805945472b012a9d7c34ded86bd4 to your computer and use it in GitHub Desktop.
Save arbennett/75c9805945472b012a9d7c34ded86bd4 to your computer and use it in GitHub Desktop.
Stuff for making a movie out of a sequence of GeoTIFFs
#!/usr/bin/env bash
mogrify -format jpg *.tif
convert xc:black xc:red xc:orange xc:yellow xc:green1 xc:cyan xc:blue xc:blueviolet xc:white +append -filter Cubic -flop rainbow_lut.png
find *.jpg -exec convert {} -colorspace gray rainbow_lut.png -clut {}.colored.jpg \;
convert -antialias -delay 1x15 *.colored.jpg output.mpeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment