How to stream .mpd files

How to stream .mpd files/MPEG-DASH (or anything else supported by ffmpeg?)

  • Install system ffmpeg as the channels ffmpeg does not support mpeg-dash
  • Run
    /usr/bin/ffmpeg -i https://livesim.dashif.org/livesim/testpic_2s/Manifest.mpd -listen 1 -codec copy -f mpegts http://127.0.0.1:8888/
  • Define a new custom channel specifying http://127.0.0.1:8888/ as the address in the M3U8 file. Option MPEG-TS should be specified for the file types.

More info:

Dash JavaScript Player

For anyone stumbling upon this thread, do not use the -re option with ffmpeg unless your source content is a stored file on your disks; it should not ever be used with live streams of any sort.

(I can only assume you came upon the information you are sharing from random sites on the internet without understanding what you were actually reading. Please stop sharing copy-pasta!)

The option seems a bit controversial indeed but without it, ffmpeg is hammering the source as the implementation of .mpd demuxer is not so great in 4.3.5. So lots of requests will be generated at the source when it is gone. I removed it.

1 Like

UPDATE: Get streamlink · PyPI by running

$ pip install streamlink

and instead of running ffmpeg directly run

$ streamlink --ffmpeg-fout mpegts --player-external-http --player-external-http-port 8888 https://livesim.dashif.org/livesim/testpic_2s/Manifest.mpd best