0

I have a music album in one FLAC file. There is no CUE file. When I try to play it with VLC or CMUS, it doesn't recognize individual tracks and plays it as one large file.

BUT if I import it into Vox player, it automatically recognizes individual tracks and splits it (gives it proper names and all). How is it possible? What am I missing? How do I make VLC and CMUS recognize the splits without CUE?

EDIT: When I opened the flac file in a hexeditor, after a couple hundreds of symbols I found a long string starting with "CUETools 2.1." and containing all the cue information. How is it possible? Can I extract it? Why does almost no program recognize this type of internal cue instead of external cue file? It even contains the album cover image which is otherwise nowhere to be found in the file folder!

  • .flac files are derived from the Ogg container and can have metadata like cuesheets, cover images and seek tables. ffmpeg should recognize them as chapters. – Gyan Jun 29 '18 at 20:50
  • @Gyan Would you happen to know how to extract full cue with the album artwork? I am on unix and playing flac files with embedded cue is impossible. – Gillian Jun 29 '18 at 21:41
0

You can use metaflac to export both the cuesheet and cover image.

metaflac--export-cuesheet-to=out.cue --export-picture-to=out.png input.flac
| improve this answer | |
  • Good try but it says "ERROR: FLAC file has no CUESHEET block". I can export the image nevertheless, thank you. – Gillian Jun 30 '18 at 6:51
  • Can you share the file? – Gyan Jun 30 '18 at 7:16
  • It's over 350MB. It starts with fLaC, then at 6786th byte cue starts with "CUETools 2.1.6A?ALBUM= [...]" yadayada typical cue, finally cue ends with "REPLAYGAIN_ALBUM_GAIN=-6.90 dBREPLAYGAIN_ALBUM_PEAK=0.997711 TRACKTOTAL=17kà image/png k·PNG" after which (presumably) the album art picture is stored (the PNG signature correctly starts and ends with IEND). And then there is a second PNG picture. I don't know what that is as metaflac gave me only one picture. – Gillian Jun 30 '18 at 9:54
  • I think I could probably export it with CUETools but I'm on unix. – Gillian Jun 30 '18 at 9:56
  • Does metaflac --list input.flac show the cuesheet? – Gyan Jun 30 '18 at 10:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.