Surviving Mars

Surviving Mars

View Stats:
Proper opus file encoding for radio station mods
Can anyone tell me why my radio station mod doesn't play my opus audio files? I've written a mod for my own personal use since I want my music library to play in game, obviously I can't publish the mod because I don't have the proper license to do so, but I have compared my mod to a working radio station mod and aside from the source file for my audio, mod id all that jazz my LUA scripts are identical to the working radio station mod, I've converted my music library to opus format and set the properties to the same that the audio files in the working mod are set to mono as channel properties, 48k sampling rate default bitrate just as the files are in the working mod, and my mod does not play my music. Is this one of those goofy situations where these are not actually opus encoded just file extension renamed to opus? e.g. .ogg, .wav, .mp3 renamed as an .opus instead of encoded as opus?
< >
Showing 1-2 of 2 comments
Retrolicious Mar 5, 2020 @ 3:09pm 
Can you link the template radio mod? Also i believe the mod would use mp3 format for their tracks?

Wrong format. I think simple fix is to convert the opus music into mp3.

If you peek into the main survival mars folders, you can clearly see that all the original music from marsvision and all the normal radio stations are mp3 as well.
So why insist on a wrong format of opus?

Opus is a good format, but most times it is too "new" for devs / people to recognize / consider or play them on old computers / gadgets.

Likewise it is a very bad idea to try to slam FLAC audio files in a random game mod just for giggles. Since most games don't use / understand FLAC at all.

Mp3 even though outdated is still widespread used, since it is backwards compatible and like 95% of gadgets can play them no matter what.

TL;DR
If you mod anything first try to use a "fool proof" format to test your idea and stuff. And later down the line when you got a working prototype mod you can still "polish" and refine the mod by using higher quality formats / containers / file types
Last edited by Retrolicious; Mar 5, 2020 @ 3:15pm
Skillaholix Mar 5, 2020 @ 8:13pm 
I used opus because it's what the radio mod I looked at uses.
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Mar 5, 2020 @ 2:00pm
Posts: 2