Wdl
Search, read and navigate transcripts from web.dev LIVE videos
Install / Use
/learn @samdutton/WdlREADME
Build search and readable transcripts for conference videos
This is a Node application that processes caption files from conference videos to enable search and create readable transcripts.
The code could easily be adapted to work with caption files from other playlists.
<!--- Try it out at [samdutton.github.io/wdl](https://samdutton.github.io/wdl). --->Installation and usage
- Clone or download the code.
- Add your SRT caption files to the input directory. See get-youtube-captions.md for instructions on how to how to retrieve caption files for YouTube videos.
- From a terminal
cdto thesrcdirectory and runnode index.js -s, optionally setting flags (see below). This creates HTML for readable transcripts (in the docs folder) and builds the search index if the-sflag is set. - Progress updates and errors are logged to the console.
- When conversion is complete, view the results from index.html in the app directory, the directory used for GitHub Pages. This directory includes a CSS file and a JavaScript file to style the transcripts and enable interaction.
SRT and app directories
- When you clone the repo, the directories for the SRT caption files and the app contain sample files.
- You can customize srt and app directories — see flags below.
Error handling
Check for errors in error-log.txt.
Command line options
-a, --append Append output to existing files in output directory
-h, --help Show help
-i, --input Input directory, default is [_input_](src/input)
-l, --validate Validate HTML output, default is false
-o, --output Output directory, default is [_output_](src/docs)
-s, --search Create search index
-t, --transcript Create transcript HTML files, default is false
-u, --upload Upload records to search service, default is false
Feedback, feature requests and bug reports
- Please file an issue including input files where relevant.
- See the TODO file for work in progress.
Known issues
Google Translate widget
This widget is no longer supported and the language selection popup is not laid out responsively.
Probably best to remove unless the layout can be fixed (others have tried!)
<!--- Please note that this is not an official Google product. --->
