ryanheise / just_audio

Audio Player
1.02k stars 639 forks source link

Supporting Opus, the format that is 2x smaller? #607

Open fzyzcjy opened 2 years ago

fzyzcjy commented 2 years ago

Is your feature request related to a problem? Please describe. Hi thanks for this wonderful lib! Now I use aac audio formats. But I would appreciate it if I could use opus format. According to my experiments, opus can reduce 2x file size while preserving (and even better) audio quality.

Describe the solution you'd like Suppose opus on android and ios.

Describe alternatives you've considered n/a

Additional context n/a

ryanheise commented 2 years ago

Related to #20 . It's not always an easy thing to do particularly with iOS if you use the standard decoders provided by the platform. Apple has some formats it simply doesn't want to support. That doesn't mean it can't be worked around, but it may be easier to just use the formats that each platform natively supports.

fzyzcjy commented 2 years ago

@ryanheise Thanks. But imho opus is twice smaller without losing quality, so it is really desireable. For example:

ryanheise commented 2 years ago

Yes, you said that. But it's not easy to do. If you would like to contribute a pull request and do the hard work, you are welcome to help.

fzyzcjy commented 2 years ago

@ryanheise I will try to do so when I am free ;)