Closed avneeshsingh closed 5 years ago
Note: a browser compatibility list for audio formats can be found at
https://caniuse.com/#feat=audio (look at sub-features, add https://caniuse.com/#search=webm)
Seems that today, MP3 (low quality), AAC (flexible) and FLAC (lossless) have proper support in most browsers. Not really true for Ogg-vorbis and WebM-vorbis so far.
I also found:
https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats#Browser_compatibility
If you search CanIUse.com for Opus, the support looks a little better. This audio codec is supported by enough web browsers and operating systems that it should be considered, especially in situations where file size and transport/storage requirements are important.
@lloydrasmussen, yes Opus is streamable and supported by Firefox, Chrome, Edge. The missing kid is Safari (I just tried http://opus-codec.org/examples/, see "Example of use in a web page"). But still it can be a recommended format.
I agree that we should not try to keep "core media type", i.e. imposed fallbacks, but rather recommend media types compatible with Web usage. I would prefer if it was expressed via articles (best practices, some evolution of "EPUB Secrets") rather than in the WP spec.
Opus is a great fit for voice and audiobooks, it should definitely be on our list.
This issue was discussed in a meeting.
Blackstone is evaluating Opus for it's lossy archive format (replacing AAC). We use FLAC for the lossless archive format.
PROPOSAL: The Audiobooks profile will not include a recommended list of audio formats for audiobooks. We will leave this in the hands of the content creators.
Ever heard of ALS audio? No? There is exactly ONE implementation for encoding it.... and the Library of Congress chose it as their lossless archive format.
@wareid I agree with not being overly prescriptive here, but my concern is that if it is left too open, a publisher might go nuts. Some guidance could help. Would it be reasonable to "Recommend audio formats supported by HTML5 Audio" or something?
It may be a community best practice document instead of a WG list, if the latter seems too much prescriptive, but there is definitely a need to express that mp3 is not the ultimate audio format, forever.
There are many audio formats in the world, so I think that providing some guidance is important to help publishers in identification of audio formats that have wider acceptance. I would propose maintaining a non-normative list that can be updated frequently. It may be a separate document referenced by audio pub specs.
I would be wary of setting up our own list... such lists, if not correctly maintained, become a hurdle eventually. Falling back on an existing community effort would be much better imho.
I am not familiar with this world; @geoffjukes is the wikipedia article you referred to (https://en.wikipedia.org/wiki/HTML5_audio) an authoritative source in this community? It was last edited a few weeks ago, which is a good sign. On the other hand, I did not find any reference to it (or to anywhere else) in the html spec (but I may have missed it).
@iherman , the main objective behind having a non-normative document linked from specs is to ensure its visibility. Separate documents are difficult to find. If we can ensure that one can easily locate best practices document it is fine. May be we should have links to such documents in introduction section of specs, or may be at some other place where these are clearly visible.
@iherman Not my area of expertise either, though I did find this: https://www.w3.org/wiki/Html/Elements/audio#Formats_and_Codecs
Which itself references the Wikipedia page.
I think an accompanying "Best Practices" document is in the works here ;). I agree we should offer some guidelines, maybe that is the best way. It will certainly be a lot easier to keep up to date, and we can work with publishers/distributors to communicate the latest in recommendations or support. I just think for the spec we're being too prescriptive.
RESOLVED: The Audiobooks profile will not include a recommended list of audio formats for audiobooks. We will leave this in the hands of the content creators. We will reference the supported formats from HTML5's
This issue was discussed in a meeting.
RESOLVED: The Audiobooks profile will not include a recommended list of audio formats for audiobooks. We will leave this in the hands of the content creators. We will recommend the list of supported types under HTML5 <audio> specifications.
In EPUB 3 we had notion of core media types. I think that we should not try to restrict audio-only WP in such a way. At the same time it is also true that support for various audio formats vary from browser to browser. So, to help publishers in producing audio publications that work well with popular browsers, we should come up with a list of recommended audio formats for audio-only WP.