recording 2GB+ wav's in traction (title edited)
-
- KVRAF
- 4644 posts since 28 Nov, 2002 from Chicago
Not necessarily true. In most cases (though it is convention not law) the data chunk of a wav file is trhe last part. If the header stupidly defined the chunk as being shorter than it actually is, you'd just get truncated playback. Problems would only arise if the wav reader attempted to decode the content at the end of the file. Most wav reading code thopugh tends to err on the side of lax about such things, 'cos there are so many malformed wav headers out there.Pädy wrote: When the header is not useable - so is the file.
Back when I wrote a load of wav reading utilities, I was constantly amazed just how poorly formatted some of the headers were that I encoutered.
That's a bummer then.
Aiff also has a 32 bit header, if I'm not very mistaken.
Someone shot the food. Remember: don't shoot food!
-
- KVRAF
- 4644 posts since 28 Nov, 2002 from Chicago
Yup.mmmatt wrote:Some DAW progrms can be set to split files longer than 2GB. Maybe this is why.
What I'm trying to research is whether it is possible to use a multisample wav to get around the 32bit addressing issue. If it is, I'm sure some apps will do it.
I seem to have lost my collection of notes on wavs though.
Someone shot the food. Remember: don't shoot food!
- KVRAF
- 25036 posts since 12 Jul, 2003 from West Caprazumia
seems to be wrong nonetheless...
Aleksey usually knows his shit...
http://www.voxengo.com/phorum/read.php?f=16&i=19&t=19Author: Aleksey Vaneev
Date: 02-09-05 23:19
It supports files up to 4 GB, but not above this point. Going above would require Wave64 support which is not implemented.
Aleksey usually knows his shit...
-
- KVRAF
- 4644 posts since 28 Nov, 2002 from Chicago
actually that's correct, and I should have spotted it[1].
32bit can address 4Gb of data only. HJowever, stereo would double the bandwidth, so a 4gb mono file equals a 2gb (2x2) stereo. Sorry for the confusion
[1] I've been up 36 hours straight trying to get linux to work properly on a laptop, and my mind is slipping.
32bit can address 4Gb of data only. HJowever, stereo would double the bandwidth, so a 4gb mono file equals a 2gb (2x2) stereo. Sorry for the confusion
[1] I've been up 36 hours straight trying to get linux to work properly on a laptop, and my mind is slipping.
Someone shot the food. Remember: don't shoot food!
-
- KVRian
- 830 posts since 13 Oct, 2003
i'm really sure that depending on the way tracktion handles reading of the files it doesn't matter at all. the header contains the format of the wav and that's the only real important information, after that the readinroutine can jump to the data the wave contains and read it as the format defines till there's no data left (means the file ends) the maxsize only depends on the filesystem (ntfs, fat32..). if jules had liked to, he could also write the information raw to disc without any header.
i need a lunch break
- KVRist
- 426 posts since 14 Apr, 2003 from Switzerland
@ valley: that's pretty much what I expected - or do you consider truncated clips useable.
@ Jens: 4 GB is fine, but what format 16 bit, 44.1 kHz? Stereo or Mono?
@ Jens: 4 GB is fine, but what format 16 bit, 44.1 kHz? Stereo or Mono?
-
- KVRAF
- 2009 posts since 9 Apr, 2003 from Cornwall, UK
-
- KVRAF
- 4644 posts since 28 Nov, 2002 from Chicago
I don't consider it *not* useable.Pädy wrote:@ valley: that's pretty much what I expected - or do you consider truncated clips useable.
So, after reminding mysel;f of some stuff:
The actual wav spec (as opposed to some of the extension hacks that people have made over teh years) says that:
a wav file must have one, and only one data chunk. This data chunk can be up to 2^32 - 1 bytes long (4GB).
multi-sample wav files, are both broken, and also bound by the 4GB limit, as the multisaple IFF list is embedded in the data chunk.
4GB at stereo 44k 16bit gives about 7hours worth of recording.
Double the sample resolution (ie 24 or 32 bit) and you halve that time. Double the sample frequency, and your halve it again.
IE, about 2 hours.
Someone shot the food. Remember: don't shoot food!
-
- KVRAF
- 4644 posts since 28 Nov, 2002 from Chicago
that's a bug - pure and simple.Tingle wrote:but why should they not appear at all?
(from original post)
If the OP is using an NTFS drive, then Tracktion should be able to warn that data cannot be convereted into a wav file, and either store it as a raw data lump, split into multiple files, or offer to downsample it into a format that can be stored.
Someone shot the food. Remember: don't shoot food!
- KVRAF
- 25036 posts since 12 Jul, 2003 from West Caprazumia
irrelevant - 4GB whatsoever - 4GB is 4GB, or not? - of course the sample-lenght can be twice as long if it is mono (if both have the same bit-depth and sample-rate) but in both cases it's still 4GBPädy wrote:.
@ Jens: 4 GB is fine, but what format 16 bit, 44.1 kHz? Stereo or Mono?
- KVRist
- 426 posts since 14 Apr, 2003 from Switzerland
Okay, let's quickly summerize and then I'm off:
I am right, there's a 32 bit header restriction in the wav format.
This translates into 2 GB worth of data - 4 GB stereo.
Most probably this restriction is the cause for the thread-starter's probs.
Cheers, Pädy
PS: Now, I know again why I stopped coming here so frequently. It's just not possible to give a small bit of information without getting involved in a cockfight.
I am right, there's a 32 bit header restriction in the wav format.
This translates into 2 GB worth of data - 4 GB stereo.
Most probably this restriction is the cause for the thread-starter's probs.
Cheers, Pädy
PS: Now, I know again why I stopped coming here so frequently. It's just not possible to give a small bit of information without getting involved in a cockfight.
-
- KVRAF
- 4644 posts since 28 Nov, 2002 from Chicago
yup.Pädy wrote:I am right, there's a 32 bit header restriction in the wav format.
[uote]This translates into 2 GB worth of data - 4 GB stereo.[/quote]
nope - just 4GB. Your 4 doesn;t go so far with stereo.
yup.Most probably this restriction is the cause for the thread-starter's probs.
yup...PS: Now, I know again why I stopped coming here so frequently. It's just not possible to give a small bit of information without getting involved in a cockfight.
Someone shot the food. Remember: don't shoot food!
- KVRAF
- 25036 posts since 12 Jul, 2003 from West Caprazumia
Pädy wrote: This translates into 2 GB worth of data - 4 GB stereo.
thast's the part of the equation I don't understand!
how can 2GB be 4GB?
Matt wrote that he records at 24/96 - if it is stereo that means 4GB are a bit more that 2hours and ten minutes - and if it is stereo it is a bit more than 4 hours and twenty minutes, right?
- KVRAF
- 25036 posts since 12 Jul, 2003 from West Caprazumia
oh, and Pädy:
so far you've been the only troll in this thread!
Matt writes about a fact he experienced first hand and because you read something somewhere in a manual you feel obliged to write:
so who's been the fighting cock then?
and now you're sulking because some of us dared to doubt your words... (and rightly we did)
so far you've been the only troll in this thread!
Matt writes about a fact he experienced first hand and because you read something somewhere in a manual you feel obliged to write:
Pädy wrote:Then either Jules has silently implemented the wave64 format or it's a miracle
so who's been the fighting cock then?
and now you're sulking because some of us dared to doubt your words... (and rightly we did)

