Compare commits

...

3 Commits

Author SHA1 Message Date
xfnw 2cf8581662 datamosh ffmpeg alias 2022-05-29 14:04:02 -04:00
xfnw 772347b52f deshake ffmpeg alias 2022-05-29 13:57:56 -04:00
xfnw fbe2c628e3 add default identity to rage 2022-05-29 12:39:55 -04:00
1 changed files with 3 additions and 0 deletions

3
.zshrc
View File

@ -14,6 +14,8 @@ smoothplot() { gnuplot -p -e 'set object rectangle from screen 0,0 to screen 1,1
calcpi() { echo "scale=$1; 16*a(1/5)-4*a(1/239)" | bc -l ; }
vhsify() { ffmpeg -i "$1" -vf fps=24,scale="(iw*sar)*max(640/(iw*sar)\,480/ih):ih*max(640/(iw*sar)\,480/ih)",crop=640:480,setsar=1:1,convolution="-2 -1 0 -1 1 1 0 1 2:-2 -1 0 -1 1 1 0 1 2:-2 -1 0 -1 1 1 0 1 2:-2 -1 0 -1 1 1 0 1 2",curves="0/0 0.5/0.58 1/1",rgbashift=rh=-1:gh=1 -preset veryfast -c:a copy "$2" }
deshake() { ffmpeg -i "$1" -vf "format=rgb24,split[a][b];[a]deshake=rx=64:ry=64:edge=0,colorkey=0x008000:blend=0:similarity=.2[a];[b]drawbox=color=black:t=fill[b];[b][a]overlay" -c:a copy "$2" "$3" "$4"}
datamosh() { ffmpeg -i "$1" -c copy -bsf:v noise=drop='gt(pts/tb\,30)*key' "$2" }
base58gen() { echo $(base64 /dev/urandom | tr -d "\n/+Il0O$2" | head -c ${$(($1/5.*8+1))%.*}) }
@ -24,6 +26,7 @@ alias ytdl="yt-dlp --extract-audio --audio-format mp3"
alias ssk="ssh-keygen -l -f ~/.ssh/known_hosts | grep"
alias qqemu="qemu-system-x86_64 -display gtk,zoom-to-fit=on -nic user -hdd"
alias gitversion='printf "r%s.%s\n" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"'
alias rage="rage -i ~/.age/private"
alias sydi="sudo"
alias rn="rm -i"