use only 9 threads

master
lub 5 years ago
parent 689dc052a8
commit b59d7767fd

@ -19,5 +19,5 @@ find . -type f -and \( -name '*.mp3' -or -name '*.ogg' -or -name '*.opus' \) -ex
# set +e because ffmpeg errors on .jpg, .txt, etc. # set +e because ffmpeg errors on .jpg, .txt, etc.
# compress with mp3 # compress with mp3
set +e set +e
find . -type f -not -name '*.mp3' -not -name '*.ogg' -not -name '*.opus' | parallel --eta --progress 'nice -n19 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 '*.opus' | parallel --jobs 9 --eta --progress 'nice -n19 ffmpeg -v 0 -n -i ""{}"" -c:a mp3 -b:a 320 -map_metadata 0 ""$destination/{.}.mp3""'
#set -e #set -e

Loading…
Cancel
Save