Some time ago I had a similar requirement.  My music library consists of
mostly whole album FLACs with separate CUE sheets, but with a number of
lossy tracks in different formats as well.  I wanted a way to convert
every single track in a playlist into MP3 format for use in my car, so I
wrote a script (see below) that runs on my pCP server.  It's very much
tuned to my particular library, so the cases it handles are very
specific:

Lossless input (album FLAC or track FLAC) will always be encoded to MP3
(using sox and lame)
MP3 input will always be copied without transcoding
Other lossy input (OGG, M4A) will be copied without transcoding, unless
the -t option is used, in which case they will be transcoded to MP3
(using sox or faad, and lame).
Title, Artist and Album tags are written to the output files, together
with a Comment tag that documents the origin of the file.

I used my script on a few playlists and it's handled everything I've
given it, but it probably would not take much to break it.  It might be
a useful starting point if you want to adapt something to your own
library though.

It looks like my post becomes too long if I try to include the script
code here, but I'll be happy to post it separately if you think it might
be useful.


------------------------------------------------------------------------
chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=112484

_______________________________________________
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss

Reply via email to