Allow .cue files

Hi People.

Will be great if Volumio allow .cue files, because too many files FLAC are in only once file :slight_smile:

Seriously, this feature will be great :mrgreen:

Thanks

Itā€™s almost a year Iā€™m unsuccessfully trying to get this accomplished, of course any help is appreciated on that! :wink:

Rockbox does it successfully, can you borrow any of their code?

download.rockbox.org/daily/manua ā€¦ 1290007.13

In the meantime, mpdroid handles .cue files if you have an Android phone.

Iā€™m going to upgrade from Volumio to Raspyfi and see if cue support works. My collection is entirely single file flac so not having cue support is like having a car without a steering wheel; it doesnā€™t matter how pretty the paint job is how big the engine is; Itā€™s unusable.

Hi!
Even if this is not the solution you are looking for, what I did is to split single Flac file with .cue into several files with auto tagging and renaming. I did it with Ubuntu, itā€™s fast and easy to do and now Iā€™m able to listen the track I want with Volumio.

Splitting 1 Terra collection is not so easyā€¦

Any news about .cue files support? I know that mpd supports cue files, I donā€™t understand why mpd on volumio doesnā€™t support itā€¦

Hi,

Iā€™m not particularly aware of this issue since Iā€™m not using cue files, but itā€™s interesting to know that mpdroid manage them. It means thereā€™s probably a way to do it in volumio (I mean, without having to re-write everything) ; mpdroid is open-source, on github, it should be interesting to have a look at the code
github.com/abarisain/dmix

I have tested mpdroid and it only lists the cue files if you browse in file system, no throw album or artist. It only lists the cue file, you donā€™t see the tracks, and if you play it, volumio plays the first track and if you select next track volumio plays next track! So there is no listing of the tracks in the library. I donā€™t know if that helpsā€¦

Runeaudio seems to have cue files working. Hereā€™s their commit:

https://github.com/RuneAudio/RuneUI/commit/d1654c2e422579a2f50358f8fe4acbe42548ed1a

Recently I deployed Volumio 1.51 on my Rasberry with HiFiBerry Digi. Itā€™s great player, I have much positive to say, but will keep it for another post. My post is about .cue files. I find playing .cue files is quite important feature to product usability.

Iā€™m new in this field, although with some experience as a programmer. I would like to share my idea how to implement .cue support. Iā€™ve just read MPD documentation and this suggestion is based on my, possibly wrong, understanding of the subject. So this is it:

  • When ā€œadd to playlistā€ is chosen for .cue file while browsing the library, the effect should be similar to adding a folder, i.e. should result in adding multiple entries in the current playlist
  • In a typical case when one flac file contains multiple tracks, first the chosen .cue is parsed and following data is extracted: URI of the flac file (e.g. xyz.flac), time offset of the start and end of each track.
  • For each track, make another entry of the flac file (xyz.flac in our example) by addid command and use the rangeid command to set the start and end position of the track
    I now, itā€™s more a workaround, not a genuine solutionā€¦

hello.
I use mpd client ā€œncmpcppā€ to access Volumio.
By using ncmpcpp, i can add cue sheet to the playlist.
When add cue sheet, trackā€™s names is shown on the playlist, And you can select track you want and play it.
mpd client ā€œgmpcā€ supports cue sheet too. I use gmpc on Windows 7 to access Volumio.

I read on web that Volumioā€™s interface uses mpd client ā€œmpcā€ in background, and mpc doesnā€™t support cue sheet.
I Think this is the reason Volumioā€™s interface cannot support cue sheet.

Hi,

I understand would be beatifull to have MPD on Volumio supporting .cue files, but indeed i think is a problem in MPD, since Iā€™m not aware of any client that correctly handle them. I Was in touch with cantataā€™s developer and we tried to 'copy ā€™ the way gmpc do, but we discovered itā€™s only listing the cue as a file, so no hope to have tracks, albums, composer, director and artists listend in the library.

Maybe something has changed, I donā€™t know butā€¦ who cares! Volumio now supports Squeezelite so all the rich features we are used as squeezebox users are in our hands, starting from a very good integrated support of .cue files.

GREAT!

Soory, I add a postscript.
I missed to write a point. I use flac files and cue files. I donā€™t use other format files.
WAV format file may not work with cue sheet on mpd system, I read that on the web beforeā€¦

Hi,

thanks to flyingnote to correct himself, he saved me some work.

Too bad, seems cue sheet are evil for programmers, they think we all have to use tags instead and try to force you to do.

Iā€™m not aware of any player supporting 100% .cue files, the best I know (and is the one I use) is Squeezebox + Logitech media server, is not complete but much better than other, native support for Composer, Director and Band let you file classical music in a far better better way than just by Artist and - most important - every functionality in SB is the same for tagged files and cue files defined tracks.

I really suggest who is comfortable with Volumio to not give up just becouse missing support of .cue file in MPD and MPC, but give a try to Squeezelite and LMS.

Thanks, Marco.

CUE work very well on Volumio (RPI), but only in MPDroid (google play app).

Thanks for the hint, MPDroid makes such a wonderful supplement to Volumio.

Given that client communication is plain text (see musicpd.org/doc/protocol/)
I managed to eavesdrop gmpcā€™s communication with MPD (using wireshark).
(You can enter the following commands yourself by doing ā€œtelnet volumio.local 6600ā€)

Here is gmpcā€™s startup dialog:

commands
notcommands
tagtypes
outputs
status
urlhandlers
outputs
stats
listplaylistinfo ā€œFavoritesā€

and here it is adding a .cue to the playlist:

lsinfo ā€œ/ā€
lsinfo ā€œNASā€
ā€¦
lsinfo ā€œNAS/albums/Air/2001 - 10 000Hz Legendā€

listplaylists
command_list_begin
load ā€œNAS/albums/Air/2001 - 10 000Hz Legend/2001 - AIR - 10 000Hz Legend.cueā€
command_list_end

status
ā€¦
playlist: 3
playlistlength: 11
ā€¦

command_list_begin
playlistinfo ā€œ0ā€
playlistinfo ā€œ1ā€
playlistinfo ā€œ2ā€
playlistinfo ā€œ3ā€
playlistinfo ā€œ4ā€
playlistinfo ā€œ5ā€
playlistinfo ā€œ6ā€
playlistinfo ā€œ7ā€
playlistinfo ā€œ8ā€
playlistinfo ā€œ9ā€
playlistinfo ā€œ10ā€ < (=ā€œplaylistlength: 11ā€ -1)
command_list_end

So gmpc uses the ā€œloadā€ command (which adds a playlist to the active queue). It then asks MPD to list each of the queue entries so it can display them.

I created a test folder with two files in it:

  1. a Flac file with embedded cue sheet
  2. a cue sheet (.cue)

Using telnet to talk to MPD, it listed three entries in that folder:

lsinfo NAS/test
file: NAS/test/Angelica.flac
playlist: NAS/test/Angelica.flac
playlist: NAS/test/Angelica.cue

However if you try and ā€œload NAS/test/Angelica.flacā€ it responds with ā€œACK [50@0] {load} No such playlistā€
while ā€œload NAS/test/Angelica.cueā€ works and you can see the individual tracks in the playlist.

$ telnet volumio.local 6600
OK MPD 0.19.0
lsinfo NAS/test
file: NAS/test/Angelica.flac
Last-Modified: 2015-02-23T21:58:05Z
Time: 644
Artist: Angelica
AlbumArtist: Angelica
playlist: NAS/test/Angelica.flac
playlist: NAS/test/Angelica.cue
Last-Modified: 2015-02-23T18:04:09Z
OK
load NAS/NAS1/test/Angelica.flac
ACK [50@0] {load} No such playlist
load NAS/NAS1/test/Angelica.cue
OK

Using Volumio web interface I can see the three entries:
Angelica.flac 10:44
Angelica.flac
Angelica.cue

However if I ā€œaddā€ the first two entries they appear as one ā€œwhole fileā€ entry in the playlist. If a ā€œaddā€ the cue sheet nothing appears in the playlist.

This points to two seperate issues:

  1. MPD seems to be unable to load a flac file with embedded cue sheet as a playlist (using the load command)
    This seems to me to be BROKEN in MPD (if someone has a flac file with embedded cue that works can you supply the output from e.g. ā€œmetaflac --list Angelica.flacā€).
  2. Volumio does not use the ā€œloadā€ command on cue sheets (or the flac playlist item) This seems to be incorrect Volumio behaviour (I havent found a way to eavesdrop on volumioā€™s communication with MPD so dont know what it does do).

After some more digging I can get Volumioā€™s web interface to load cue files as playlists (the same as gmpc) by editing the following file:
/var/www/inc/player_lib.php

search for the line containing ā€˜m3uā€™ (approx line 399):

 if ($fileext == 'm3u' OR $fileext == 'pls' OR strpos($path, '/') === false) {

and change it to:
if ($fileext == 'm3u' OR $fileext == 'cue' OR $fileext == 'pls' OR strpos($path, '/') === false) {
You will need to reboot to pick up the changes.

While the real solution to all this is for the MPD music database to support multi track files, If somebody is up for a coding challenge then I suggest modifying a client to do this:

[code]$ telnet volumio.local 6600
lsinfo ā€œ/ā€
ā€¦
lsinfo ā€œNAS/testā€
file: NAS/test/Angelica.flac
Last-Modified: 2015-02-25T13:53:58Z
Time: 644
playlist: NAS/test/Angelica.flac
playlist: NAS/test/Angelica.cue

listplaylistinfo NAS/test/Angelica.cue
ā€¦
file: NAS/test/Angelica.flac
Range: 250.560-385.626
Last-Modified: 2015-02-25T13:53:58Z
Genre: Indie
Date: 1999
AlbumArtist: Angelica
Album: Bring Back Her Head
Track: 02
Title: Nothing Special
Artist: Angelica
Time: 135
ā€¦[/code]

Extract from this information the Track number, Title, Artist, Time (duration)
and display it in the GUI interface like individual files are displayed.
Then adding e.g. track 2 becomes:

load "NAS/test/Angelica.cue"  1

(note listplaylistinfo lists tracks from 1 but the load command indexes them from zero)

Again the flac playlist entry should work but doesnt which looks like an MPD problem.

UPD!
Previous code some help,
But if files many (not only one), cue not work!

Looking for audio player options for a new hifi-berry project.

Very disappointed to see that there is no proper support for single-file flac + cuesheet in Volumio. Like many ppl with lots of classical music and live jazz albums I chose to keep my collection in Flacs + cuesheets to preserve as-close an image as possible to my original CDs. This is a fairly large collection of about 3000 albums. A few hundred of these are hi-res / HD-audio FLACs.

For those in a similar situation wondering what to use, XBMC / Kodi provide great support for this format. It scans and indexes the cuesheets and ignores untagged FLAC images, and it can scan the collection from your NAS or from local storage, transparently.

For my new audio-only build I was hoping to go with Volumio but it seems I will have to go with Openelec.

Honestly, it sounds a bit bizzare that Volumio calls itself an audiophile player and does not provide support for this common format amongst audiophiles.

p.s. for local playback in your fedora / linux desktop, ā€œaudaciousā€ recently added Library scanning support for this format as well (they have been able to play back cue files forever, but only recently added library support).