Open-source streaming API from ingest to player
Hi there HN! I'm Matthias and I've been into video streaming for quite a while now. Over the years I've built plenty of small setups, often CLI tools to test and debug streaming video. About a month ago, during my annual holiday, I started working on a simple API on top of my CLI tools. It's time consuming to craft and run multiple ffmpeg jobs, get GOP / keyframes right, merge playlists, package to HLS, ... One thing led to another and I eventually started exploring HLS interstitials, VMAP / VAST and dynamic ad insertion, MSE / EME (HLS.js in general), React (perf) as a player…
What it does
In the maker’s words, at launch
Hi there HN! I'm Matthias and I've been into video streaming for quite a while now. Over the years I've built plenty of small setups, often CLI tools to test and debug streaming video. About a month ago, during my annual holiday, I started working on a simple API on top of my CLI tools. It's time consuming to craft and run multiple ffmpeg jobs, get GOP / keyframes right, merge playlists, package to HLS, ... One thing led to another and I eventually started exploring HLS interstitials, VMAP / VAST and dynamic ad insertion, MSE / EME (HLS.js in general), React (perf) as a player UI (although I have some experience with that from the past). Once transcode or package jobs are finished, they'll sync back to S3 (or any S3 compliant storage service). From the get go I built in public, including: 1. Scale transcode (ffmpeg) jobs over multiple machines, crafting multiple video renditions, audio and text tracks. The API endpoint to start this job is rather simple, you define your source files (what you have, eg; an mp4 as video; an mp4 as audio with language "eng", ...) and the output (streams) of what you want (eg; H264 video 1080p, 720p, aac audio with language "eng", ...). 2. Package all transcode streams into an HLS playlist, uses shaka-packager under the hood. Uploads every playlist and segment to S3 publicly, at this point your asset is playable. 3. An on-the-fly playlist manipulator where you can limit the max. quality, add HLS interstitials for ad or bumper insertion or use VMAP / VAST to insert ads in stream. When a VAST is not yet transcoded and packaged, stitcher will start that job. When a playlist is found for that particular ad, stitcher will add an interstitial to the playlist. An HLS Interstitials supported player will then be able to play the ad at the given time defined in the VMAP. 4. A facade on top of HLS.js that makes working with interstitials a bit easier. Know that interstitials support with HLS.js is ongoing work (https://github.com/video-dev/hls.js/issues/5730). 5. When I was toying around, I felt I missed the experience of interacting with a player (that's the only part in video streaming your end users interact with, and the default HTML5 player UI doesn't fit more advanced use cases such as quality selection, display ad points on the seekbar, ...) thus I built a small React component that functions as a player UI on top of the facade I built earlier. I'm having a blast so far. Hope it provides value to some of you. Feedback is appreciated!
Does the same job
all alternatives →- IJI just open sourced Muxamp, a streaming media playlist in Node.js2013 · github.com · ▲32
Hey HN! I've been working on Muxamp for over a year now, and I decided that there's no point in keeping the source closed. (I never planned on making money from it.) I've learned a lot since I started, and I hope others can benefit from its release--and perhaps teach me a thing or two as well :)

- SAStreamus - An open-source Chrome extension for managing YouTube music2014 · ▲9
Hey everyone, I'm a young developer with a penchant for music and quality software. I have spent the last 16 months developing an open-source Google Chrome extension which attempts to simplify the experience of using YouTube to play music. Streamus: http://streamus.com/ Streamus currently has 14,000 users and is the #1 trending / #4 ranked 'fun' extension in the web store. I've built it entirely from scratch while teaching myself the basics of BackboneJS (and Backbone.Marionette), RequireJS, GruntJS and many other, smaller libraries. It has been a great learning…
- AOAn open-source Operator that can use computers2025 · github.com · ▲9
Hi HF, I'm Terrell, and we built an open-source app that lets developers create their own Operator with a Next.js/React front-end and a flask back-end. The purpose is to simplify spinning up virtual desktops (Xfce, VNC) and automate desktop-based interactions using computer use models like OpenAI’s There are already various cool tools out there that allow you to build your own operator-like experience but they usually only automate web browser actions, or aren’t open sourced/cost a lot to get started. Spongecake allows you to automate desktop-based interactions, and is fully open…
- MOMy open-source liquid handler ( biohacking )2011 · ▲18
Excuse my typing, I've just been up for a few hours and I've made my deadline for SB 5.0 =] ... but for HN.. you guys get it early I present to you my fellow hackers: https://github.com/delinquentme/LH001 ....I call it the 'LH001' , it is: open source, arduino based, 96 well microplate, peristaltic pump, liquid handler running: open protocol controls ( in browser or over wire ), In Ruby on Rails And here it is in person: http://www.youtube.com/watch?v=ZY5IY5CZ1es Questions? Critiques? Thoughts? So, do I have HN's permission to change my twitter bio to include "biohacker" ?
- IMI made an open-source Replit2024 · github.com · ▲9
I spent the past few weeks making an open source cloud code editing environment with an AI copilot and multiplayer collaboration! It's fully self-hostable in 5-10 minutes. There's a lot of minor improvements to be made, and some are already listed in the Github issues. Let me know what you think and feel free to try it out.
More dev tools this month
the category →



Open-source GTM skills for technical founders
Dev tools · 29d ago · gtmcofounder.com

OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.
Dev tools · 1d ago · opentrailpaper.com

Launched alongside, September 2024
the whole month →

BeforeSunset AI 2.0▲1,267Personalized AI daily planning that suits your life
AI · 2024 · beforesunset.ai


