Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@idiomatic
Last active January 3, 2021 06:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save idiomatic/b91cc3ad57150ce05b306a2ee484feb0 to your computer and use it in GitHub Desktop.
Save idiomatic/b91cc3ad57150ce05b306a2ee484feb0 to your computer and use it in GitHub Desktop.
(setopt null_glob;
for collection in \
"Very Fast 720p30 --subtitle=none" \
"HQ 720p30 Surround --subtitle=none" \
"Very Fast 480p30 --encoder=x265_10bit --subtitle=none" \
"HQ 1080p30 Surround --encoder=x265_10bit --subtitle=none"; do
preset=${collection%% --*} hbargs=${collection#$preset }
dest=(/Volumes/galactica/Public/Video/*/"$collection"{,/*})
src=(/Volumes/Nostromo/Rip/Blu*Rip{,/*} /Volumes/Archive*/Video/*/Blu*Rip{,/*})
[[ "$preset" != "*1080*" ]] && src=($src /Volumes/Nostromo/Rip/DVD*Rip /Volumes/Archive*/Video/*/DVD*Rip)
out=~/Public/Review/"$collection"
cat ~/titles \
| nice ~/go/bin/titlemap --progress --quiet --color --preset "$preset" $(eval echo $hbargs) --outputdir $out $src $dest $out
done
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment