-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<podcast:chapters> should accept webvtt as recommended #315
Comments
How would https://github.com/Podcastindex-org/podcast-namespace/blob/main/chapters/jsonChapters.md#more-complex-example look like in webvtt? |
WebVTT needs Each WebVTT track file, once loaded, will fire entering and leaving each cue point. So chapters and metadata will not have same called functions. Here is my version :
WebVTT files looks like SRT files, and have the same accepted html tags. Some examples are in that MDN page https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API Also, you may check WebVTT type |
Why should less features (no urls, no chapter level, no images) be the default/recommendation? Also be aware that the term |
There is a transcript kind of To be honest : I think that what you describe, aka transcriptions with hyperlinks are a bit more usable and accessible put in the Oh, you can set not one but a lot more of
|
I feel divided. Using web standards understood by the browser are compelling. |
I don't have a dog in this race. But - it doesn't look complicated (nor a processing burden) to take SRT and produce a WebVTT version if required programmatically. When I fiddled with this a while ago, the CORS issues with using SRTs hosted on other domains meant that you needed a local proxy anyway. |
Yes, if one wants to use subtitle files we should definitely recommend WebVTT over SRT, and maybe even drop SRT files from the spec. As far as I have understood it you simply add a You might also add some metadata like language and kind, but they are optional: https://jbilocalization.com/the-difference-between-srt-and-webvtt-in-captioning-subtitling/ |
The cited article miss the fact that you can name sequences/chapters in WebVTT, and this is recommended in events checking and pointing to a chapter instead of a timecode. |
Yeah, the examples in the spec are really interesting, especially
Someone™ should create a WebVTT version of https://github.com/Podcastindex-org/podcast-namespace/blob/main/chapters/exampleComplex.json – and add it as an example via PR. The open questions are:
|
Haven't I done it upper ? #315 (comment) About images : You may use embedded CSS |
How would the the |
Hi @dellagustin , you've got some good points. But please notice that before building podcast for your applications, podcast editors also have website, and WebVTT is the only implemented format, and perfectly supported in any actual browser, even Safari. Everything from track selection, events,etc… a very complete API is available and respond very well. For Images or external URL, you can use the I'm only suggesting it, but we can as to an editor of the spec for being sure. |
Why an extra NOTE? Isn't it possible to combine metadata Cue's with text Cue's? https://www.w3.org/TR/webvtt/#introduction-metadata 1
00:00:00.100 --> 00:00:07.342
Samurai Pizza Cats
{
"type": "WikipediaPage",
"url": "https://en.wikipedia.org/wiki/Samurai_Pizza_Cats"
}
3
00:11.441 --> 00:14.441
Foo bar Location
{
"type": "LongLat",
"lat" : "36.198269",
"long": "137.2315355"
}
No, this was only a comment – And I meant a full example, with the same content as the linked file but in different representation. |
Is your notation proposal conforms to WebVTT standard description ? As I read your proposal, any browser will take the whole text until a full blank line as a text. Your proposal, as your JSON is non-normative, will be better suited in a separate block, noted as
Note that I didn't check how web browsers will interpret it. I suppose they will ignore it, so you cannot use it in any javascript lib. It's better to separate properly data, as we use to separate HTML, CSS, JS and MP3 in different files. |
Regarding using NOTE to express metadata, the section 4.1. WebVTT file structure states A WebVTT comment block is ignored by the parser, so I don't expect it would me made available using parsing APIs. I'd say it is a no-go for this option.
A few comments on that:
That said, I still feel divided. |
WebVTT is interesting for chapters, but there is nothing in the spec allowing to merge files with differents purpose. It's actually the opposite. When used in HTML, you have to specify the kind of data the webvtt file contains :
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/track I agree with @dascritch, we should use existing web standards when possible. Even if people are listening to your content inside apps, ensuring ease of use and compatibility with web technologies is still a good point. Although @dellagustin is absolutly right, Here is an exemple of my usage of VTT in a recent project. I have 2 files, WEBVTT
00:00:00.135 --> 00:00:03.108
Bonjour et bienvenue dans podcast.tips,
le podcast podCloud qui donne toutes les
00:00:03.108 --> 00:00:04.722
petites astuces pour
mieux faire du podcast And another one WEBVTT
episode-title
00:00:00.000 --> 00:10:00.000
Choisir son micro
logo-placement
00:00:00.000 --> 00:00:34.000
top right
logo-placement
00:00:34.000 --> 00:00:38.500
top left
logo-placement
00:00:38.500 --> 00:10:00.000
top right If we use WebVTT we SHOULD use separate files for separate content kind as specified in the spec of webvtt. Here is a guide on how to use chapters vtt : http://thenewcode.com/977/Create-Interactive-HTML5-Video-with-WebVTT-Chapters |
I know this is an old thread, so apologies for being late to the party. The WebVTT standard is very extensive and handles/specifies a lot of details that the custom JSON formats gloss over, like how non-English text would work (text encoding, right-to-left languages, mixed languages, ...). While it's true that no browser today renders chapter tracks in Even if the player is not browser-based, there are existing libraries in other programming languages for handling WebVTT and tools that export WebVTT (e.g. if you download a Zoom recording, it will give you the transcript as a If the goal is to allow supplying chapter art and links too, it makes a lot of sense to me to have one VTT of kind |
In https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md#user-content-chapters , for the tag
<podcast:chapters>
, it states that browsers aren't supporting ID3 chapters tags. This is true. But instead the proposal use a less standard solution, a brand new json file.Support for WebVTT files is nearly complete on web browsers and are a W3C standard.](https://www.w3.org/TR/webvtt1/), works smoothly in 99% market-share browsers, are exposed and used in accessibility tools. So why preconize a new file format without native implementation instead to use one perfectly used now for 10 years (in subtitling, but it works perfectly too for chaptering, i'm using it) ?
I suggest to change this to recommend WebVTT as a preferred solution, mime type
text/vtt
, documentation https://www.w3.org/TR/webvtt1/, and alternatively to suggestapplication/json+chapters
.The text was updated successfully, but these errors were encountered: