Skip to content

Instantly share code, notes, and snippets.

@Flushot
Last active December 28, 2015 17:59
Show Gist options
  • Select an option

  • Save Flushot/7539733 to your computer and use it in GitHub Desktop.

Select an option

Save Flushot/7539733 to your computer and use it in GitHub Desktop.
Convert movie file $1 to flash
#!/bin/sh
out_file=output.gif
cut_in="00:00:00.000"
cut_out="00:00:10.000"
[ -f $out_file ] && rm -f $out_file
ffmpeg -ss $cut_in -i $1 -qmax 10 -vb 400k -ar 22050 -ab 32 -f flv -r 15 -s 320x240 -aspect 4:3 -t $cut_out $out_file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment