View Full Version : WAVE_FORMAT_IEEE_FLOAT Output
IanB
5th April 2006, 08:31
As a trial in the latest 2.5.7 Alpha 2 I knobbled the automatic ConvertAudioTo16Bit() of the final output of the audio stream. I principally did this so there was a way to generate WAVE_FORMAT_IEEE_FLOAT output data to test the input routines.
I had intended to re-enable the auto convert feature again for the next release but being able to save float audio data to output files has been kind of cool :cool: so I am not so sure anymore.
Leaving the auto convert disabled is a significant change that will break compatibility, something I am really loath to do at the very best of times.
So I ask for your thoughts, ideas and opinions.
Mug Funky
5th April 2006, 12:26
are there any programs out there that can accept float audio from avisynth (or indeed any avi, hacked or not)?
i ask because i've been using avisynth to do a lot of audio stuff lately, and frankly i quite like the idea of leaving it this way, so long as it doesn't break too many scripts (or programs that generate scripts).
a simple "convertaudioto16bit()" should suffice to fix those scripts...
or, maybe for compatibility sake there could be a "maintainfloat()" command that allows avisynth to not auto-convert. it might be better doing it this way actually.
or is this avs 3.0 stuff i'm getting into here?
IanB
5th April 2006, 14:29
are there any programs out there that can accept float audio from avisynth (or indeed any avi, hacked or not)?I'm not aware of any, but WAVE_FORMAT_IEEE_FLOAT is a standard (but uncommon) format, so there probably will be some. Virtualdub can deal with it in direct stream mode.or, maybe for compatibility sake there could be a "maintainfloat()" command that allows avisynth to not auto-convert. it might be better doing it this way actually.Hmm, that is a good idea. I will see what can be done.
Mug Funky
6th April 2006, 04:10
cool. i appreciate it :)
just out of interest, would avs2wav handle float properly? or should i just try it myself :)
it'd also be really really cool if premiere pro could take it, as it auto-conforms everything that goes into it to 48k, float and takes it's sweet time doing so. hard disks can fill up very quickly with "conformed audio files" this way, as it doesn't clear them when it's finished, and never re-uses audio when a project is reloaded. but that's obviously not your problem...
looks like i'll be doing some testing in my lunch break :)
sh0dan
7th April 2006, 10:31
@IanB: To maintain backwards compatibility you could just check a variable, so that users can add "global AllowFloatOutput = 1" or call "AllowFloatOutput()".
IanB
7th April 2006, 16:38
global AllowFloatOutput = 1Hmm, thats a nice light weight solution :D
Mug Funky
11th April 2006, 08:38
i like the way this is heading...
so it's rather like cacheaudio or setmemorymax, where you can just whack an avsi into your plugins folder with "AllowFloatOutput()" in it?
IanB
11th April 2006, 10:08
@Mug Funky.
I have settled on global OPT_AllowFloatAudio=True
How did you make out with getting Premier to swallow the WAVE_FORMAT_IEEE_FLOAT files?
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.