Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Galemp on September 06, 2005, 03:38:34 pm

Title: OGG Bitrates
Post by: Galemp on September 06, 2005, 03:38:34 pm
Okay, so suppose I have some FS2 music in WAV that I want to convert to OGG for a smaller file size and thus faster downloads. What attributes should it have, eg. what are the optimal conversion settings for FSO to process it?
Title: OGG Bitrates
Post by: WMCoolmon on September 06, 2005, 09:22:16 pm
It takes very little CPU power to decode an OGG, so it's not really critical.

I know fs2_open will do constant bitrate files, but I'm not sure about variable bitrates.
Title: OGG Bitrates
Post by: taylor on September 06, 2005, 11:38:41 pm
Quote
Originally posted by WMCoolmon
I know fs2_open will do constant bitrate files, but I'm not sure about variable bitrates.

Umm, aren't all OGGs encoded with a variable bitrate?  I know you can set a bitrate if you want but I think it's only a recommendation or a basic target rather than a must-be-honored request like with MP3s.
Title: OGG Bitrates
Post by: WMCoolmon on September 07, 2005, 12:46:31 am
Well, I tested it using the 'constant' option in dbPowerAmp.
Title: OGG Bitrates
Post by: WMCoolmon on September 07, 2005, 12:52:37 am
Basically, it should be fine as long as you don't do something funky like changing the frequency in the middle of the OGG.
Title: OGG Bitrates
Post by: taylor on September 07, 2005, 01:15:17 am
Quote
Originally posted by WMCoolmon
Well, I tested it using the 'constant' option in dbPowerAmp.

Yep, your right.  It used to be "faked" if I remember correctly and then they supported it for real by the time 1.0 came around.  It's only recommended for use in streaming audio over the Internet though since sound quality is decreased but you get a known quantity of data being streamed all of the time.

Quote
Originally posted by WMCoolmon
Basically, it should be fine as long as you don't do something funky like changing the frequency in the middle of the OGG.

It should catch that and skip loading the file anyway.


Galemp, just use what sounds best to you at a filesize that you can tolerate.  I think that about the only thing to watch out for is to not use a sample rate over 44.1kHz since that's the game default.  If you use something higher then OpenAL can get a little touchy about that and start sounding bad unless the user configures it to an equal or higher value.
Title: OGG Bitrates
Post by: WMCoolmon on September 07, 2005, 03:22:59 am
Quote
Originally posted by taylor
It should catch that and skip loading the file anyway.


Ahh, nice touch. :)