- 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)
+ 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
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/ )'