<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>
Announcing VTT Embed — Add Captions To Embedded YouTube Videos (And Others)
</title>
<meta name="generator" content="//dj-chase.com/Make.py">
<link rel="stylesheet" href="../style.css?cache-bust=2024-02-15">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<!-- whitespace to right of nav -->
<nav>
<a href="#start">Skip to start</a> <!-- screen-reader–only p -->
<p>
You are here:
</p>
<ol>
<li>
<a href="/" aria-label="home">⌂ <span>›</span></a>
</li>
<li>
<a href="/documents/">documents <span>›</span></a>
</li>
<li>
<a href="/documents/announcing-vtt-embed.gmi">announcing-vtt-embed.gmi</a>
</li>
</ol>
</nav>
<main id="start">
<h1>
Announcing VTT Embed — Add Captions To Embedded YouTube Videos (And Others)
</h1>
<p>
I frequently want to embed external videos at work, but can’t because they’re uncaptioned or only have auto-captions. I also occasionally want to embed one on my site, but don’t because I don’t want to serve JavaScript or trackers. So, I created a CGI script to embed external videos using HTML’s native <code><video></code> element.
</p>
<p>
<del><a href="https://tildegit.org/u9000/vtt-embed">It’s currently on Tildegit</a> while Sourcehut is still recovering from the <a href="https://web.archive.org/web/20240112173110/https://sourcehut.org/">Sourcehut–Codeberg DDoS (Distributed Denial of Service) attack</a>, but you can still contribute even if you can’t make an account on Tildegit (see <a href="https://tildegit.org/u9000/vtt-embed/src/branch/master/CONTRIBUTING.md">CONTRIBUTING</a>).</del> <a href="https://sr.ht/~u9000/vtt-embed/">It’s now on Sourcehut</a>. I will keep both up though because Sourcehut’s email-based workflow can pretty easily accommodate pull requests using <code>git request-pull</code>, so there’s no reason not to provide that as an option.
</p>
<p>
I’m pretty exited about this one because I think it’ll actually be useful for people. At the very least, I will definitely get use out of it. It’s also nice because I got the project done in a week and it’s already version 1.0. The only other addition I can think of is making a PHP version if there’s enough demand.
</p>
<p>
I have a <a href="../cgi-bin/vtt-embed.sh">hosted instance</a> if you can’t host your own. If you can, though, that would be appreciated. You can <a href="matrix:r/vtt-embed:matrix.org?action=join" title="#vtt-embed:matrix.org">join the Matrix room</a> if you need any support or have any questions. There is also a <a href="../unlisted/vtt-embed-demo.gmi">demo</a> if you’d like to see it in action.
</p><!-- html code generated by txt2tags 3.3 (http://txt2tags.org) -->
<footer>
<p>
Questions, comments, or wrote a reply? <a href="mailto:u9000@posteo.mx">Email me</a>.
</p>
<p>
© DJ Chase 2024-01-20. Licensed under the Academic Free License (AFL 3.0).
</p>
<p>
<a href="/cgi-bin/cite.sh">Cite this page</a>
</p>
<p>
<a href="https://u9.tel/announcing-vtt-embed">Short link</a>
</p>
</footer><!-- cmdline: txt2tags -->
</main>
</body>
</html>
Response:
20 (Success), text/plain