[Sounds] Support for ogg opus sould files?

User avatar
Hybrid Dog
Member
 
Posts: 2718
Joined: Thu Nov 01, 2012 12:46

[Sounds] Support for ogg opus sould files?

by Hybrid Dog » Mon Nov 23, 2015 16:58

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 » Sun Nov 29, 2015 05:25

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: 3155
Joined: Mon Aug 01, 2011 14:26
Location: Troyes, France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: Support for ogg opus sould files?

by Calinou » Sun Nov 29, 2015 11:29

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: 2718
Joined: Thu Nov 01, 2012 12:46

Re: Support for ogg opus sould files?

by Hybrid Dog » Sun Nov 29, 2015 11:47

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 » Sun Nov 29, 2015 13:34

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: 2718
Joined: Thu Nov 01, 2012 12:46

Re: Support for ogg opus sould files?

by Hybrid Dog » Sun Nov 29, 2015 15:53

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 » Sun Nov 29, 2015 16:08

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

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

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

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


Return to Feature Discussion



Who is online

Users browsing this forum: No registered users and 3 guests