GNOME Bugzilla – Bug 686976
Add support for the new OPUS codec
Last modified: 2016-01-09 16:13:15 UTC
It would be great if you could add support for the OPUS audio codec. More info here: http://www.opus-codec.org/ The meta data is basically based on the OGG format.
I implemented this and made a pull request on GitHub. Pull request: https://github.com/mono/taglib-sharp/pull/27
Created attachment 316939 [details] [review] Adds support for Opus MIME types and codec Patch file added as requested.
Thanks very much! Do you mind adding new unit test(s) for this?
I don't mind adding unit tests, but the existing tests are container-based, not codec-based. For example the Ogg tests just test the Ogg format itself (with an Ogg Vorbis sample file), but another codec, Ogg Theora, doesn't have its own tests. The same is true for other containers and codecs. While refactoring the existing tests and adding codec-based tests could be useful for some header oddities, I think this is outside the scope of this bug.
(In reply to Les De Ridder from comment #4) > While refactoring the existing tests and adding codec-based tests could be > useful for some header oddities, I think this is outside the scope of this > bug. Yes. Just place an opus test with the smallest opus binary file you can come up with. And make it as you please (codec based or container based). Then if you have time, you can refactor the existing tests and propose a patch in a new bug. Thanks
Created attachment 317315 [details] [review] Adds tests for Opus Added tests for Opus files.
Created attachment 317316 [details] Opus test sample
Thanks for your work. Can you please merge all 3 attachments in just one patch? Thanks
Created attachment 317481 [details] [review] Adds support, tests, and sample for Opus Patch file containing all of the above.
In master: https://github.com/mono/taglib-sharp/commit/0d7942ea0a71a13f88ced794223e58ba94dd81fa