RESOLVED FIXED Bug 122000
[GStreamer] Support "chapter" text tracks
https://bugs.webkit.org/show_bug.cgi?id=122000
Summary [GStreamer] Support "chapter" text tracks
Brendan Long
Reported 2013-09-26 17:45:59 PDT
It looks like the way to do this is with GstToc: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstToc.html#gst-toc-entry-get-uid We can get these from GstMessages: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstMessage.html#gst-message-parse-toc It looks like Matroska currently has the best support, but there's a TODO saying mp4 should support it too. mkvmerge can create these: http://www.bunkus.org/videotools/mkvtoolnix/doc/mkvmerge.html#mkvmerge.chapters I have a *very* basic patch (adding chapters to counting-subtitled-srt.mkv and printing out chapter contents) here. It's not even remotely done, but it might be useful for someone else who wants to finish this: https://github.com/cablelabs/webkit/commits/ruih/handle-table-of-contents
Attachments
Patch (33.75 KB, patch)
2013-09-30 09:56 PDT, Brendan Long
no flags
Add ENABLE(VIDEO_TRACK) checks (33.93 KB, patch)
2013-09-30 11:10 PDT, Brendan Long
no flags
Patch for landing (34.34 KB, patch)
2013-10-01 08:49 PDT, Brendan Long
no flags
Brendan Long
Comment 1 2013-09-30 09:56:30 PDT
Early Warning System Bot
Comment 2 2013-09-30 10:03:02 PDT
Early Warning System Bot
Comment 3 2013-09-30 10:03:18 PDT
Brendan Long
Comment 4 2013-09-30 11:10:20 PDT
Created attachment 213014 [details] Add ENABLE(VIDEO_TRACK) checks
Eric Carlson
Comment 5 2013-10-01 08:08:39 PDT
Comment on attachment 213014 [details] Add ENABLE(VIDEO_TRACK) checks View in context: https://bugs.webkit.org/attachment.cgi?id=213014&action=review > Source/WebCore/platform/graphics/gstreamer/InbandMetadataTextTrackPrivateGStreamer.h:36 > +class InbandMetadataTextTrackPrivateGStreamer : public InbandTextTrackPrivate { Nit: FINAL > LayoutTests/media/in-band-cues.js:185 > + for (var i = 1; i < numInBandTracks + 1; ++i) { > + compareTracks("video.textTracks[" + (i + 1) + "]", "inbandTrack" + i); > + } Nit: braces aren't necessary here
Brendan Long
Comment 6 2013-10-01 08:12:46 PDT
(In reply to comment #5) > Nit: braces aren't necessary here I'm surprised the style checker let me do that. Since you set it to review+, I assume you don't think it's worth fixing and resubmitting?
Brendan Long
Comment 7 2013-10-01 08:14:12 PDT
Or is it intentionally still "commit-queue?" so someone else can review it?
Eric Carlson
Comment 8 2013-10-01 08:19:23 PDT
(In reply to comment #7) > Or is it intentionally still "commit-queue?" so someone else can review it? You can update the patch and upload as "Patch for landing" and anyone will cq+ it.
Brendan Long
Comment 9 2013-10-01 08:49:31 PDT
Created attachment 213086 [details] Patch for landing Removed superfluous braces
Eric Carlson
Comment 10 2013-10-01 08:56:24 PDT
Comment on attachment 213086 [details] Patch for landing View in context: https://bugs.webkit.org/attachment.cgi?id=213086&action=review > Source/WebCore/platform/graphics/gstreamer/InbandMetadataTextTrackPrivateGStreamer.h:36 > +class InbandMetadataTextTrackPrivateGStreamer : public InbandTextTrackPrivate { You forgot to mark this FINAL, but it is OK to fix this in a follow-up.
WebKit Commit Bot
Comment 11 2013-10-01 09:25:35 PDT
Comment on attachment 213086 [details] Patch for landing Clearing flags on attachment: 213086 Committed r156713: <http://trac.webkit.org/changeset/156713>
WebKit Commit Bot
Comment 12 2013-10-01 09:25:39 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.