I have a quick questions. Has anybody examples or links for the use of FFmpeg with the Media Source Extension for pure JavaScript adaptive VOD-, or Live-Streaming? I mean really pure not HLS or DASH.

I prefer the chunkless, so say inline-container-segmenting:). So that i have a full files like so:

  • video_1080p_5000k.webm
  • video_720p_5000k.webm
  • video_480p_5000k.webm
  • audio_128k.opus
  • audio_256k.opus
  • and so on ...

What I search are JavaScript snippets and FFmpeg examples for a pure mse-js-adaptive-vod-player;).


Edit: A deeper explain why i not use DASH or HLS? I try to understand the deeper functions that JavaScript chunk the Videos on the fly, to prevent and memory low error and make a very simple and basic adaptive streaming.

I can load small Videos and Music files into a blob/string. Cool thing but when I try to use the chunking functions I have many problems with some things. That is why I search compact FFmpeg encoder params and JavaScript examples preferably links to sites with that preferably for all free codecs that I can use.

1 Answer 1


Chunkless and Adaptive is a contradiction. You can concatenate chunks, and request with a byte range however. Both HLS and DASH support that mode.

  • Hello, okay my question ist then how can i made video files with concatenate chunks with ffmpeg and how can i use this with javascript/mse/video-tag or knows anybody a site with examples. But i mean a pure JavaScript/MSE-Solution without HLS or DASH. Why HLS is not free and Dash is the answer but i specially want to use MSE without ready standards. I know No Dash without MSE and when MSE why not Dash;), but i'm intrested in the pure MSE-Technology with an ffmpeg/purejavascript solution:). Pure Adaptive Streaming:). Commented Apr 14, 2018 at 22:58
  • What you are saying doesn't make much sense. first of all HLS is not "free" in what sense? if your talking about mpeg2 patents, they have all expired. It is no less free that DASH. "pure" MSE/JS is just fmp4. the same fmp4 used by DASH, and optionally by HLS. DASH just adds an XML manifest file, and HLS an m3u8 manifest file.
    – SlimSCSI
    Commented Apr 15, 2018 at 0:13
  • Hello, thx for the infos but one objection to fMP4, when i us ogg/webm as Container it is no fMP4, HLS is the one that is not codec agnostic and Dash is, i know. This is why i have asked this Question. I search ffmpeg params which i can encoded every av-codec to use in dash with the right codec params and why i search examples or good links to sites that explain pure MSE/JS? One small thing ist the Overhead against dash-xml and javascript to use it (dash.js is very big), another thing is doing by learning and understandig mse:). But you are right in deep the answer on my questions cbe use dash Commented Apr 15, 2018 at 7:34
  • DASH is codec agnostic in theory, but in reality browsers only support AVC and VP9 and a very few HEVC. HLS supports AVC and HEVC. So preactilly, the only difference is VP9.
    – SlimSCSI
    Commented Apr 15, 2018 at 15:43
  • Just because you use “DASH like”segments (which are also HLS like, and CMAF like) doesn’t mean you need dash.js. You can make your own manifest and js.
    – SlimSCSI
    Commented Apr 15, 2018 at 15:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.