Back Forum Reply New

trimming external audio source, 2GB limit

Ordinary use of AudioDub function:

video = AVISource(quot;video.aviquot;, audio=false)
audio = WAVSource(quot;audio.wavquot;)
AudioDub(video, audio)

audio.wav size exceed 2GB.

If making trim(x,y) and x in 2GB+ zone of audio file then the output audio is empty.

What's the total size of the wav file?


Originally Posted by squid_80What's the total size of the wav file?

2.57GB for example.

And this easy avoided by cutting audio file on parts lt;2GB. But I think devs can modify a code so things to be more comfortable.

Yes, I'm guessing there's a probably a signed int being used instead of unsigned somewhere. I just wanted to be sure the wav file was lt; 4GB, since that should be the maximum possible size. If the wav was bigger than that, you'd have to cut it anyway.

Yep most of the guts of the audio source is only 31 bit aware. It will not be quick to fix.

you might want to give bassaudiosource a try.  though i'm not sure if it supports wav (developer might have considered it unnecessary seeing as it's supported internally with wavsource).  it also supports .aif files, in case your original came from a filthy mac.

failing that, split your wav into it's component channels, then load them.  it's fiddly as hell, but might save you some frustration (there's bugger-all progs out there that can load your file as it is).

you might also want to split the file into 2 pieces and merge them with alignedsplice.  might be easier than separate channels actually
¥
Back Forum Reply New