Split FLAC+cue

Feb 17, 2011·
Julio Batista Silva
Julio Batista Silva
· 1 min read
blog Multimedia

Sometimes I come across CDs that have been ripped into a single FLAC file. Players like Foobar2000 list the tracks separately from the cue file. However, unfortunately, MPD does not do this and I have to split the file.

In Linux, the process is quite simple:

  1. Install the dependencies:

    sudo pacman -S cuetools shntool
    
  2. Split the tracks

    cuebreakpoints sample.cue | shnsplit -o flac sample.flac
    
  3. Copy the tags, if any:

    cuetag sample.cue split-track*.flac
    
  4. If the cue is not in a separate file but included in the flac file itself, run the following command first:

    metaflac --show-tag=CUESHEET sample.flac | grep -v ^CUESHEET > sample.cue
    
Julio Batista Silva
Authors
Senior Cloud Developer

I’m a Brazilian computer engineer based in Germany, passionate about tech, science, photography, and languages.

I’ve been programming for about two decades already, exploring everything from mobile apps and web development to machine learning. These days I focus on cloud SRE and data engineering.

I volunteer in the open source and Python communities, helping organize PyCon DE and PyData Berlin, mentoring, and contributing with code and translations.

On my blog, I share Linux tips, setup guides, and personal notes I’ve written for future reference. I hope others find them helpful as well. The content is available in multiple languages.

Browse my gallery for some of my photography.

Away from the keyboard, you’ll find me at concerts, playing clarinet, cycling, scuba diving, or exploring new places, cultures, and cuisines.

Always happy to connect! 🙂

comments powered by Disqus