Commit 13126e8d93f308be050f2ec166026987ee2912bf

Authored by DarkGod
1 parent 1b18ce1b

gif maker script

Showing 1 changed file with 18 additions and 0 deletions
  1 +#!/bin/sh
  2 +
  3 +if test -z $1; then
  4 + echo "Usage: giffy <in.ogv> <out.gif> <start second> <duration>"
  5 + exit
  6 +fi
  7 +
  8 +src=$1
  9 +dest=$2
  10 +start_time=$3
  11 +duration=$4
  12 +
  13 +palette="/tmp/palette.png"
  14 +
  15 +filters="fps=15"
  16 +
  17 +/Test/ffmpeg-3.2-64bit-static/ffmpeg -v warning -ss $start_time -t $duration -i $src -vf "$filters,palettegen" -y $palette
  18 +/Test/ffmpeg-3.2-64bit-static/ffmpeg -v warning -ss $start_time -t $duration -i $src -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $dest
... ...