Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Splitting large flac+cue into mutiple flac files (Read 16985 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Splitting large flac+cue into mutiple flac files

Reply #25
Newbie Flac and EAC user questions.

1. What is best method to convert single flac to individual flac tracks?  (this is mainly for just playing in audio player, however I absolutely want to convert to individual tracks, not simply play single flac tracks using cue sheet.)
What is best method if I wanted to reproduce the original CD or is there enough info here?

I rip to using EAC/Autoflac
I play Flac using Winamp

See Sample single Flac cue sheet below.
(I did not rip this file, I d/l it.)


2. When editing Flac tracks with MP3tag, (i.e. no tag info only file names), does this mess up the flac file in a way that will not match the attached cue sheet.  (Again this is for downloaded stuff, all my cd rips have the tags).


Any help is greatly appreciated!

Sample Single Flac's cue sheet.
REM DISCID 4C0ACD06
REM COMMENT "ExactAudioCopy v0.95b4"
PERFORMER "Carlos Santana & Buddy Miles"
TITLE "Carlos Santana & Buddy Miles! Live!"
FILE "Carlos Santana & Buddy Miles - Carlos Santana & Buddy Miles! Live!.wav" WAVE
  TRACK 01 AUDIO
    TITLE "Marbles"
    PERFORMER "Carlos Santana & Buddy Miles"
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    TITLE "Lava"
    PERFORMER "Carlos Santana & Buddy Miles"
    INDEX 01 04:18:25
  TRACK 03 AUDIO
    TITLE "Evil Ways"
    PERFORMER "Carlos Santana & Buddy Miles"
    INDEX 00 06:28:64
    INDEX 01 06:31:42
  TRACK 04 AUDIO
    TITLE "Faith Interlude"
    PERFORMER "Carlos Santana & Buddy Miles"
    INDEX 01 13:07:72
  TRACK 05 AUDIO
    TITLE "Them Changes"
    PERFORMER "Carlos Santana & Buddy Miles"
    INDEX 01 15:20:45
  TRACK 06 AUDIO
    TITLE "Free Form Funkafide Filth"
    PERFORMER "Carlos Santana & Buddy Miles"
    INDEX 00 21:10:43
    INDEX 01 21:12:07

Splitting large flac+cue into mutiple flac files

Reply #26
1.  Reread this thread.  Also take a look at the wiki.  foobar is the easiest, but as greynol points out in this thread you may lose HTOA tracks if you have any.  I can't think of an easy way to know without looking at all your cuesheets individually - you need to see whether TRACK 01 INDEX 01 is more than two seconds into the audio (see example below, and wiki) - in which case TRACK 01 INDEX 00 has some audio data, which you may want.  ACDIR can prepend that data onto track 1, or as greynol suggests you can create a new cuesheet that sets TRACK 01 INDEX 00 as TRACK 01 INDEX 01, TRACK 02 INDEX 01 as TRACK 03 INDEX 01, etc.

Edit: I have used this technique before, and just created a secondary small cuesheet with two tracks - the first being the HTOA track, and the second being all the  other tracks.  E.g.:

Code: [Select]
PERFORMER "Bloc Party"
TITLE "Silent Alarm"
FILE "Bloc Party - Silent Alarm.flac" WAVE
TRACK 01 AUDIO
   TITLE "Like Eating Glass"
   PERFORMER "Bloc Party"
   INDEX 00 00:00:00
   INDEX 01 03:22:70
TRACK 02 AUDIO
   TITLE "Helicopter"
   PERFORMER "Bloc Party"
   INDEX 00 07:42:69
   INDEX 01 07:44:69
...

... to:

Code: [Select]
PERFORMER "Bloc Party"
TITLE "Silent Alarm"
FILE "Bloc Party - Silent Alarm.flac" WAVE
TRACK 01 AUDIO
   TITLE "HTOA Track"
   PERFORMER "Bloc Party"
   INDEX 01 00:00:00
TRACK 02 AUDIO
   TITLE "All Other Tracks"
   PERFORMER "Bloc Party"
   INDEX 01 03:22:70

2.  Having crappy tags won't affect the integrity of the audio data.
I'm on a horse.

Splitting large flac+cue into mutiple flac files

Reply #27
Ohhhh.... good, I thought I was getting yelled at for not reading this thread thoroughly enough. I just got hijacked : -)

I just realized (397 albums later) that my cue files aren't even in the proper format (didn't preserve index 0 at all... and I thought that I researched this to death), so the cue files are all screwed up anyway. So I am pretty sure that I won't be harmed at all by just reencoding everything through foobar. Really sucks that I just tainted 397 albums because I messed up a cuesheet setting.... ugh. I guess that I will just do that from here on out. Real downer though. Here's a sample, in case you care.

REM GENRE Rock
REM DATE 2002
REM DISCID DB0BA20E
REM COMMENT ExactAudioCopy v0.95b2
PERFORMER "Nirvana"
TITLE "Nirvana"
REM REPLAYGAIN_ALBUM_GAIN -8.69 dB
REM REPLAYGAIN_ALBUM_PEAK 1.000000
FILE "Nirvana - Nirvana.flac" WAVE
  TRACK 01 AUDIO
    TITLE "You Know You're Right"
    REM REPLAYGAIN_TRACK_GAIN -8.84 dB
    REM REPLAYGAIN_TRACK_PEAK 1.000000
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    TITLE "About A Girl"
    REM REPLAYGAIN_TRACK_GAIN -8.53 dB
    REM REPLAYGAIN_TRACK_PEAK 1.000000
    INDEX 01 03:38:02
  TRACK 03 AUDIO
    TITLE "Been A Son"
    REM REPLAYGAIN_TRACK_GAIN -10.59 dB
    REM REPLAYGAIN_TRACK_PEAK 1.000000
    INDEX 01 06:27:15
  TRACK 04 AUDIO
    TITLE "Sliver"
    REM REPLAYGAIN_TRACK_GAIN -9.37 dB
    REM REPLAYGAIN_TRACK_PEAK 1.000000
    INDEX 01 08:51:10
  TRACK 05 AUDIO
    TITLE "Smells Like Teen Spirit"
    REM REPLAYGAIN_TRACK_GAIN -8.86 dB
    REM REPLAYGAIN_TRACK_PEAK 1.000000
    INDEX 01 11:05:12
  TRACK 06 AUDIO
    TITLE "Come As You Are"
    REM REPLAYGAIN_TRACK_GAIN -8.00 dB
    REM REPLAYGAIN_TRACK_PEAK 1.000000
    INDEX 01 16:06:37
  TRACK 07 AUDIO
    TITLE "Lithium"
    REM REPLAYGAIN_TRACK_GAIN -8.61 dB
    REM REPLAYGAIN_TRACK_PEAK 1.000000
    INDEX 01 19:45:40
  TRACK 08 AUDIO
    TITLE "In Bloom"
    REM REPLAYGAIN_TRACK_GAIN -8.26 dB
    REM REPLAYGAIN_TRACK_PEAK 1.000000
    INDEX 01 24:02:52
  TRACK 09 AUDIO
    TITLE "Heart-Shaped Box"
    REM REPLAYGAIN_TRACK_GAIN -9.33 dB
    REM REPLAYGAIN_TRACK_PEAK 0.999084
    INDEX 01 28:17:50
  TRACK 10 AUDIO
    TITLE "Pennyroyal Tea"
    REM REPLAYGAIN_TRACK_GAIN -7.48 dB
    REM REPLAYGAIN_TRACK_PEAK 1.000000
    INDEX 01 33:00:10
  TRACK 11 AUDIO
    TITLE "Rape Me"
    REM REPLAYGAIN_TRACK_GAIN -8.27 dB
    REM REPLAYGAIN_TRACK_PEAK 1.000000
    INDEX 01 36:37:60
  TRACK 12 AUDIO
    TITLE "Dumb"
    REM REPLAYGAIN_TRACK_GAIN -7.41 dB
    REM REPLAYGAIN_TRACK_PEAK 1.000000
    INDEX 01 39:29:10
  TRACK 13 AUDIO
    TITLE "All Apologies"
    REM REPLAYGAIN_TRACK_GAIN -7.97 dB
    REM REPLAYGAIN_TRACK_PEAK 1.000000
    INDEX 01 42:03:40
  TRACK 14 AUDIO
    TITLE "The Man Who Sold The World"
    REM REPLAYGAIN_TRACK_GAIN -7.21 dB
    REM REPLAYGAIN_TRACK_PEAK 0.999878
    INDEX 01 45:51:37


:-(

Splitting large flac+cue into mutiple flac files

Reply #28
I just realized (397 albums later) that my cue files aren't even in the proper format (didn't preserve index 0 at all... and I thought that I researched this to death), so the cue files are all screwed up anyway.
Have you checked many cuesheets?  IIRC there is no way that you could ignore INDEX 00 entries, not all cuesheets have them.  It may be worth checking a few more.

I could be hideously wrong of course, but I can't yet think how you would have specified not to include them; unless the component that wrote your RG info removed them?
I'm on a horse.

Splitting large flac+cue into mutiple flac files

Reply #29
I believe that there is a setting in EAC for 'compatible/noncompatible' (etc) cuesheets. I don't know if anyone else has come across this, but I apparently chose the wrong option. Argh.

Splitting large flac+cue into mutiple flac files

Reply #30
You can produce non-compliant cuesheets with EAC, but only for multi-track ripping.

I still suggest that you examine a few more.
I'm on a horse.

Splitting large flac+cue into mutiple flac files

Reply #31
Ok, I will grep that in linux when I get home.

Splitting large flac+cue into mutiple flac files

Reply #32
Argh... sorry, I keep trying to outsmart you, and you keep shooting me down. I thought that INDEX 00's are always in those files. It turned out that I looked at like 5 of my old files with no 00 index, and 5 new files with it, and assumed that all of my old ones were wrong because none had INDEX 00 in them. Just probability working against me, I guess. I will keep you posted with any questions once I reencode all of my old files with the offset flag. Thanks for everything.

Splitting large flac+cue into mutiple flac files

Reply #33
I made a special version of CUE Tools that can ignore the extra samples at the end so you don't have to fix all the files before converting the cuesheets.  See the CUE Tools thread.

Splitting large flac+cue into mutiple flac files

Reply #34
Thanks, but my computer at home is working as we speak : -) it should be almost done by the time I get back (just finished the F's last night)

Once those are done, however, does cue tools conversion method save pregaps? (Between index 00 and 01 on track 1?) Or is there no good way to automatically retain pregap information?

Splitting large flac+cue into mutiple flac files

Reply #35
The cuesheets it produces are the same as what EAC produces, that is, it is only possible to keep the audio for index 0 on track 1 for the "single file" or "gaps prepended" ("corrected" as EAC calls it) styles.  For "gaps appended" ("noncompliant") and of course for "gaps left out", index 0 of track 1 is written to the cuesheet as "PREGAP" which indicates that silence should be inserted at that area.

So, if you convert between "single file" and "gaps prepended", this audio will be preserved, otherwise it is discarded.

It would be possible to keep index 0 track 1 audio in a separate file for the "gaps appended" style.  For example, right now EAC and CUE Tools write "gaps appended" cuesheets like this:

Code: [Select]
FILE "01-McFly-5_Colours_In_Her_Hair.flac" WAVE
  TRACK 01 AUDIO
    PREGAP 02:22:07
    INDEX 01 00:00:00


But they could be written as:

Code: [Select]
FILE "01-McFly-(Hidden_Track).flac" WAVE
  TRACK 01 AUDIO
    INDEX 00 00:00:00
FILE "01-McFly-5_Colours_In_Her_Hair.flac" WAVE
    INDEX 01 00:00:00


CUE Tools is able to read cuesheets like this, but who knows if any other applications would be able to read this format.

Splitting large flac+cue into mutiple flac files

Reply #36
So essentially, if you use CUE Tools to split the files up, you will end up with all the data there, but you don't know if anything can play the cuesheet directly. If I am only worried about playing the the .flac file itself, as opposed to the .flac file through the cuesheet, will that work for me in that case?

Also, there is no way for CUE Tools to automatically tag the files, is there? Because that would take literally DAYS to manually tag 400 albums. If that is true, I might have to unfortunately use foobar to convert my monolithic files to individual tracks, and just risk losing all of my pregap information... any input? Thanks guys, you have been a huge help.

Splitting large flac+cue into mutiple flac files

Reply #37
No... with the current versions of CUE Tools, you will lose index 0 track 1 if you split the files using the gaps appended style.  I only said it would be possible to keep all the data in this case, but CUE Tools currently cannot write cuesheets like this (it can read them though).

And unfortunately CUE Tools is not able to read or write tags.

Splitting large flac+cue into mutiple flac files

Reply #38
Ohhhhhhh, I thought you were saying that it HAD a prepend gaps option. My bad, that makes sense though. I think I am just going to try to find a sample file with a large pregap and futz with it until I can reliably hold onto that data. Thanks guys, and I will keep checking back if anyone has any additional suggestions.

Splitting large flac+cue into mutiple flac files

Reply #39
It does have a prepend gaps option but I'm not sure if you would want to use this.  It does preserve index 0 track 1 and it is well supported in programs that read cuesheets.  But the gaps are put at the beginning of every track.  For example if there is a 2 second gap between track 6 and 7, the gap would be put at the beginning of track 7.  Usually though the gap is either silence or part of the end of track 6, so it IMHO it doesn't sound good to put it at the beginning of the file for track 7.  This is why people prefer to use the gaps appended (noncompliant) style cuesheets.


Splitting large flac+cue into mutiple flac files

Reply #41
X-o
I am now officially at a loss as to what to do... I'll be busy rereading the thread a few times now. I thought this might make sense once I re-encoded those files with the offset, but no such luck yet... the prepending argument does make sense though, I just have to figure out how I am going to implement this split.

edit:
Basically, everything would work fine with foobar except for the fact that the first gap won't be preserved... I don't know why I am posting this, mostly just thinking to myself.

edit2:
Stop me if this sounds like a bad idea, but I think that I am going to start out by simply converting everything that doesn't have index 00 entries in them just by giving them to foobar2000 as is... that will drastically reduce my list of files that I have to mess with pregaps for. I will figure out the rest as them come... feel free to let me know about any more cool tips/tricks for this though, I will be checking the post. Thanks everyone!

 

Splitting large flac+cue into mutiple flac files

Reply #42
Stop me if this sounds like a bad idea, but I think that I am going to start out by simply converting everything that doesn't have index 00 entries in them just by giving them to foobar2000 as is... that will drastically reduce my list of files that I have to mess with pregaps for. I will figure out the rest as them come... feel free to let me know about any more cool tips/tricks for this though, I will be checking the post. Thanks everyone!

Sounds good to me.  CDs with index 0 track 1 are rare so I don't worry about it much.  Out of my 79 CDs, only 4 have this.  2 of those are just completely silent during index 0, so only the other 2 actually contain hidden audio data.

I think the idea of the noncompliant noncompliant () cuesheets for these rare cases seems pretty good, I will see about adding support for writing these to the next version of CUE Tools.

EDIT:  @greynol, I see you mentioned this type of cuesheet a while back.  Have you tested reading them in Burrrn, EAC, or anything else?

Splitting large flac+cue into mutiple flac files

Reply #43
Usually the index before the first track [...] is just digital silence (null samples) and can be preserved with a simple pregap line in the cue sheet.

Indeed. Just split everything with gaps appended, which will probably be correct 99.99% of the time. It's easier to deal with the other 0.01% later.

You can use foobar, but it's not going to generate a new cue sheet which holds the PREGAP...

Splitting large flac+cue into mutiple flac files

Reply #44

Usually the index before the first track [...] is just digital silence (null samples) and can be preserved with a simple pregap line in the cue sheet.

Indeed. Just split everything with gaps appended, which will probably be correct 99.99% of the time. It's easier to deal with the other 0.01% later.

You can use foobar, but it's not going to generate a new cue sheet which holds the PREGAP...


So if I don't use foobar, CUE Tools is my only option? I would use it but it is going to be a royal headache to have to redo all of those tags! Maybe do the conversion in foobar AND CUE Tools, and just use the cuesheet from CUE Tools?

Splitting large flac+cue into mutiple flac files

Reply #45


Usually the index before the first track [...] is just digital silence (null samples) and can be preserved with a simple pregap line in the cue sheet.

Indeed. Just split everything with gaps appended, which will probably be correct 99.99% of the time. It's easier to deal with the other 0.01% later.

You can use foobar, but it's not going to generate a new cue sheet which holds the PREGAP...


So if I don't use foobar, CUE Tools is my only option? I would use it but it is going to be a royal headache to have to redo all of those tags! Maybe do the conversion in foobar AND CUE Tools, and just use the cuesheet from CUE Tools?


Im sorry, I forgot about one thing... the silence will still actually exist in the audio, as split by either foobar or CUE Tools it seems. So having the PREGAP in the cue wouldn't be sufficient ; that gap would also have to be removed from track one's audio.



One big question is - after your tracks are split, do you still need a cue sheet?

Splitting large flac+cue into mutiple flac files

Reply #46
Pfffff....... I've got nothing now.......

There's no way to create a CD from flac files if I were to get rid of the cue file, at least to my knowledge... so unless there is another way, yeah, I would need the cuesheet.

Splitting large flac+cue into mutiple flac files

Reply #47
Im sorry, I forgot about one thing... the silence will still actually exist in the audio, as split by either foobar or CUE Tools it seems. So having the PREGAP in the cue wouldn't be sufficient ; that gap would also have to be removed from track one's audio.

Are you saying that if you used CUE Tools with gaps appended option or foobar2000 to split, hidden audio before track 1 would remain in the output audio?  This is not true with CUE Tools, it does remove that audio, and I'm pretty sure foobar2000 does as well (at least when I play a cuesheet with HTOA it skips that part, I assume the same thing would happen when writing to separate files).

Splitting large flac+cue into mutiple flac files

Reply #48
edit:see below. Too many fast replies : -0

Splitting large flac+cue into mutiple flac files

Reply #49
Are you saying that if you used CUE Tools with gaps appended option or foobar2000 to split, hidden audio before track 1 would remain in the output audio?

Yeah, somehow thats what I was thinking. Sorry! Thanks for the quick correction!

Yeah, so it seems good enough to use foobar to convert the audio and CUE tools to convert the cue.
At least EAC would support such a cue, if nothing else.

The albums that have actual non-null audio in the track one pregap will need special handling...