Log in

View Full Version : working with pcm >4gb and flac


ramicio
2nd June 2010, 22:08
so i have a file that is 4.38 gb, and i use goldwave to save it as a raw .snd file. it is really raw pcm and i'm positive.

for flac i use:

flac -8 --endian=little --channels=2 --bps=24 --sample-rate=96000 --sign=signed -o <file> <input file>

and it creates a file that is about 138 mb and 12 seconds.

if i try to add "--input-size=4710451194" it will tell me that flac doesn't support files greater than 2gb, which i have encoded wavs bigger than 2gb with it before. it is v. 1.2.1.

if i chop the file down in goldwave to like 10 seconds and do the above with the .snd file, flac treats it fine.

goldwave saves as flac but it uses its own encoder, i want to have full control. any ideas on what to do here?

Gser
3rd June 2010, 15:18
I use Sony Sound Forge pro 10. It supports large wavs with its own audio format and can encode to flac. There's nothing in the flac specifications that mention a 2gb limit.

ramicio
3rd June 2010, 15:41
yea i know, it sucks. there used to be a 2gb limit prior to 1.1.3. i just found something interesting that the stdin library for c is still limited to 2gb, but as i said i have encoded things between 2gb and 4 before.

TinTime
3rd June 2010, 16:36
eac3to will encode to flac and it will accept wavs larger than 4 gig.

It depends what you mean by "i want to have full control". You can't control the parameters but its operation is the same as the command line you posted (ie it uses best compression and libflac 1.2.1).

ramicio
3rd June 2010, 17:44
it works! thank you so much. i used:

eac3to d:\deeteees.pcm f:\deeteees.flac -override -2 -24 -little -96000

...and it showed the correct time of the file and proceeded to encode!

auto detection didn't quite work, it detected everything correct except 48khz instead of 96khz.

guess i'll just stick to the flac.exe for my music and stick with eac3to for movie stuff. and the funny thing is i forgot eac3to did flac and i have been using it to do DTS-HD MA -> wavs -> goldwave to make 24/96 pcm.