User Tools

Site Tools


Backup a cd with flac compression in an mka container

This page describes a method to backup the contents of an audio cd with FLAC lossless compression to a matroska MKA container. Compression is about 50%, and in this single mka file there may also be a cue file (with track information), EAC log file (with extracting information) and album artwork.1)


MKA files with flac compression play natively in VLC media player and in MS Windows on Media Player Classic (with ffdshow audio decoder installed). Once an mka file is properly encoded, media players will show buttons for navigating to previous and next tracks.


  • Exact Audio Copy (V0.99 beta 5) link
  • MKVToolnix: link

EAC is shipped with proper settings for flac encoding. Follow the installer wizard, select options for flac encoding. For freedb, set “Your E-Mail address” to an e-mail address

Extracting CD's

1. EAC

  • Start EAC
  • In the menu Action → Copy Image & Create CUE Sheet → Compressed… → (Make sure .flac is selected as file type) → Enter a file name

2. MKVmerge GUI

  • Start mkvmerge GUI

(Another option to automate the mka process, would be using command line. See: 2) )

input tab

  • Add the .flac file

Attachments tab

  • Add the .cue file, select it, check that its MIME type is text/plain, set in the description field: Original CUE Sheet
  • Add the .log file, select it, check that its MIME type is text/plain, set in the description field: EAC Log

Global tab

  • In the field File/segment title, add a title, which is the title of the CD.
  • In the field Chapters, Chapter file, click on the browse butten and select the .cue file again which you added in the previous tab.
  • In the field Cue name format enter: %t 3)


You're done, click on the button Start muxing

Converting mka to wav

/Applications/MPlayer OSX -vo null -ao pcm:file=/Users/fluffy/out.wav input.mka

Written in Feb. and edited in July 2009 by Marc Nijdam
mkvmerge -q -o "%album%.flac.mka" "%album%.flac" --attachment-mime-type text/plain --attachment-description "EAC Log" --attach-file "%album%.log" --attachment-mime-type text/plain --attachment-description "Original CUE Sheet" --attach-file "%album%.cue" --title "%album%" --chapters "%album%.cue"
This is if your cuesheet contains only the titles of the tracks.
software/cd_backup.txt · Last modified: 2014/06/09 14:39 by admin