/DASH-to-HLS-Playback

DASH to HLS Playback

Primary LanguageJavaScript

DASH-to-HLS-Playback

DASH to HLS Playback converts DASH's MPD manifests to HLS's M3U8 manifests. It works by extracting information from MPD files, creating M3U8 master playlist and media playlists, finally plays out with hls.js.

DASH to HLS Playback does not need any player, it works directly on a standard HTML <video> element on a browser (tested on Chrome and Firefox) supporting HTML5 video and MediaSource Extensions.

It is written with Javascript and HTML.

Getting Worked

Prerequisite

A web server (for example a localhost) is required to hold the newly created M3U8 files, fetch media segments and play them out. Since All HLS resources must be delivered with CORS headers permitting GET requests.

Installing

Under the server folder git clone the source HTTP.

git clone https://github.com/huzhlei/DASH-to-HLS-Playback.git

Running

Open the folder from server.

Provide the MPD URL address or choose from file system the MPD of your interest.

Hit Convert and Play.

MPD instances

Notes

  • If loading MPD from URL, media segments must locate at the same address of the given MPD file.
  • If choosing MPD from file system, media segments must be trackable with a <BaseURL> tag.
  • It only supports MPD file with one period. If several periods in the MPD, it only works on the first period.

Bulit With

hls.js logo - used to stream under HTTP live streaming protocol.

Workflow Chart