#!/bin/sh
# generate video for .py and .json commits
gource --highlight-all-users -800x600 --stop-position 0.95 \
       --file-filter '^(?>.*\.)(?!py|json$)' --output-ppm-stream - \
    | ffmpeg -y -b 6000K -r 30 -f image2pipe -vcodec ppm -i - \
             -vcodec mpeg4 -vtag xvid skaapsteker-coding.mp4
# generate video for all commits
gource --highlight-all-users -800x600 --stop-position 0.95 \
       --output-ppm-stream - \
    | ffmpeg -y -b 6000K -r 30 -f image2pipe -vcodec ppm -i - \
             -vcodec mpeg4 -vtag xvid skaapsteker-all.mp4