w3c / wpub

W3C Web Publications
https://w3c.github.io/wpub/
Other
79 stars 19 forks source link

List of recommended audio formats for audio-only WP #323

Closed avneeshsingh closed 5 years ago

avneeshsingh commented 6 years ago

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.

llemeurfr commented 6 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

https://developer.mozilla.org/en-US/docs/Web/Apps/Fundamentals/Audio_and_video_delivery/Cross-browser_audio_basics#Audio_Codec_Support

lloydrasmussen commented 6 years ago

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.

llemeurfr commented 6 years ago

@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.

HadrienGardeur commented 6 years ago

Opus is a great fit for voice and audiobooks, it should definitely be on our list.

iherman commented 6 years ago

This issue was discussed in a meeting.

geoffjukes commented 5 years ago

Blackstone is evaluating Opus for it's lossy archive format (replacing AAC). We use FLAC for the lossless archive format.

wareid commented 5 years ago

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.

geoffjukes commented 5 years ago

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?

https://en.wikipedia.org/wiki/HTML5_audio

llemeurfr commented 5 years ago

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.

avneeshsingh commented 5 years ago

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.

iherman commented 5 years ago

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).

avneeshsingh commented 5 years ago

@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.

geoffjukes commented 5 years ago

@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.

wareid commented 5 years ago

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.

wareid commented 5 years ago

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

iherman commented 5 years ago

This issue was discussed in a meeting.