Skip to content

Instantly share code, notes, and snippets.

@bewestphal
Created November 11, 2019 05:19
Show Gist options
  • Save bewestphal/ad3986dda9809b662bbd534da3c75046 to your computer and use it in GitHub Desktop.
Save bewestphal/ad3986dda9809b662bbd534da3c75046 to your computer and use it in GitHub Desktop.
CS6475 Generate Texture GIF
#!/bin/bash
# Turns images produced by texture info a gif
INPUT_DIR=candle
ALPHA=0.005
source ~/.bashrc
eval "$(conda shell.bash hook)"
rm -rf videos/out/${INPUT_DIR}
conda activate CS6475
python main.py ${ALPHA} ${INPUT_DIR}
ffmpeg -y -i videos/out/${INPUT_DIR}/frame%04d.png ${INPUT_DIR}_video.gif
open -a "Google Chrome" ./${INPUT_DIR}_video.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment