Support WebVTT files
See original GitHub issueI need to process either SRT or VTT files depending on what is available. If I work on adding support for VTT files (which is superset of SRT) would that be something you would consider merging?
I think just stripping the web VTT header and styling when parsing will be a good start. Then VTT input will be supported with SRT output. A further step might be to keep the additional info in the captions array as well, from where it could then be added back in stringify
.
I’ll open a PR once I’ve made some progress over the coming days.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Web Video Text Tracks Format (WebVTT) - Web APIs | MDN
The primary purpose of WebVTT files is to add text overlays to a <video> . WebVTT is a text based format, which must...
Read more >VTT File Extension - What is a .vtt file and how do I open it?
You can open and edit a VTT file using any text editor, such as Microsoft Notepad (Windows), Apple TextEdit (Mac), or GitHub Atom...
Read more >WebVTT Captions: How to Create a Web Video Text Track File
The WebVTT caption format is a popular alternative to SRT files. Here is a comprehensive guide to creating your own WebVTT caption file....
Read more >Closed Captioning for Web Video Support with SRT and VTT ...
First, Dacast's supported caption files include SRT (SubRip Text, aka SubRip Title) and VTT (Video Text Tracks, aka WebVTT) files.
Read more >How to Open VTT Files | GoTranscript
A VTT file, also known as WebVTT or a "Web Video Text Track" file, is a commonly used caption and subtitle format with...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Actually, I’m not working on the
parse
anymore. You can ignore my commits at development branch. I will focus now on solve the #18 and #19 issues.So, there are no problems if you want to improve the
parse
or any other function for now.@marnusw thanks!