How to import m3u playlist (or other playlist)

At first, Thanks a lot for Volumio !

After “playing a lot with the software”, I realised that I would like to use Volumio at first for very basic functions and I’m not able to do so.
I have a lot of music stored in a local hard-drive, with a lot of playlist (m3u playlist) that I would like to be able to play.
I tried to do so on my raspberry pi 3 + Hifiberry DAC plus Pro and using Volumio 2. I use my tablet as remote control. But it seems that noting happened when I try to access .m3u file ?

I find very efficient and quick to create such m3u playlist file directly from my personnal computer (Browsing easilly every artist / folders and so on). Then I would like just to copy the (relative) m3u files on my hard-drive and command from my tablet to play them by Volumio. But I can’t find any way to play those playlist files in Volumio ?

Am I doing something wrong or is there a way to do this easily ?

Thanks a lot !

Same here, pls and xspf are not working. Vlc android plays them correctly over bluetooth so the playlists seem ok. They are located on my nfs music share.

At this point in time Volumio does not support playlist imports. It would seem to be an ideal candidate for a plugin, if someone fancied working on it :wink: .

Ok, thank you for the information. (Unfortunately, personnally, I don’t have the skills to create such plugin !)
In fact, I would be interested to know if Volumio’s users have and manage their local playlists ? In my point of view, it’s kind of crucial function. Do you agree or am I quite different from the majority ?

I suppose a lot of people have their musics in a local hard drive, and I suppose that a lot of people also have corresponding (relative) playlist file, like m3u file ?
So when you use Volumio, do you just give up this local hard drive playlist function ? Or do you have any trick that I would be able to use also ?

Or does the majority only has kind of spotify playlist ? Or even decided to rebuild all playlists directly with Volumio software ? (Is their a simple way to recreate your playlists ?)
Or in fact, do you create your playlist day by day using your daily inspiration ?

Thank you once more, for your replies and for the work that has been done with Volumio !

No standard playlist functionality is pretty much a show stopper for me. Bummer that mpd misses a widely adapted playlist functionality. So I looked around at some other options. Clementine also falls short, it is more a remote for a desktop, you can import the playlists currently open on your desktop but you cannot save or open new ones. Kodi on the other hand does support normal playlists, works great. Just save your playlists with relative paths in a folder in your collection and you are good to go. So for now I’ll stick to ubuntu+kodi and when the driver for the hifi shield 2 is finished, I can dump pulse and use it in libreelec+kodi.

I was to fast with my conclusions, kodi also has minimal playlist functionality. You can browse through a playlist and select the files but the files in the playlist will not be played in sequence. After one song it will just stop. A laptop on my bookshelf still would have been the best option with regard to usability.

Well, yes… In fact I also thought that Kodi would have been an option to manage simple playlists… But… No !
In fact when I tried, Kodi itself (directly commanded from a computer, with mouse) seems to work fine. But Kodi + remote (Kore or Yatse) fails to play the playlists in correct order. It plays the list in alphabetics order instead of sequence order… And I definitely need the remote…

I posted something on Kodi’s forum. Maybe it’s going to be solved one day…

But in fact, the problem seems old (at least 2 years), Yatse members said it’s not a problem of remote, but a problem of Kodi :

So… For the moment, no solution found. When I started my raspberry hifi system adventure, I couldn’t imagine I would face such kind of problem (I thought “file explorer” would work on any software). And for the moment, I don’t understand how people manage their playlists (I assume lots of people have music in local hard-drive or NAS…)
Anyway, appart from the playlist problem, the rest works fine => Thanks for the great work ! I’ll just wait for this update !

Happen to stumble upon the plugin section of the mpd docs and it does support pls/m3u/xspf playlists when adding them in mpd.conf. Experimenting with cantata as client and it is pretty buggy. For example it does not accept any playlist format with relative paths when the path starts with ‘go dir up’ (…/).
I have ‘music’ as library root and some base folders in it:

This setup fails. I can only open the playlist when it is located at music/cd/playlist.m3u.
music/playlists/playlist.m3u does not work
music/playlist.m3u is not even shown in the mpd file browser in cantata

The playlists that do work can be added to the play queue but not added to the playlist overview and it cannot be added to a new or existing playlist (because it already is a playlist). So it is very basic and limited.
It might also work in volumio. Found in github that:

Volumio2 will have a dedicated MPD emulation interface which will be able to interact with your favorite MPD controller

Let’s hope this is part of the interface / mpd functionality.

Edit: nope does not work.

If you are using a client like mpdroid, the easiest way is to upload your M3U files to /var/lib/mpd/playlists/ Make sure the path to your files is correct: it should start with something like NAS/Music/ (Music is my alias used in menu “My Music”).
Use search and replace with regular expression (^) in a tool like notepad++ if you have to add it.

Putting playlists in /var/lib/mpd/playlists/ doesn’t work for me.

Hence I wrote a simple script m3u2volumio to convert .m3u files into volumio-conform syntax. It can be directly used using SSH and just relies on python3:

m3u2volumio filename.m3u | ssh volumio@volumiocomputer 'cat > /data/playlist/newplaylistname'

I have a long playlist of webradio’s I spread over several computers when it changes. The script works like a charm for this purpose.

unfortunately there is no easy way to import playlists
but if you use certain MPD clients they will load the playlist themselves…

the 2 i use are
on android: MPdroid … ev.mpdroid
windows (and it is multiplatform) i use QMPD client. if the the official site isnt allowing downloads download use
windows users look for “1.1.2 binaries for windows made by Martin Roths” and click on binaries … MPDClient/

heres a list of mpd clients … ki/Clients (the official list was taken down by wikia)

One way to get playlist support is to use Volumio as an OpenHome receiver (instead of using its native interface to control playback).

Install MinimServer on your NAS (or PC, or wherever you store the music files), and use Kazoo/BubbleUpNP/… to control playback. Any of those OpenHome ControlPoints support m3u8 playlists.

Thank you!

I’ve had some luck using Subsonic playlists over DLNA with Volumio. (Note: DLNA functionality requires Subsonic premium at $11 a year. There is a 30 day free trial). It works with MP3 and AAC files without any issues. If you have ALAC files, it’ll show the stream URL instead of the song artist/title.

I’ve had a similar result with MiniDLNA. MP3 and AAC files work as you’d expect. The ALAC files show a number instead of the song artist/title.

I really want to use M3U playlist files with Volumio too, so I developed the feature.

Here’s the pull request:

I only have M3U playlists in my collection, so I’ve only tested it with the M3U format. If any of you have another format like PLS or ASX, and you find it doesn’t work like you expect, can you post a comment on the pull request please?

Hello !
To learn a little during containment, i made this python 3.6 ttk GUI to create playlists files for Volumio 2.x from my extended m3u palylists and / or xspf.
Only process extended .m3u (#EXTM3U in first line) without comment lines (#EXTREM:) and whose info lines (#EXTINF:) are said ‘standard’ (Duration,Artist - Title). Tested m3u and xspf files created by vlc. With no guarantees !
Thanks to smoneck for the idea and sample.
PLtoVolumioPL.7z (13.1 KB)


just ran into this and is what i was looking for.

I’m running it from a mac, do have any idea why i am getting a prompt > after i execute it?
I have enabled ssh and can login to volumio successfully.

Hey temm,

what do you mean by “prompt”? A popup-message? An error message?
Anyway, as a workaround, if you can login to Volumio via ssh, you can always execute it there as Python should be installed there.


I used this today and it mostly worked. I had a complicated set of steps to get a roughly working playlist in Volumio. Prior to running these steps I had all my music on a micro-SD card plugged into a USB adapter that was plugged into one of the USB ports on my device. All the songs played fine when accessing them through the Volumio UI from my iMac.

  1. Export my two playlists in Audirvana on my Mac desktop - these are not in #EXTM3U format

  2. Import each playlist into VLC and export it in #EXTM3U format (VLC ‘lost’ some songs at this point as it showed fewer songs than I have in Audirvana with the same playlists

  3. Run PLtoVolumio for each playlist. I had to substitute the directory leading up to my music directory with the path on the USB drive (something like /mnt/USB/xxxxx…/MyMusic). It complained about literal double quotes in three of the songs for one playlist (" characters). I had to substitute these characters to get a playlist in Volumio format created

  4. Those steps were done on my iMac

  5. I then transferred both playlists on my Volumio device (RPi 4B) using scp from iMac to device into /data/playlist, then SSH’d onto the device to check that they were there

  6. Launch the Volumio UI but the playlists wouldn’t play

  7. It looked like an issue with %20 characters so I used sed to replace %20 with a literal space character in both playlist files

  8. Now both playlists played to some extent on my device!

HOWEVER - I seem to have lost some songs along the way when using the above process. As I play songs from the playlists further and further down, it is playing the wrong song (by a few songs apart).

Anyway, I’m glad I’ve got most of the contents of my two playlists across. It’s not a perfect solution as there’s no album art and some songs are missing. However, it’s a lot better than having no playlist import capability.