Skip to content

Instantly share code, notes, and snippets.

@EricCousineau-TRI
Last active April 15, 2022 16:29
Show Gist options
  • Save EricCousineau-TRI/e7535586c7eec48ae4778f955c31ae97 to your computer and use it in GitHub Desktop.
Save EricCousineau-TRI/e7535586c7eec48ae4778f955c31ae97 to your computer and use it in GitHub Desktop.
build gifski v1.6.4
# Only tested on Ubuntu 20.04
# Not sure if `snap` distro incl. video feature.
cd /somewhere
# rust setup, but don't mess w/ PATH automatically
curl https://sh.rustup.rs -sSf -o rustup.sh
bash ./rustup.sh --no-modify-path
# gifski
# Need to use older ffmpeg bindings: https://github.com/ImageOptim/gifski/issues/225
git clone https://github.com/ImageOptim/gifski -b 1.6.4
cd ./gifski
source ~/.cargo/env
# Need video feature to convert mp4s.
cargo build --release --features=video
# Copy to wherever $PATH is nice and semi-isolated (easily removable).
cp ./target/release/gifski ~/.local/bin/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment