-
Notifications
You must be signed in to change notification settings - Fork 71
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
Add Captions, Subtitles, and Interactive Transcripts #1003
Comments
This is of interest to local use cases, specially with respect to accessibility and oral histories. WebVTT seems to be the standard supported by W3C: https://www.w3.org/TR/webvtt1/. If we agree on WebVTT, then we can consider extending this: https://www.drupal.org/project/videojs. We would need to add tracks as media, then the field formatter plugin needs to access those tracks. |
@DonRichards @dannylamb @MarcusBarnes I have done some initial work to see how we can include caption tracks in the video js player. It uses videojs module and overrides its theme hook to add the track. videojs drupal module is designed to support that use case. We don't have to touch the module. Testing
(You will need to clear the cache to see changes effect during various steps.) Questions
|
daaaaaaaaaaaang @Natkeeran |
@Natkeeran To answer your questions,
|
I may have misunderstood your first question. I'm not completely sure on your other questions. |
I think this might cover the transcripts viewer & editor as another solution https://www.drupal.org/project/transcript |
ok so related to the tech call from 1/13/21 and my recent PR: Islandora/islandora_defaults#44 this was fairly straight forward to apply
A few notes:
|
subtitles in EBU-STL format |
There was an earlier work-in-progress PR that used videojs, but it was abandoned. You could possibly change your theme to override the video field Twig to include the requisite libraries and use the video-js tag instead of the video tag, but I haven't tried it myself. Also, according to their docs, videojs only supports WebVTT. I know YouTube will take them, but I haven't found any indication that browsers can. Perhaps you should try converting them? |
@seth-shaw-unlv |
We have a number of oral histories that are audio-only, no video. When available we display a static image of the speaker in the display with caption text reflecting the transcription. Can we assume that such capability would be applicable to audio recordings as well? |
Obvious suggestion is to add video closed captioning, subtitles, and interactive transcripts support for video playback.
The question is what closed captioning formats to support and which should be the default if any?
And should there be an example in the vagrant build?
Most popular from what I see is either SRT or WebVTT.
WebVTT
Supported by Video.js
Has the ability to use captioning numbers and metadata (embedded in the VTT file)
WebVTT has the ability to specify font, color and text formatting, and placement.
SRT
No longer supported by Video.js
SRT support basic text formats (bold, italic, underline) and placement.
linguists often prefer to translate directly in SRT since it will have fewer text code elements
Compatible with most subtitles processing programs.
Some other formats to note
CAP – This is a common subtitle/caption file format for broadcast media. It was developed by Cheetah International.
CPT.XML – XML format used for encoding captions into Flash video. It originated in the caption-embedding software Captionate.
DFXP – This is the most common format used for captioning Flash video. It’s a timed-text format that was developed by W3C and stands for “Distribution Format Exchange Profile.”
EBU.STL – This is a common subtitle/caption file format for PAL broadcast media. It was developed by the European Broadcast Union.
QT – Caption format used for QuickTime video or audio. It was developed by Apple.
RT – RealText captions for RealMedia video or audio.
SAMI (SMI) – Used for Windows Media video or audio. It was developed by Microsoft and stands for “Synchronized Accessible Media Interchange.”
SBV – This is a YouTube caption file format that stands for “SubViewer.” It’s what you get when you download captions from YouTube. It’s a text format that is very similar to SRT.
SCC – Popular standard used for Line 21 broadcast closed captions, web media, DVD, as well as subtitles for iTunes, iPods, iPads, and iPhones. It was originally developed by Sonic and stands for “Scenarist Closed Caption.”
SRT – This is the most common subtitle/caption file format, especially for YouTube or Facebook captioning. It is a text format that originated in the DVD-ripping software SubRip and stands for “SubRip Subtitle” file.
STL – Used for DVD Studio Pro. It was developed by Spruce Technologies and known as “Spruce Subtitle File.”
WebVTT – Caption format for HTML5 media players.
ITT – iTunes Timed Text
WMP.TXT – Windows Media
ADBE – Adobe
The text was updated successfully, but these errors were encountered: