This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/zsh | |
#First, let's grab a random quote | |
RANDOM_QUOTE="https://api.quotable.io/quotes/random" | |
export QUOTE=$(curl -s $RANDOM_QUOTE | jq -r '.[0].content + "\n- " + .[0].author') | |
#Now, let's get some random colours | |
COLOUR_GEN=$(curl 'http://colormind.io/api/' --data-binary '{"model":"default"}' | jq '.result | map("rgb(" + join(",") + ")")') | |
export GRAD_A=$(jq -r '.[0]' <<< $COLOUR_GEN) | |
export GRAD_B=$(jq -r '.[4]' <<< $COLOUR_GEN) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Credit to foone for their changes to this gist: https://gist.github.com/nikhan/26ddd9c4e99bbf209dd7 | |
ffmpeg -i in.mkv -pix_fmt yuv420p -vcodec libx264 -vf scale=640:-1 -acodec aac -vb 1024k -minrate 1024k -maxrate 1024k -bufsize 1024k -ar 44100 -ac 2 -strict experimental -r 30 out.mp4 |