HydrogenAudio

Lossless Audio Compression => FLAC => Topic started by: 3cent on 2007-12-08 02:20:32

Title: split a bigger flac in little flac files
Post by: 3cent on 2007-12-08 02:20:32
hi,

i wanna split some big files flac into little flacs. ( bigger flac is the whole cd and little ones would be the songs)

any1 knows how i can do it? perhaps a link to a little utils program or a command line in flac exe?

thanks
Title: split a bigger flac in little flac files
Post by: odyssey on 2007-12-08 02:58:17
You need to reencode. foobar2000 does it in a snap: When the FLAC image has loaded the corresponding CUE file, you rightclick the album track-items and choose Convert to, and select the format of your choice (output will only be an image, if you choose that option).
Title: split a bigger flac in little flac files
Post by: senab on 2007-12-08 09:08:59
It'd be easier to re-encode the FLAC's from CD because you'll get the exact track boundary timings.
Title: split a bigger flac in little flac files
Post by: kjoonlee on 2007-12-08 09:20:45
If you have a cuesheet, then you can use that to split the big FLAC file; you'll still get exact track boundaries.
Title: split a bigger flac in little flac files
Post by: Synthetic Soul on 2007-12-08 11:05:49
If the image files contain cue information in the cuesheet metadata block then FLAC can natively extract on a per-track basis, using --cue (http://flac.sourceforge.net/documentation_tools_flac.html#decoding_options).

However, most users seem to prefer a CUESHEET Vorbis tag to the cuesheet metadata block.  In this case you may as well use foobar, or ACDIR/CuePROC on the command line.
Title: split a bigger flac in little flac files
Post by: Cosmo on 2007-12-08 14:14:43
... or Cue Tools (http://www.hydrogenaudio.org/forums/index.php?showtopic=50113)
Title: split a bigger flac in little flac files
Post by: SamHain86 on 2007-12-08 15:02:33
Foobar2000 does it for me.

Hey Synthetic Soul, how long has it been since we've dealt with splitting image files?

http://www.hydrogenaudio.org/forums/index....showtopic=58813 (http://www.hydrogenaudio.org/forums/index.php?showtopic=58813)
http://www.hydrogenaudio.org/forums/index....showtopic=57563 (http://www.hydrogenaudio.org/forums/index.php?showtopic=57563)
http://www.hydrogenaudio.org/forums/index....showtopic=56536 (http://www.hydrogenaudio.org/forums/index.php?showtopic=56536)
http://www.hydrogenaudio.org/forums/index....showtopic=54775 (http://www.hydrogenaudio.org/forums/index.php?showtopic=54775)
http://www.hydrogenaudio.org/forums/index....showtopic=52193 (http://www.hydrogenaudio.org/forums/index.php?showtopic=52193)
http://www.hydrogenaudio.org/forums/index....showtopic=47847 (http://www.hydrogenaudio.org/forums/index.php?showtopic=47847)
Title: split a bigger flac in little flac files
Post by: CyberFoxx on 2007-12-08 15:25:33
Personally, if the flac has an embedded cuesheet, I just let the flac commandline split it for me.

Code: [Select]
flac -d --cue=1.1-2.1 -o track01.wav CDImage.flac
flac -d --cue=2.1-3.1 -o track02.wav CDImage.flac
flac -d --cue=3.1-4.1 -o track03.wav CDImage.flac
flac -d --cue=4.1-5.1 -o track04.wav CDImage.flac


Then it's just a matter of recompressing the resulting wavs to flac. (Although, I guess you could just pipe it...)
Title: split a bigger flac in little flac files
Post by: Synthetic Soul on 2007-12-08 19:05:56
Hey Synthetic Soul, how long has it been since we've dealt with splitting image files?
Not long enough.

Then it's just a matter of recompressing the resulting wavs to flac. (Although, I guess you could just pipe it...)
Piping would make sense.  I do like this aspect of FLAC.  That said, using foobar or ACDIR is no big deal, and ACDIR handles Monkey's Audio, FLAC and WavPack natively.
Title: split a bigger flac in little flac files
Post by: kjoonlee on 2007-12-12 16:33:57
Is there a way to do something similar to the following?

flac.exe --insert-cuesheet-track-selection-option-here 1 input.flac output.flac



If yes, I can do something like the following with bash:

for X in `seq -w 1 12`
do flac --insert-cuesheet-track-selection-option-here $X input.flac output${X}.flac
done
Title: split a bigger flac in little flac files
Post by: shnutils on 2007-12-12 22:58:00
You might be able to do something like the following (untested):

Code: [Select]
metaflac --export-cuesheet-to - joined.flac | shntool split -o flac joined.flac
Title: split a bigger flac in little flac files
Post by: jcoalson on 2007-12-12 23:50:51
Is there a way to do something similar to the following?

flac.exe --insert-cuesheet-track-selection-option-here 1 input.flac output.flac

the correct syntax would be e.g.
Code: [Select]
flac --cue=3.1 input.flac -o output.flac
but there seem to be some bugs with --cue/--skip and flac->flac encoding which need fixing... will put that on the TODO.