Monday, 24 September 2007

mp3togo Usage

Here's a handy script that uses mp3togo to transcode everything in your music library into nice, cleanly tagged mp3 files suitable for use on a portable player. In this case it transcodes using the "tape" preset, which I find perfectly acceptable for the purpose.

To use the script, you'll need to:
  1. Install mp3togo and all related packages
  2. Copy and paste the script into a new text file. Alter the "src" and "out" variables to point to the correct path.
  3. chmod the script executable.
  4. Execute!

#!/bin/sh
src="/media/files/audio/library"
out="/media/files/audio/portable/"
preset="tape"

if [ -f /tmp/mp3togo.m3u ]
then
mp3togo -p /tmp/mp3togo.m3u -d 0 -C lame -E "--preset $preset" --format %a-%l-%t -u -o $out
rm /tmp/mp3togo.m3u
else
find $src -type f > /tmp/mp3togo.tmp
sort /tmp/mp3togo.tmp > /tmp/mp3togo.m3u
rm /tmp/mp3togo.tmp
mp3togo -p /tmp/mp3togo.m3u -d 0 -C lame -E "--preset $preset" --format %a-%l-%t -u -o $out
rm /tmp/mp3togo.m3u
fi

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home