Script that take music file (mp3, ogg, flac, etc, etc) from playlist and put/convert they on mp3 player with mtp protocol or simple mp3 player . Features:
To use this script on Debian needs of libav-tools, ffmpeg and mtp-tools packages.
Then you need to set Music dir in “DIR” var, playlist filename in “playlist” var, make cache dir and set it in “CACHE” var.
Final chmod +x namescript.sh.
If you use mpd, make a playlist with your favorite client (my favorite is ncmpcpp), save playlist and if you want put mp3 in list on mtp device launch:
or in device that work like memory
namescript.sh p /DIR/
without convert file (for device that support all music file)
namescript.sh p /DIR/ noconv
Where “DIR” is dir where is mp3 player file on filesystem.