View Full Version : trimming external audio source, 2GB limit
igor1st
2nd April 2006, 12:11
Ordinary use of AudioDub function:
video = AVISource("video.avi", audio=false)
audio = WAVSource("audio.wav")
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.
squid_80
2nd April 2006, 12:49
What's the total size of the wav file?
igor1st
2nd April 2006, 13:52
What's the total size of the wav file?
2.57GB for example.
And this easy avoided by cutting audio file on parts <2GB. But I think devs can modify a code so things to be more comfortable.
squid_80
2nd April 2006, 14:37
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 < 4GB, since that should be the maximum possible size. If the wav was bigger than that, you'd have to cut it anyway.
IanB
2nd April 2006, 14:50
Yep most of the guts of the audio source is only 31 bit aware. It will not be quick to fix.
Mug Funky
3rd April 2006, 11:24
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 :)
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.