Skip to content

Instantly share code, notes, and snippets.

@kekneus373
Created January 12, 2026 15:17
Show Gist options
  • Select an option

  • Save kekneus373/b47db127623733da2773280ef545b8de to your computer and use it in GitHub Desktop.

Select an option

Save kekneus373/b47db127623733da2773280ef545b8de to your computer and use it in GitHub Desktop.
[CDDA] Audio CD Splitting and Burning Guide (FLAC+CUE sources)

Audio CD Splitting and Burning Guide

Steps

  1. Convert FLAC to WAV

    ffmpeg -i cd.flac cd.wav
  2. Copy and modify CUE file

    Original:

    # (...)
    FILE "cd.flac" WAVE
    # (...)
    

    Modified:

    # (...)
    FILE "cd.wav" WAVE
    # (...)
    
  3. Install shntool and split the file

    sudo apt install shntool
    shnsplit -f cd-modified.cue -o wav cd.wav  # cd.wav is taken from step 1
  4. Convert everything back to FLAC

    for wav in split-track*.wav; do flac="${wav%.wav}.flac"; ffmpeg -i "$wav" "$flac"; done
  5. Install cuetools and tag the split tracks

    sudo apt install cuetools
    cuetag cd-original.cue split-track*.flac
  6. Put every split-track.flac to new audio CD project in Brasero*

  7. Verify that you didn't lose anything and the tracks are properly arranged

  8. Burn


Hope This Helps (HTH)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment