Skip to content

Instantly share code, notes, and snippets.

@jonathanMelly
jonathanMelly / vid-to-gif.sh
Last active October 30, 2021 18:15 — forked from anonymous/vid-to-gif.sh
video 2 gif converter
#!/bin/bash
# rev4 - changes suggested by KownBash https://www.reddit.com/r/bash/comments/5cxfqw/i_wrote_a_simple_video_to_gif_bash_script_thought/da19gjz/
# Usage function, displays valid arguments
usage() { echo "Usage: $0 [-f <fps, defaults to 15>] [-w <width, defaults to 480] inputfile" 1>&2; exit 1; }
# set input variable to the first option after the arguments
input="${1}"
anonymous
anonymous / vid-to-gif.sh
Created October 20, 2017 18:52
#!/bin/bash
# rev4 - changes suggested by KownBash https://www.reddit.com/r/bash/comments/5cxfqw/i_wrote_a_simple_video_to_gif_bash_script_thought/da19gjz/
# Usage function, displays valid arguments
usage() { echo "Usage: $0 [-f <fps, defaults to 15>] [-w <width, defaults to 480] inputfile" 1>&2; exit 1; }
# Default variables
fps=15
width=480