Help - Search - Members - Calendar
Full Version: Decoding large FLAC file
Hydrogenaudio Forums > Lossless Audio Compression > FLAC
Northwinds
I'm having problems decoding a large FLAC file. It's 1.4G in size and is recognised and plays on my pc as the full 8 hours but when I try to decode it to wav (I primarily want it on my ipod) it only decodes to a 90 minute file.

This happens in every program I've tried including Flac frontend.

I've tried using the Rockbox OS on my ipod, which plays flacs natively, but it's not incredibly stable on mine so I'd rather change it to a wav.

Any suggestions please?
Thanks
Northwinds.
tuffy
You're probably running into a limitation of the wav format, which isn't going to be able to hold 8 hours of audio in its data chunk unless its resolution is especially low. You might have more luck cutting it into a few smaller wav files, or transcoding the whole thing to mp3.
Nick.C
Depending on sample-rate, 8 hours at 44.1kHz, 16 bits-per-sample, stereo would be 5080320000 bytes or 4.73GB. The limit for a RIFF WAV file is 4294967282 bytes or 14 bytes under 4GB. That may be the problem.
pawelq
QUOTE (tuffy @ Nov 7 2009, 10:14) *
which isn't going to be able to hold 8 hours of audio in its data chunk unless its resolution is especially low.


Not only you cannot store more than 2147483646 bytes in the 'data' (or any other chunk). The entire file, that is, all chunks, cannot exceed 2147483654 bytes.
pawelq
QUOTE (Nick.C @ Nov 7 2009, 11:04) *
The limit for a RIFF WAV file is 4294967282 bytes or 14 bytes under 4GB.


You're right: the specification of the format uses unsigned 4-byte values for the 'size' field. I have been warned though, that it is not uncommon for actual implementation to use signed values, which reduces the capacities to just below 2 GB.
Xire
QUOTE (Northwinds @ Nov 7 2009, 17:13) *
Any suggestions please?
Thanks
Northwinds.


Convert it to ALAC - it's supported by iPOD and is loseless as FLAC.
Northwinds
QUOTE (Xire @ Nov 7 2009, 16:34) *
QUOTE (Northwinds @ Nov 7 2009, 17:13) *
Any suggestions please?
Thanks
Northwinds.


Convert it to ALAC - it's supported by iPOD and is loseless as FLAC.


Thank you all for your responses!
What would I use to convert to ALAC by the way?

Thanks
Northwinds.
Xire
QUOTE (Northwinds @ Nov 7 2009, 22:51) *
QUOTE (Xire @ Nov 7 2009, 16:34) *
QUOTE (Northwinds @ Nov 7 2009, 17:13) *
Any suggestions please?
Thanks
Northwinds.


Convert it to ALAC - it's supported by iPOD and is loseless as FLAC.


Thank you all for your responses!
What would I use to convert to ALAC by the way?

Thanks
Northwinds.



Check out http://xrecode.com.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.