I found it very hard to work on my 6 +GB WAV file so my current plan is to keep it as RAW PCM, split it into smaller parts and then process and encode the parts and put them back together as a large FLAC file.
First thing I need is a tool to do the splitting.
- I have tried shntool but it wants a wave header and if I add one it thinks the file is 47 min long and a little largen then 2 GB.
- I have tried simply splitting the file with "hjsplit". It works but has some sideeffects. I will get damaged samples in the split. The first splitted file was fine but the second splitted file I got all the audio channels mixed around so the center sound came out from my left rear and so on.
If I give my file a wave header and use shntool to split it into smaller parts those parts are playable in any audio player and are just fine. So it's nothing wrong with the audio. It's just that shntool will only give me 47 min of sound. As soon as I adds a wave header everythings goes wrong so as I said above I will try to keep it as RAW PCM as long as possible until it is in smaller pieces and then I can work with them.
QUOTE(jcoalson @ Apr 4 2007, 09:44)

ah, ok, this is on windows... as far as I know, there is no way to support files >2GB with MSVC6 (what I still have to build with) without using windows-specific APIs, which flac.exe does not do. last I checked they still don't implement posix largefile support, off_t, fseeko()/ftello(), etc.
I haven't taken the time to research and implement a separate windows-specific largefile-capable i/o path. as usual, windows is the only platform where this is even necessary.
Josh
I can trick FLAC.EXE if it does not know the size it's fine. This command works just fine with other 4+ GB Blu-ray (16 bit) LPCM tracks:
flac -8 --force-raw-format --endian=big --channels=6 --bps=16 --sample-rate=48000 --sign=signed -o "file.flac" - < file.pcm
The problems I have is that when the resulting flac file hits 2 GB I get the error mentioned.
Do you think I could copy this track to a Linux computer and it would work better there?