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:
To use the script, you'll need to:
- Install mp3togo and all related packages
- Copy and paste the script into a new text file. Alter the "src" and "out" variables to point to the correct path.
- chmod the script executable.
- 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: linux script mp3 portable
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home