[Sounds] Support for ogg opus sould files?

Post Reply
User avatar
Hybrid Dog
Member
Posts: 2828
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

[Sounds] Support for ogg opus sould files?

by Hybrid Dog » Post

I don't know much about sound files, correct me if l'm wrong:

https://wiki.ubuntuusers.de/Opus

pros
— although same quality, smaller file size
— quality can be reduced further than in ogg vorbis → smaller file size
— maybe better file format for short sounds → smaller file size
— smaller file size → downloading sounds (part of Media) maybe faster

cons
— installing opus on old os may not work → envy, etc
— ogg vorbis maybe has hardware decoding support?

neutral
— ogg opus file names end with ".opus"
— ogg vorbis files support isn't dropped
Last edited by Hybrid Dog on Fri May 20, 2016 13:24, edited 1 time in total.

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

est31
Developer
Posts: 173
Joined: Mon Dec 29, 2014 01:49

Re: Support for ogg opus sould files?

by est31 » Post

I think the best argument here would be that one doesn't need the codebooks. For the sound lengths minetest usually uses, they create quite a large part of the file that's right.

Other than that, idk, vorbis is fine I think. Adding opus would increase complexity, that's for sure.

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

Re: Support for ogg opus sould files?

by Calinou » Post

It's already requested: https://github.com/minetest/minetest/issues/2239

Vorbis is nice, but Opus is quite better for long sound files like music (and thus, space could be saved, or quality could be increased), and generally you can afford the higher CPU cost.

If encoding in 320 Kb/s Opus, you are getting very close to lossless quality. If encoding in 128 Kb/s Opus, you still get something pretty decent, with a low file size.
Hybrid Dog wrote:— ogg vorbis maybe has hardware decoding support?
There generally is no support for hardware-accelerated sounds in operating systems. For instance, Windows Vista and later dropped the ability to have accelerated sound output.

User avatar
Hybrid Dog
Member
Posts: 2828
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

Re: Support for ogg opus sould files?

by Hybrid Dog » Post

Calinou wrote:There generally is no support for hardware-accelerated sounds in operating systems. For instance, Windows Vista and later dropped the ability to have accelerated sound output.
minetest --info wrote:2015-11-29 12:46:23: INFO[Main]: Audio: Initializing...
2015-11-29 12:46:23: INFO[Main]: Audio: Vorbis extension NOT present
2015-11-29 12:46:23: INFO[Main]: Audio: Initialized: OpenAL 1.1 ALSOFT 1.14, using OpenAL Soft
What is Vorbis extension?

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

Jay
Member
Posts: 11
Joined: Sun Sep 01, 2013 16:31

Re: Support for ogg opus sould files?

by Jay » Post

It is a extension for the OpenAL library. Minetest checks for the extension, but actually uses another library to decode Vorbis sounds. (The EXT_vorbis check might be a candidate for dead code removal)

User avatar
Hybrid Dog
Member
Posts: 2828
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

Re: Support for ogg opus sould files?

by Hybrid Dog » Post

Jay wrote:It is a extension for the OpenAL library. Minetest checks for the extension, but actually uses another library to decode Vorbis sounds. (The EXT_vorbis check might be a candidate for dead code removal)
thanks, would disabling the check slightly decrease lag?

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

Jay
Member
Posts: 11
Joined: Sun Sep 01, 2013 16:31

Re: Support for ogg opus sould files?

by Jay » Post

No. The check runs at startup and the result is never acted on.

est31
Developer
Posts: 173
Joined: Mon Dec 29, 2014 01:49

Re: Support for ogg opus sould files?

by est31 » Post

Jay: want to do a PR to remove the check?

https://github.com/minetest/minetest/pulls

Jay
Member
Posts: 11
Joined: Sun Sep 01, 2013 16:31

Re: Support for ogg opus sould files?

by Jay » Post


est31
Developer
Posts: 173
Joined: Mon Dec 29, 2014 01:49

Re: Support for ogg opus sould files?

by est31 » Post

Nice, thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests