[READ-ONLY] Mirror of https://github.com/mrgnw/scripts.
0

Configure Feed

Select the types of activity you want to include in your feed.

video previews

+14
+3
vprev
··· 1 + #!/usr/bin/env zsh 2 + 3 + ffmpeg -i "$1" -vf "scale=iw*min(1920/iw\,1080/ih):ih*min(1920/iw\,1080/ih),fps=5" -t 30 -c:v hevc_videotoolbox -b:v 1M -tag:v hvc1 -y "$(basename "$1").preview.mp4"
+11
vprevs
··· 1 + #!/usr/bin/env zsh 2 + setopt localoptions nocaseglob 3 + 4 + extensions=( 5 + "*.mp4" "*.mov" "*.avi" "*.mkv" 6 + ) 7 + 8 + find . -maxdepth 1 -type f \( \ 9 + $(printf -- "-iname %s -o " "${extensions[@]}" | sed 's/ -o $//') \ 10 + \) -print0 | \ 11 + parallel --bar -0 -j "$(sysctl -n hw.ncpu)" vprev "{}"