w3c / webvtt

WebVTT Standard
https://w3c.github.io/webvtt/
Other
103 stars 40 forks source link

Full metadata example with browser guidelines #346

Open techtonik opened 7 years ago

techtonik commented 7 years ago

I am looking to create video processing pipeline in browser, and I need to pass pre- and post- processing metadata along with the video stream. WebVTT mentions metadata text, but doesn't provide any usage examples. Guidelines how browsers should threat metadata streams (if there are subscribers and no subscribers) would also be nice.

silviapfeiffer commented 7 years ago

Here's an example that might be useful using GeoJSON: http://wiki.webmproject.org/webm-metadata/temporal-metadata/webvtt-metadata

silviapfeiffer commented 7 years ago

Here's another example I found: https://github.com/caraya/vtt-demos/blob/master/video_captioning.md#metadata-tracks

silviapfeiffer commented 7 years ago

Or something a bit more involved: https://gist.github.com/jajarvin/149ea6a41f053c727147 - hopefully these help you for now

techtonik commented 7 years ago

Thanks. That's very helpful for the start.

Here's an example that might be useful using GeoJSON: http://wiki.webmproject.org/webm-metadata/temporal-metadata/webvtt-metadata

So metadata block attached to one time tag can not have spaces, right?

Here's another example I found: https://github.com/caraya/vtt-demos/blob/master/video_captioning.md#metadata-tracks

Here it is not clear how this stream is different from subtitle stream for a program. Previous example used VTTKind: metadata header, but I could not find any references to it in https://w3c.github.io/webvtt/

Spec still badly need examples - it is hard to read and reconstruct possible content variant from Syntax chapter.

zcorpan commented 7 years ago

VTTKind: metadata is not mentioned because it is non-standard.

I agree more examples are needed.