Page 1 of 1

Question about cue-file support for FLAC

Posted: August 28th, 2018, 8:38 am
by conta
Hi there,

the changelog of MPD 0.20.21 tells me, that its finally possible to use cue-files with FLAC. I definitely want to use these feature and tested it - unfortunately with bad result. :?

So i looked in the documentation https://www.musicpd.org/doc/html/user.html, but sadly, the help-text for the usage of cue-files is very short. Btw. thanks for regenerating the documentation-pages, the part which is already new is much easier to understand!

So, the only thing i learnd about cue-files and MPD, is that MPD does not understand embedded cue-files. The tag "CUESHEET" is not read, so i have to place a seperated cue-file. Is this right?

Question: What are the rules for the naming and the content of the cue-file? To which standard do you refer?

My test-sample contains a flac-file with no tags and a cue-file with the same file-name and very common content. When i then search with the client MPDroid for it in the database, i don't find anything. When i search for the cue-file in the folder-structure, the seperated files are shown quite well and it is possible to start each song seperated.
So it looks like MPD is able to understand cue-files, but does not integrate the content to its database. Is this right?

And here is the cue-file i used for testing:
REM GENRE Rock
REM DATE 1969
PERFORMER "Josefus"
TITLE "Get Off My Case"
FILE "Josefus - Get Off My Case.flac" WAVE
TRACK 01 AUDIO
TITLE "Crazy Man"
PERFORMER "Josefus"
INDEX 01 00:00:00
TRACK 02 AUDIO
TITLE "Country Boy"
PERFORMER "Josefus"
INDEX 01 03:43:32
TRACK 03 AUDIO
TITLE "Get Off My Case"
PERFORMER "Josefus"
INDEX 01 07:01:15
TRACK 04 AUDIO
TITLE "A Social Song"
PERFORMER "Josefus"
INDEX 01 11:01:00
TRACK 05 AUDIO
TITLE "Feelin' Good"
PERFORMER "Josefus"
INDEX 01 13:36:12
TRACK 06 AUDIO
TITLE "Situation"
PERFORMER "Josefus"
INDEX 01 19:41:15
TRACK 07 AUDIO
TITLE "Dead Man"
PERFORMER "Josefus"
INDEX 01 21:56:17

Re: Question about cue-file support for FLAC

Posted: August 28th, 2018, 9:13 am
by max
The change in 0.20.21 has nothing to do with your use case. Look at your CUE file:

Code: Select all

FILE "Josefus - Get Off My Case.flac" WAVE
This is type "WAVE", not "FLAC" (but it refers to a FLAC file, which is correct).
MPD does not understand embedded cue-files.
Yes, it does.
The tag "CUESHEET" is not read, so i have to place a seperated cue-file. Is this right?
Not right. MPD can read both embedded CUE sheets in the "CUESHEET" tag and separate CUE files.
So it looks like MPD is able to understand cue-files, but does not integrate the content to its database. Is this right?
Right. There's a feature request for this: https://github.com/MusicPlayerDaemon/MPD/issues/39

.. but right now, you can only load CUE sheets (embedded or not) using the "load" command into the queue, and a client can use the "listplaylistinfo" command to show the contents of CUE sheets. But the contents of CUE sheets are not made part of the database (yet), and thus cannot be searched.

Re: Question about cue-file support for FLAC

Posted: August 28th, 2018, 10:06 am
by conta
@max
Thanks for the clearification!

MPD does not understand embedded cue-files.
I supposed that, because the "CUESHEET"-tag is not listed in the documentation.

This is type "WAVE", not "FLAC" (but it refers to a FLAC file, which is correct)
It seems this is due to the syntax of cue-sheets. At least Cuetools generates it automatically this way.

And yes, i know the feature-request you refered to. I hoped, that with 0.20.21 this feature is integrated... :roll:
So i hope the database-integration will soon be ready!

In the meantime big thanks for you work with MPD! Except this feature the musicplayer works perfectly for me :!: