Skip to content

Instantly share code, notes, and snippets.

@CoolOppo
Created May 21, 2015 20:30
Show Gist options
  • Save CoolOppo/92375fe0b0cbef2410f9 to your computer and use it in GitHub Desktop.
Save CoolOppo/92375fe0b0cbef2410f9 to your computer and use it in GitHub Desktop.
Automatically delete the contents of /c/ffmpeg, fetch the latest shared 64-bit build of ffmpeg from Zeranoe, extract it, put it in a tar file whilst deleting the directory contents after the pieces are put into the TAR, then extract the TAR, using --strip-components=2 in order to extract the files directly into /c/ffmpeg rather than /c/ffmpeg/ro…
#!/usr/bin/env bash
cd /c/ffmpeg
rm -rf ./*
aria2c --file-allocation=falloc http://ffmpeg.zeranoe.com/builds/win64/shared/ffmpeg-latest-win64-shared.7z
7z x ffmpeg-latest-win64-shared.7z
rm ffmpeg-latest-win64-shared.7z
tar -c --remove-files -f ffmpeg.tar ./*
tar -x --strip-components=2 -f ffmpeg.tar
rm ffmpeg.tar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment