The below works on Linux. Not sure if it could be made to work on Windows.
E.g. [flac] -dcs $START$ $END$ -- $FILE$ | [tee] /tmp/lms-track | ( sleep 0.5; if test $( [soxi] -r /tmp/lms-track ) -gt 48000; then bandwidth=74; else bandwidth=89; fi; [sox] -q -t flac - -t flac -C 0 - rate -v -b $bandwidth 110600 dither ) If the file has a sampling rate of over 48kHz, then use 74% bandwidth when re-sampling, otherwise use 89%. My actual convert.conf is much more complex than above, BTW. The above is strictly to demonstrate the conditional technique. Check it, add to it! http://www.dr.loudness-war.info/ SB Touch ------------------------------------------------------------------------ darrenyeats's Profile: http://forums.slimdevices.com/member.php?userid=10799 View this thread: http://forums.slimdevices.com/showthread.php?t=107067 _______________________________________________ audiophiles mailing list audiophiles@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/audiophiles