Skip to content

A proof of concept for low latency DASH streaming using entirely open source software end to end.


Notifications You must be signed in to change notification settings


Repository files navigation

Streamline Low Latency DASH preview

This is a proof of concept system for generating a low latency live stream from encoder, to server, to player using entirely open source software end to end. It will render a page with a player in it. The player will display a video that has a test pattern generated by the encoder with an embedded timecode burned into the video. This is the "encoder time" timecode. On top of that there is a time code overlaid on the player. This is the wall clock or player timecode. The difference between these two clocks is your precise end to end latency.

This player will load extra quickly and then play with time a bit to "walk in" the latency. This means it will play faster than real time until it catches up to the latency that you are requesting. Our default here is 2.2 seconds.


Things to know

  • The work in this repo on low latency will later form the basis of an update to the larger streamline project. It is a proof of concept / preview for a future version called streamline prime. If you are interested in the streamline prime project, check out this discussion.
  • This demo assumes that you are using Ubuntu / Debian or MacOS
  • This demo provides everything you need to run a low latency live stream for educational purposes
  • This is a preview and proof of concept. It is not meant to be used in production. There has not been extensive testing yet. There are bugs. I promise you, there are bugs ;). Feel free to test, contribute fixes, etc, but don't dive right in and assume the pieces are production ready.

TODO for preview project

  • Maybe Windows directions and scripts
  • Polish server performance and reliability
  • Add ABR demo once dash.js fixes some bugs
  • Roll everything into a streamline prime project


Ubuntu / Debian


wget && unzip master && rm -r -f master/ && cd low-latency-preview-master/ && ./

You have now built everything. Continue to the run section.


First make sure you have homebrew installed.


curl -o && unzip && cd low-latency-preview-master/ && ./

Running the server


Running the test pattern generator and encoder

./ *insert destination hostname of server* *insert a stream name*


./ localhost 1234

View your content

Oh 💩 here we go!
View your stream at http://localhost:8080/ldash/play/1324/manifest.mpd

Go to that URL and you should see your stream!

To kill the streams...


What do I do with this?

Be impressed by the speed! Be excited by the opportunities for scalability. Learn about the realities of low latency live streaming and how to implement it. You can learn form this and modify parts to build your own own live streaming system. This project itself doesn't have a huge use, the proof of concept of the architecture, the server that we have created, and the documented settings for FFmpeg and dash.js are what is of value to other projects.


  • Credit to Lei Zhang @codingtmd for writing the server.
  • Thank you to Matt Szatmary @szatmary for helping us debug.
  • Credit to Karthic Jeypal @jkarthic-akamai for his work on FFmpeg that makes this possible.
  • Credit to Will Law @wilaw and the whole dash.js team for the player that enables this. We are using the dash.js player. Feel free to visit their website for their nightly reference player or their github.
  • ...and I guess me, Colleen Kelly Henry @colleenkhenry, for putting this all together.


A proof of concept for low latency DASH streaming using entirely open source software end to end.







No releases published