move compress-music alias to ~/.bin

master
lub 5 years ago
parent f97c72fa84
commit 20bf4fc69a

@ -81,7 +81,6 @@ alias docker='sudo docker'
alias autopurge='sudo pacman -Rns $(pacman -Qdtq)'
alias syu='sudo pacman -Syu; sudo pacman -Rns $(pacman -Qdtq); pacman -Qem; cower -u'
alias d-u='sudo apt update && sudo apt full-upgrade && sudo apt --purge autoremove && sudo apt clean'
alias compress-music='nice -n19 /home/lub/git/scripts/compress-music.sh'
alias pp='git pull -r && git push'
alias statdiff='git status && git diff --staged'

@ -19,5 +19,5 @@ find . -type f -and \( -name '*.mp3' -or -name '*.ogg' -or -name '*.m4a' -or -na
# set +e because ffmpeg errors on .jpg, .txt, etc.
# compress with mp3
set +e
find . -type f -not -name '*.mp3' -not -name '*.ogg' -not -name '*.m4a' -not -name '*.opus' | parallel --eta --progress 'ffmpeg -v 0 -n -i ""{}"" -c:a mp3 -b:a 320 -map_metadata 0 ""$destination/{.}.mp3""'
find . -type f -not -name '*.mp3' -not -name '*.ogg' -not -name '*.m4a' -not -name '*.opus' | parallel --eta --progress 'nice -n19 ffmpeg -v 0 -n -i ""{}"" -c:a mp3 -b:a 320 -map_metadata 0 ""$destination/{.}.mp3""'
#set -e
Loading…
Cancel
Save