Re: [slim] Writing Playlists to thumb drives for vehicle use

2020-06-27 Thread Roland0


sfraser wrote: 
> I thought maybe I could make some playlists with LMS and copy the
> content to a thumb drive? Each thumbdrive would be a different playlist.
> It would be a neat LMS plugin! Only way I can think of is using a music
> app such as Media Monkey which accepts M3U files and give the app the
> same mount point as LMS uses for the music library.
> 
I've written a script for this scenario (synchronizes audio files
referenced in a playlist (or a directory) to a target folder (in my
case, SD card for car or phone mounted via MTP))
Needs Python 3 (and ffmpeg+mp3gain if lossless should be converted to
lossy)
Tested on Linux, may or may not work on other OSes.
If this is of interest, I can post a D/L link.



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | Playlist
Editor / Generator | Music Classification | Similar Music | Announce |
EventTrigger | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
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


Re: [slim] Writing Playlists to thumb drives for vehicle use

2020-06-27 Thread chill


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