Hi all, I was reading the discussion about this 1.3.0pre1 release on HydrogenAudio and someone linked an old thread in which one patched FLAC 1.2.1 to support WAV-files larger then 2GB. It might be worth investigating: http://www.hydrogenaudio.org/forums/?showtopic=84014#entry725304
Martijn van Beurden wrote:> I was reading the discussion about this 1.3.0pre1 release on > HydrogenAudioLink please?> and someone linked an old thread in which one patched FLAC > 1.2.1 to support WAV-files larger then 2GB. It might be worth investigating: > > http://www.hydrogenaudio.org/forums/?showtopic=84014#entry725304Err, thats a link to a post talking about flac's WAV reader being limited to 4Gig files. Problem is, *all* WAV files greater than 4Gig are mal-formed. Due to limitations in the way WAV files are specified, no valid WAV file can ever be over 4Gig. Also, the link in that post contains a flac windows binary which is not of much use. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/
On 04-03-13 23:19, Erik de Castro Lopo wrote:> Link please?http://www.hydrogenaudio.org/forums/index.php?showtopic=99757> Err, thats a link to a post talking about flac's WAV reader being limited > to 4Gig files. Problem is, *all* WAV files greater than 4Gig are mal-formed. > Due to limitations in the way WAV files are specified, no valid WAV file > can ever be over 4Gig. > > Also, the link in that post contains a flac windows binary which is not > of much use.It seems Case hasn't released any source, but the other posts in the thread state what changes have been made to get to this.
Erik de Castro Lopo wrote:> Err, thats a link to a post talking about flac's WAV reader being limited > to 4Gig files. Problem is, *all* WAV files greater than 4Gig are mal-formed. > Due to limitations in the way WAV files are specified, no valid WAV file > can ever be over 4Gig.And most don't work over 2 GB. The solution we (Xiph) have used in other projects (opusenc, oggenc) is to treat sizes over ~2 GB as meaning "Just keep reading until EOF." See wav_open() audio-in.c in opus-tools. It turns out you need to use slightly less than 2 GB for the limit to handle the output of some tools. We also provide an --ignorelength option to request this behavior regardless of the length in the header (which lets it work with tools that just truncate the size to 32 bits).
(2013/03/05 7:19), Erik de Castro Lopo wrote:> Err, thats a link to a post talking about flac's WAV reader being limited > to 4Gig files. Problem is, *all* WAV files greater than 4Gig are mal-formed. > Due to limitations in the way WAV files are specified, no valid WAV file > can ever be over 4Gig.That's not an issue. FLAC frontend already has a --ignore-chunk-sizes switch, which exactly does what is needed to handle mal-formed WAV files.