1. Why you convert DASH to HLS
DASH and HLS are the two streaming standards that dominate modern OTT delivery. DASH (MPEG-DASH, served via an MPD manifest) is native to many European broadcasters, browser players and DRM pipelines. HLS (Apple HTTP Live Streaming, served via an M3U8 playlist) is native to every iOS device, Apple TV, Safari and a large number of legacy IPTV set-top boxes.
Converting DASH to HLS lets you:
- Serve DASH-only content to HLS-only players (Apple TV, IPTV boxes, legacy CTVs).
- Unify your origin output so every downstream CDN / cache sees the same format.
- Convert DRM-protected DASH into clean in-the-clear HLS for restricted environments under a valid license.
- Restream live events originally published in DASH.
2. The DASH to HLS conversion pipeline explained
A proper MPD to M3U8 conversion is not a single FFmpeg command — it is a small pipeline:
- Fetch the MPD manifest and parse
<Period>/<AdaptationSet>/<Representation>/SegmentTemplate. - Resolve BaseURL, startNumber and timeline to absolute segment URLs.
- Download the init segment (moov box) and the current window of media segments (moof + mdat).
- If the stream is DRM-protected: perform a license request, cache returned CENC KID:KEY pairs, and decrypt each fMP4 segment.
- Parse ISO BMFF, convert H.264/H.265 NAL units from length-prefixed AVC to Annex-B, wrap AAC/AC-3/E-AC-3 in ADTS / PES.
- Mux the decoded samples into MPEG-TS segments with a 90 kHz timebase.
- Write an HLS M3U8 playlist with
#EXT-X-TARGETDURATION,#EXT-X-MEDIA-SEQUENCEand rolling window. - For live streams, repeat the manifest fetch + segment ingest loop and keep the HLS window trimmed.
3. DASH to HLS with FFmpeg
FFmpeg handles basic DASH to HLS remuxing for unencrypted assets:
ffmpeg -i https://example.com/stream.mpd \ -c copy \ -hls_time 6 -hls_playlist_type event \ -hls_segment_filename 'seg_%06d.ts' \ output.m3u8
This works for small VOD tests. Where FFmpeg stops being the right tool:
- Live DASH with continuously updating MPDs — FFmpeg reads the manifest once and often drifts.
- CDN tokens that expire mid-stream — FFmpeg has no notion of token refresh.
- DRM-protected DASH — FFmpeg has no CENC decryption pipeline wired to a CDM.
- SENC boxes with 16-byte IVs declared as 8-byte in
tenc— silent audio corruption.
4. Shaka Packager & MP4Box
Shaka Packager is Google's open-source packager, primarily used to go from mezzanine files to DASH/HLS. It can re-package existing DASH into HLS with --hls_master_playlist_output, but it is not designed for live restream pipelines with third-party DRM decryption. MP4Box (from GPAC) is similar — great for packaging, limited for restreaming.
Both tools are valuable in their niche. For a live, DRM-protected MPD to HLS pipeline you want something that integrates the fetch, decrypt, remux and serve steps.
5. DRM-protected DASH to HLS — the hard part
The moment the DASH stream uses <ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"> (Widevine) or urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95 (PlayReady), plain FFmpeg is out of the picture. A working DASH DRM to HLS converter needs:
- A PSSH parser that extracts KID and init data from the MPD.
- A CDM client that performs the Widevine / PlayReady license challenge.
- A CENC engine that decrypts AES-128-CTR (CENC) or AES-128-CBC (CBCS) samples.
- SENC IV auto-detection for providers that declare 8-byte IVs but transmit 16-byte IVs.
- An HLS writer that produces conformant MPEG-TS segments with correct PMT/PAT, PCR and AUD insertion.
This is exactly the surface area Streamora covers out of the box.
6. Streamora — the built-for-purpose DASH DRM panel
Streamora ships as a single signed Go binary containing the entire DASH to HLS DRM pipeline:
- MPD parser — SegmentTemplate, SegmentList, SegmentBase, multi-period, live timelines.
- Internal fMP4 remux engine — parses ISO BMFF, decrypts CENC in-process, converts NAL units and emits MPEG-TS without FFmpeg.
- Widevine L1/L3, PlayReady, FairPlay, ClearKey — auto key acquisition or manual keys.
- CDN token refresh goroutine — rotates expiring signed URLs mid-stream.
- Live HLS server — rolling window, configurable segment duration, TARGETDURATION auto-tuned.
- Admin dashboard — real-time per-channel stats, PMT/PID inspection, SENC diagnostics.
- Fallback to FFmpeg pipelines when you specifically want transcode (ffmpeg_remux / ffmpeg_transcode modes).
Run the real-time DASH to HLS converter in 2 minutes
The updates page has the latest signed binary, install.sh and changelog. Streamora installs on Ubuntu, Debian, CentOS, RHEL, Rocky, Alma and Fedora with one command.
Download Streamora — Latest Release See Widevine L3 Decryptor Guide
Signed binary • install.sh • changelog • free trial
7. Tool comparison matrix
| Capability | FFmpeg | Shaka Packager | MP4Box | Streamora |
|---|---|---|---|---|
| DASH to HLS remux (unencrypted) | ✓ | ✓ | ✓ | ✓ |
| Live MPD refresh | Limited | ✗ | ✗ | ✓ |
| CDN token rotation mid-stream | ✗ | ✗ | ✗ | ✓ |
| Widevine CDM license flow | ✗ | ✗ | ✗ | ✓ |
| PlayReady / FairPlay / ClearKey | ✗ | Partial | ✗ | ✓ |
| SENC IV auto-detect | ✗ | ✗ | ✗ | ✓ |
| Live HLS server (rolling window) | Basic | ✗ | ✗ | ✓ |
| Admin dashboard / multi-tenant | ✗ | ✗ | ✗ | ✓ |
8. DASH to HLS converter FAQ
Can I convert DASH to HLS online for free?
Online converters exist for tiny VOD assets but are unusable for live streams or DRM-protected content — they fail within seconds on rotating CDN tokens. For anything beyond a single test clip you need a self-hosted converter like Streamora.
What is the difference between MPD and M3U8?
MPD is the manifest format for MPEG-DASH (XML, SegmentTemplate / SegmentList / SegmentBase addressing). M3U8 is the playlist format for HLS (text-based, EXT-X tags, MPEG-TS or fMP4 segments). Converting MPD to M3U8 involves parsing both schemas, repackaging segments and, for DRM, decrypting CENC fMP4 before repackaging.
Does Streamora support DASH to fMP4 HLS (not just MPEG-TS)?
Yes. Streamora can emit fMP4 HLS (CMAF) or classic MPEG-TS HLS depending on profile configuration. For maximum compatibility with legacy IPTV set-top boxes, TS remains the default.
How fast is Streamora's internal remux engine vs FFmpeg?
For pure remux (no transcoding), Streamora's internal pipeline is typically 2–4x lower CPU than an equivalent FFmpeg DASH to HLS pipeline because it avoids the subprocess, avoids re-parsing MP4 boxes twice and skips the FFmpeg demux layer entirely. On a 100-channel live DRM deployment this is the difference between one VPS and three.
What about HLS to DASH?
Streamora is primarily a DASH-to-HLS panel because that is the dominant direction in OTT. HLS-to-DASH is possible via the FFmpeg pipeline mode if required.
Replace your homebrew MPD to M3U8 scripts
Install Streamora and get a production-grade DASH to HLS DRM converter, live HLS origin and admin panel in a single binary.
Download Streamora — Latest Release See CENC Decryption Guide
Signed binary • install.sh • changelog • free trial license