Author Topic: OGG Bitrates  (Read 1338 times)

0 Members and 1 Guest are viewing this topic.

Offline Galemp

  • Actual father of Samus
  • 212
  • Ask me about GORT!
    • Steam
    • User page on the FreeSpace Wiki
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?
"Anyone can do any amount of work, provided it isn't the work he's supposed to be doing at that moment." -- Robert Benchley

Members I've personally met: RedStreblo, Goober5000, Sandwich, Splinter, Su-tehp, Hippo, CP5670, Terran Emperor, Karajorma, Dekker, McCall, Admiral Wolf, mxlm, RedSniper, Stealth, Black Wolf...

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
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.
-C

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
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.

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Well, I tested it using the 'constant' option in dbPowerAmp.
-C

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Basically, it should be fine as long as you don't do something funky like changing the frequency in the middle of the OGG.
-C

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
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.

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Quote
Originally posted by taylor
It should catch that and skip loading the file anyway.


Ahh, nice touch. :)
-C