X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=bash%2Flame-recoder%2Flamer.bash;h=ff0602e74380dfd45ef46dcaf3ee912abfd48b2b;hb=7d9507345400445e24445d830052f1d81f63d04d;hp=a2b6150acc85fcd96f5276b96699f53b854e0a47;hpb=21c4e16782bf8fee46cf478cd933a9ba11cca1c7;p=mirrors%2FPrograms.git diff --git a/bash/lame-recoder/lamer.bash b/bash/lame-recoder/lamer.bash index a2b6150..ff0602e 100755 --- a/bash/lame-recoder/lamer.bash +++ b/bash/lame-recoder/lamer.bash @@ -27,11 +27,11 @@ echo -e "lame-recursive v$version (Harvie 2o1o) - Supports multiple CPUs/cores Usage: $0 [preset] [cpu-cores] - Example: cd ~/music; $0 standart + Example: cd ~/music; $0 standard Example: cd ~/spoken; $0 voice -presets: - VBR: voice, medium, standart, extreme, insane (= 320kbps CBR) +presets: + VBR: voice, medium, standard, extreme, insane (= 320kbps CBR) ABR: 8, 16, 32, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320 For more info: lame --preset help @@ -39,6 +39,10 @@ cpu-cores: You probably have $cpusguess CPU cores, i will use this value by default Anyway... You can try any value higher than 0 (does not affect sound quality, probably you don't need to change this) + +tips & tricks: + - to quickly visualy check if all files were recoded: + ls -R1 . | sort | less " exit; } @@ -78,11 +82,11 @@ encode() { tsign " Done: '$infile'; retval=$?"; } -echo "==> I will use $cpus CPU cores"; +echo "==> I will use $cpus CPU cores"; export -f encode; export quality outdir lamelog -find -regextype posix-egrep -iregex '.*'"$filetypes" | grep -v /"$outdir" | tr '\r\n' '\0\0' | xargs -0 -n 1 -P "$cpus" bash -c 'encode "$@"' -- +find -regextype posix-egrep -iregex '.*'"$filetypes" | grep -v /"$outdir" | sort -n | tr '\r\n' '\0\0' | xargs -0 -n 1 -P "$cpus" bash -c 'encode "$@"' -- echo ' -==> All files were processed. +==> All files were processed. ==> But you should rather check them before deleting the originals... ==> Thank you for using lame-recursive by Harvie ( http://blog.harvie.cz/ )'