Skip to main content

Topic: How do I use CUETools to split FLAC? (Read 34697 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • php111
  • [*][*]
How do I use CUETools to split FLAC?
I honestly tried to keep searching Google for a short easy direct answers to use CUETools to split tracks using the CUE file, but I wasn't understanding how. I am that frustrated to figure this out so I gave up on searching and instead I am posting. How do I split a CUE file into tracks using CUETools?

Thank you,

  • korth
  • [*][*][*][*][*]
How do I use CUETools to split FLAC?
Reply #1
You tried searching threads here?

I assume your input is image+cue. Output is flac tracks.

Input: Folder Browser (select the CUE file, not folder for best first-time results)
Output: your choice Browse, Manual or Template (I'm not going to guess what you want to do)
Action: Encode (Script: default)
Mode: Tracks
Audio Output: Lossless; flac; libflac (I'd start with libflac as it is the most common)
Go

If any popup windows appear, make selections as needed.

reference
[a href='index.php?act=findpost&pid=803567']reference[/a]
korth

  • php111
  • [*][*]
How do I use CUETools to split FLAC?
Reply #2
Thank you so much! Would it be best to leave the Template on default?

  • korth
  • [*][*][*][*][*]
How do I use CUETools to split FLAC?
Reply #3
To be honest I don't remember which of the four default templates shows in the window.

[%directoryname%\]%filename%-new[%unique%].cue
will put the files in the same folder as the input. Be aware that files in use cannot be overwritten and will result in an error message.

[%directoryname%\]new[%unique%]\%filename%.cue
will put the files in a subfolder 'new' within the same folder as the input.

%music%\Converted\%artist%\[%year% - ]%album%[ '('disc %discnumberandname%')'][' ('%releasedateandlabel%')'][' ('%unique%')']\%artist% - %album%.cue
or
%music%\Converted\%artist%\[%year% - ]%album%[' ('%releasedateandlabel%')'][' ('%unique%')']\%artist% - %album%[ '('disc %discnumberandname%')'].cue
either of these will put files in your Windows Music folder in a subfolder 'Converted'.
korth

  • php111
  • [*][*]
How do I use CUETools to split FLAC?
Reply #4
Thank you so much, korth!

  • php111
  • [*][*]
How do I use CUETools to split FLAC?
Reply #5
I just tried doing this now. I get the following error. How do I fix this?

Exception: unable to locate the audio files

  • korth
  • [*][*][*][*][*]
How do I use CUETools to split FLAC?
Reply #6
Did you rename the flac image and not correct the CUE file?

filename.CUE should be in same folder as the flac image filename.flac
The flac image filename.flac should match what's in the CUE file
FILE "filename.flac" WAVE

Note: CUETools can usually autocorrect for filename.wav in the CUE file.
Note2: There is a Correct filenames tool in CUETools
select CUE file
Action: Correct filenames
Mode: Locate files
that will try to find the file(s) and correct the existing CUE (when Overwrite button is highlighted) or create a new filename.flac.cue CUE file. [edit] this tool locates minor filename differences, not for completely renamed files
  • Last Edit: 22 September, 2013, 07:52:44 AM by korth
korth

  • php111
  • [*][*]
How do I use CUETools to split FLAC?
Reply #7
I'll try that a little later. I didn't edit the FLAC image. It was the CUE file. The CUE is incorrect, first being my tracks are listed as 01 - the track name, and in the CUE sheet it's 201. Second being "track name.wav" WAVE, so, yes, I have to correct, and I did not know that before. Thank you!

  • php111
  • [*][*]
How do I use CUETools to split FLAC?
Reply #8
I tried exactly that to correct it and it still cannot locate the audio files. I also deleted my FLAC tracks and then tried correcting it in notepad and correcting the file names in CUETools, but CUETools still gives the error exception: cannot locate the audio files.

  • korth
  • [*][*][*][*][*]
How do I use CUETools to split FLAC?
Reply #9
For every
FILE "filename.flac" WAVE
in the CUE file there has to be an audio file with that same name in the same folder as the CUE file.
Are you sure no audio file is missing or misnamed? No strange 'special characters' in the filename?

I didn't edit the FLAC image. It was the CUE file. The CUE is incorrect, first being my tracks are listed as 01 - the track name, and in the CUE sheet it's 201.

How else did you edit the original CUE file? Could you post it (in a textbox)?

[edit: added 'audio' to describe 'file']
  • Last Edit: 22 September, 2013, 11:56:56 AM by korth
korth

  • php111
  • [*][*]
How do I use CUETools to split FLAC?
Reply #10
Code: [Select]
REM GENRE Soundtrack
REM DATE 2002
REM DISCID 51123707
REM COMMENT "ExactAudioCopy v0.99pb5"
PERFORMER "Grateful Dead"
TITLE "View from the Vault III"
FILE "01 - China Cat Sunflower -].wav" WAVE
  TRACK 01 AUDIO
    TITLE "China Cat Sunflower ->"
    PERFORMER "Grateful Dead"
    INDEX 01 00:00:00
FILE "02 - I Know You Rider -].wav" WAVE
  TRACK 02 AUDIO
    TITLE "I Know You Rider ->"
    PERFORMER "Grateful Dead"
    INDEX 01 00:00:00
FILE "03 - We Can Run -].wav" WAVE
  TRACK 03 AUDIO
    TITLE "We Can Run"
    PERFORMER "Grateful Dead"
    INDEX 01 00:00:00
FILE "04 - Estimated Prophet -].wav" WAVE
  TRACK 04 AUDIO
    TITLE "Estimated Prophet ->"
    PERFORMER "Grateful Dead"
    INDEX 01 00:00:00
FILE "05 - Terrapin Station -].wav" WAVE
  TRACK 05 AUDIO
    TITLE "Terrapin Station ->"
    PERFORMER "Grateful Dead"
    INDEX 01 00:00:00
FILE "06 - Jam -].wav" WAVE
  TRACK 06 AUDIO
    TITLE "Jam ->"
    PERFORMER "Grateful Dead"
    INDEX 01 00:00:00
FILE "07 - Space -].wav" WAVE
  TRACK 07 AUDIO
    TITLE "Space ->"
    PERFORMER "Grateful Dead"
    INDEX 01 00:00:00


1.) I don't know how to use textbox.

2.) I deleted out the FLAC tracks, so I only have the one single CUE file with all tracks in one.

3.) I only used notepad to edit the CUE file.

  • korth
  • [*][*][*][*][*]
How do I use CUETools to split FLAC?
Reply #11
Quote
1.) I don't know how to use textbox.

Sorry I meant codebox.
Quote
2.) I deleted out the FLAC tracks, so I only have the one single CUE file with all tracks in one.

The CUE is only a text file used to provide information to a program about the audio files. The CUE contains no audio. If you deleted all the flac files and have nothing left but the CUE file, you have no audio files to process. That's why CUETools can't locate them.

Re-read [a href='index.php?act=findpost&pid=845590']this post[/a].
  • Last Edit: 22 September, 2013, 11:58:57 AM by korth
korth

How do I use CUETools to split FLAC?
Reply #12
Joined the forum in order to express my Thanks.  Was having the same frustration over single track FLAC/Cue music files and your solution was just-exactly-perfect.  Concise, to the point and I had 100% success on the 1st try.  And that was the 1st time I even encountered CUEtools at all.  So, Thank You with my appreciation for the great assist.

You tried searching threads here?

I assume your input is image+cue. Output is flac tracks.

Input: Folder Browser (select the CUE file, not folder for best first-time results)
Output: your choice Browse, Manual or Template (I'm not going to guess what you want to do)
Action: Encode (Script: default)
Mode: Tracks
Audio Output: Lossless; flac; libflac (I'd start with libflac as it is the most common)
Go

If any popup windows appear, make selections as needed.

reference
[a href='index.php?act=findpost&pid=803567']reference[/a]


  • Jim12
  • [*]
How do I use CUETools to split FLAC?
Reply #13
Thank you for your helpful posts korth. If possible I'd like to ask something on the same topic:

I have single-file FLAC album which I want to split up in individual FLAC files for each track using CUE tools but without hurting the sound quality. Does the different encoder options (libFLAC, FLACCL etc) affect the sound quality? And most importantly, how should I handle the "Compression Level" bar? 

I ask this because I already tried to split a single-file FLAC album, but although the size of the original file is 340 MB, when split it with libFLAC encoder and the compression bar set to 0, the size of the split files is 397 MB in total, which means 57MB larger than the original single file.
However, when I split the same file with the compression level set to 8, the size of the split files is 340 MB in total (equal to the size of the original file).
Does this indicate that when you split a single FLAC file to several separate ones the total size of the separate files will always be larger or perhaps I did something wrong? 

Thanks a lot for your time. 
  • Last Edit: 09 February, 2015, 07:42:25 AM by Jim12

  • julf
  • [*][*][*][*]
How do I use CUETools to split FLAC?
Reply #14
Does the different encoder options (libFLAC, FLACCL etc) affect the sound quality?


No.

Quote
Does this indicate that when you split a single FLAC file to several separate ones the total size of the separate files will always be larger or perhaps I did something wrong?


There is a certain bit of overhead with a FLAc file due to headers, metadata etc., so using the same quality setting, multiple files will take up more space than the single file due to duplicated headers.


  • korth
  • [*][*][*][*][*]
How do I use CUETools to split FLAC?
Reply #15
And most importantly, how should I handle the "Compression Level" bar?

Lower numbers encode faster with less compression, higher numbers encode slower with more compression. Default for libFLAC is -5.
See CUETools FLAC encoders comparison for more info on the different FLAC encoders in CUETools.
korth

  • Jim12
  • [*]
How do I use CUETools to split FLAC?
Reply #16
Does the different encoder options (libFLAC, FLACCL etc) affect the sound quality?


No.

Quote
Does this indicate that when you split a single FLAC file to several separate ones the total size of the separate files will always be larger or perhaps I did something wrong?


There is a certain bit of overhead with a FLAc file due to headers, metadata etc., so using the same quality setting, multiple files will take up more space than the single file due to duplicated headers.


Makes sense. Which options would you recommend for splitting FLAC files without hurting the quality of the original file?

  • Jim12
  • [*]
How do I use CUETools to split FLAC?
Reply #17
And most importantly, how should I handle the "Compression Level" bar?

Lower numbers encode faster with less compression, higher numbers encode slower with more compression. Default for libFLAC is -5.
See CUETools FLAC encoders comparison for more info on the different FLAC encoders in CUETools.

On cuetools wiki it mentions:
libFLAC is a reference FLAC 1.3.1 - It's main advantage is that it's a standard implementation that almost everybody else uses, so it's less likely to cause any problems, but it's less efficient than other.[/i]

Since it is less efficient than the other encoders it probably reduces the quality of the tracks right?

Quote
Lower numbers encode faster with less compression, higher numbers encode slower with more compression. Default for libFLAC is -5.

So if understand correctly, the best option for optimal quality is 0 right?

Thanks.
  • Last Edit: 09 February, 2015, 10:33:05 AM by Jim12

  • lvqcl
  • [*][*][*][*][*]
  • Developer
How do I use CUETools to split FLAC?
Reply #18
So you didn't understand all the previous answers?

How do I use CUETools to split FLAC?
Reply #19
So if understand correctly, the best option for optimal quality is 0 right?
Do you know what lossless means? No difference in quality regardless of setting.

  • julf
  • [*][*][*][*]
How do I use CUETools to split FLAC?
Reply #20
Makes sense. Which options would you recommend for splitting FLAC files without hurting the quality of the original file?


This thread


  • julf
  • [*][*][*][*]
How do I use CUETools to split FLAC?
Reply #21
Since it is less efficient than the other encoders it probably reduces the quality of the tracks right?


No. "Less efficient" means either that the encoding takes a longer time, or that the result takes more space. It is still exactly the same audio data.

Quote
So if understand correctly, the best option for optimal quality is 0 right?


No. The settings only affect how long the encoding process takes, and the file size.  It is still exactly the same audio data.

  • Jim12
  • [*]
How do I use CUETools to split FLAC?
Reply #22
Since it is less efficient than the other encoders it probably reduces the quality of the tracks right?


No. "Less efficient" means either that the encoding takes a longer time, or that the result takes more space. It is still exactly the same audio data.

Quote
So if understand correctly, the best option for optimal quality is 0 right?


No. The settings only affect how long the encoding process takes, and the file size.  It is still exactly the same audio data.

So when using CUE tools to split a FLAC file it would be better to set the compression level to 8 since the size of the files will be smaller and the difference in the encoding time will only be a few seconds.

However, will the playback of those split files affect negatively the battery runtime of my portable player since the processor has more work to do reading highly compressed FLAC files in contrast to less compressed ones?
  • Last Edit: 10 February, 2015, 05:56:12 PM by Jim12

  • mjb2006
  • [*][*][*][*][*]
How do I use CUETools to split FLAC?
Reply #23
However, will the playback of those split files affect negatively the battery runtime of my portable player since the processor has more work to do reading highly compressed FLAC files in contrast to less compressed ones?


That was always the thought, but it turns out to be a non-issue. See posts 7 & 8 of this thread: http://www.hydrogenaud.io/forums/index.php?showtopic=107990

With this in mind, I use maximum compression now.
  • Last Edit: 10 February, 2015, 09:06:23 PM by mjb2006

  • Jim12
  • [*]
How do I use CUETools to split FLAC?
Reply #24
Very interesting, thanks for the input mjb2006.
The difference in the Decode time - Processor occupation is there, but slight indeed.

However, if there's no actual difference neither in the processor occupation nor in the sound quality, why would the option of lower compression level even exist since there are zero advantages to it practically? Just because of the fact that encoding process takes a few seconds less?
The difference in the encoding time is so negligible that it doesn't make complete sense to me.
  • Last Edit: 11 February, 2015, 02:39:58 AM by Jim12