w3c / epub-specs

Shared workspace for EPUB 3 specifications.
Other
304 stars 60 forks source link

text/vtt as core media type? #1299

Closed VeryGoodErotica closed 3 years ago

VeryGoodErotica commented 5 years ago

I did not see text/vtt listed as a core media type but it is the required subtitle format for the html5 video tag if subtitles are provided, as they should be for video content.

VeryGoodErotica commented 5 years ago

Ouch - with a validating .vtt file, epubcheck doesn't complain but it crashes iBooks on a 3rd gen iPad - 3rd gen iPad doesn't get updates, so it looks like audio subtitles will never be usable on that device.

Not a W3C issue, I know, but that is a bad bug.

VeryGoodErotica commented 5 years ago

Maybe if text/vtt is part of the specified core media types, even though there isn't a specified video type, future ePub viewers will have proper code to handle it and not crash.

VeryGoodErotica commented 5 years ago

Okay it seems iBooks only crashes if the track element has the default attribute set, so those who want to include VTT (works beautifully in Marvin on same device) - don't set the default attribute on any track elements.

Too bad Apple won't fix bugs for that iPad version, but that's capitalism.

mattgarrish commented 5 years ago

The track element is exempt from fallbacks:

The following [HTML] elements can refer to Foreign Resources [EPUB32] without having to provide a fallback Core Media Type Resource:

  • link — when its rel attribute has the value "pronunciation"

  • track

  • video — including any child source elements

https://www.w3.org/publishing/epub3/epub-contentdocs.html#sec-xhtml-fallbacks

VeryGoodErotica commented 5 years ago

Okay I was looking at this section which references video and not needing a fallback but makes no reference to the track element:

https://www.w3.org/publishing/epub3/epub-spec.html#sec-publication-resources

That's within the section on creating a manifest, where a vtt file obviously needs to be specified. So perhaps that section needs to be updated to match the contentdocs page.

ePub viewers that do handle video though really should be required to handle both VTT and probably TTML so they still should (imho) be core media types so that crashing viewers, like iBooks, can be declared non-conforming. Otherwise authors will be discouraged from using the track element.

iherman commented 4 years ago

This issue was discussed in a meeting.

iherman commented 3 years ago

The issue was discussed in a meeting on 2020-12-04)

List of resolutions:

View the transcript ### 1. Core Media Types _See github issue [#1344](https://github.com/w3c/epub-specs/issues/1344), [#1299](https://github.com/w3c/epub-specs/issues/1299), [#645](https://github.com/w3c/epub-specs/issues/645)._ **Wendy Reid:** we had discussed this back in sep. that we would vet them one at a time … we've tried to add some ones … but run into issues with things that are implemented, but not standardized **Dave Cramer:** the general question here: We have 2 competing principles. 1 is supporting what the web supports, and we hope that epub will maintain compatibility with the web. … 2. but epubs also must work. e.g. someone who buys a book should be able to read it on their device … an issue esp. because older RSes are still out there … e.g. I made a little test of webp inside an epub, and it only worked on 50% of the RSes it was tested on … we _could_ give up on the idea of core media types and just leave the decision to content authors, but that could result in a bad experience **Ivan Herman:** we have already made the similar decision in terms of css … e.g. whatever css can do, it is fair game for authors **Dave Cramer:** i think css is different. CSS has very well defined fallback behaviour. Not true with, e.g., new media type in epub > *Tzviya Siegman:* +1 to dauwhe about fallbacks **Dave Cramer:** with CSS, the reading experience may be _degraded_, but not entirely lost … there's also lots of experience out there about writing CSS that works even if certain features aren't supported … not exactly the same with EPUB > *Ivan Herman:* +1 to dave's response **Brady Duga:** agreed … in terms of modelling epub after CSS, 90% of the issues I fix are to do with CSS not working. So not enthused about using the same model for media types **George Kerscher:** where are we in terms of video formats? **Wendy Reid:** with video, we've also taken an "open approach" i.e. just use what the RS accepts … h264 encoded is probably the standard? **George Kerscher:** i think the lack of clarity around the video is holding us back. People would love to see video in epubs **Dave Cramer:** video is tricky because there are even brand new devices that won't support video - eInk! **Wendy Reid:** also, some platforms have upload sizes that make video incompatible **Avneesh Singh:** this is a problem i see with both video and audio in epub. The larger the file size of the zipped file, the greater the chances of corruption after download … going back, we said that epub 3.3 would not be a major revision. And we only have 1 year to finish the spec. … recall our experience with epub 3.1. The publishing industry, unlike the web, is slow to move to new standards **Dave Cramer:** a lot of the trouble with epub 3.1 was with epubcheck not being available (although the spec also had its own issues) … i think we should keep core media types … and maybe periodically consider new media types as the underlying technology evolves … and i think this discussion shows that that decision comes down to the specific media type under consideration **Ivan Herman:** i'm okay with what Dave said, but what are the criteria when we decide that something becomes a core media type? … earlier there was a request that webp to become a core media type, which we accepted without lots of discussion, but now (I believe) there's still an open PR about it **Bill Kasdorf:** when we originally created core media types, we still allowed the use of other media types, just with the caveat that the author must provide a fallback, true? … yes, okay **Hadrien Gardeur:** but we shouldn't always assume that there will be a working group to oversee the question of core media types, especially with newer media like video/audio … perhaps we can have a normative document where we would retain the capability to update it when we need to (i.e. between working groups) **Garth Conboy:** we currently have a list of types for image, a list for audio, and a vague suggestion for video … but I don't think the current state of support for video is broken right now … about what Hadrien said, maybe it could be an external vocabulary document? > *Garth Conboy:* [See the relevant section in the 3.2 spec](https://www.w3.org/publishing/epub3/epub-spec.html#sec-epub-rs-conf) **Ivan Herman:** about Hadrien's point, 1. The new process at W3C will make these types of updates much much easier. Under the new process we can update the spec if there is committee agreement. … 2. But we also have the option to separate the media type into a separate registry. The W3C will have a more formal way to update registries in the future. **Brady Duga:** I like the idea of pulling out the media types to a separate location rather than having them buried inside the main spec … re. Bill's Q about fallbacks. The specific issue with webp is that webp makes images smaller. If authors had to provide fallbacks when using webp, that would kind of defeat the point (by expanding the epub size) … there seems to be some disagreement about _how_ to add new core media types **Avneesh Singh:** we already tried what Hadrien suggested in epub 3.1, but then with epub 3.2, we put it back in … externally incorporated documents created additional issues when it came time to take 3.2 to ISO … maybe we could ask Makoto whether whatever we decide here will create an issue for ISO **Dave Cramer:** yes, external registries have definitely been an issue for specs in the past … and audio and video formats are more amenable to being remediated by fallbacks than images (the fallback can even just be text) **Ivan Herman:** to wrap up, we seem to be converging towards the point of not changing anything for now … we keep core media types as they are today and move on (and perhaps changes in the W3C processes will make these easier to maintain going forward) **Wendy Reid:** yes, we want to keep core media types, and we will wait and see about the idea of using external registries … esp. given that how registries will work in the future is still being sorted out … and the Process 2020 will allow us to make piecemeal modifications to the spec without revisiting everything … we're still in favor of adding webp, we just need to work out the implementation issues around webp > **Proposed resolution: EPUB 3.3 will keep the concept of core media types as it is today.** *(Ivan Herman)* **Ivan Herman:** i think webp is a separate discussion > *Tzviya Siegman:* +1 > *Ivan Herman:* +1 > *Matthew Chan:* +1 > *Brady Duga:* +1 > *Hadrien Gardeur:* 0 > *Wendy Reid:* +1 > *Garth Conboy:* +1 > *Charles LaPierre:* +1 > *Juliette McShane:* +1 > *Avneesh Singh:* +1 > *Toshiaki Koike:* +1 > *Bill Kasdorf:* +1 > *Masakazu Kitahara:* +1 **Garth Conboy:** and for video, we're going to keep it as it is for now - i.e. no specific type, just a suggestion **Hadrien Gardeur:** isn't that an inconsistency? There's core media types for some types of content, but not for video? **Dave Cramer:** In the past that was because video types were evolving so quickly **Hadrien Gardeur:** Images seem to be evolving quickly today > *Dave Cramer:* In case of conflict, consider users over authors over implementors over specifiers over theoretical purity. > ***Resolution #1: EPUB 3.3 will keep the concept of core media types as it is today.*** > *George Kerscher:* +1 **Wendy Reid:** Well with image elements, there are a robust assortment of image fallbacks > *Gregorio Pellegrino:* +1 **Brady Duga:** Let's please try to keep substantive discussion out of the irc chat. Let's keep the irc chat just for metadata about the meeting only please! … everyone may not be closely watching the chat log