Skip to content

How do I capture MPEG-TS video, write it on disk, and stream it via HLS?

How do I capture an MPEG-TS stream, write it to an archive on disk, and then deliver via the HLS or any other protocol?

How do I obtain MPEG-TS

MPEG-TS can be captured via UDP from satellite headend or from a DVB capture card.

Learn more on how to configure the URL for receiving MPEG-TS via HTTP or UDP in Data Source Types.

For more detailed explanations about multicast ingest, issues related to it, and checking the stream in VLC, see Multicast Receiving.

To check that the stream is active, you can use the VLC player, for example. Download and run the player VLC, select Media > Open Network Stream or Media > Open URL, or press the key combination Ctrl+N and paste the URL into the input box.

How to configure the DVR

With Flussonic Media Server, you can record video streams to the archive on disk and then play the recorded video. We call this functionality DVR (digital video recording).

Flussonic allows maintaining a specific archive depth (duration, for example, in days) and disk usage limit. DVR is ideal for Catchup services, surveillance tasks, and embedded autonomous solutions.

Flussonic records streams in its internal representaion, independent of any specific video protocol. You can access a recorded stream via various protocols. The only thing you need is to enable DVR by adding a special option to the stream settings, and then use a special URL to play it back.

See the guide on how to configure DVR.

How to play a stream's archive via HLS

To choose the output protocol, you should know which codec is supported by the majority of devices that your audience will use to watch the stream. See the list of supported formats for live streams

The guide on how to access the archive via various protocols gives you the examples of URLs for playing the recorded video stream.

You can request the needed part of the archive and save it as .ts file. Use the link like the following:


Here TIME is the beginning of the extract, in Unix Timestamp in UTC time zone, and DURATION — the duration of the extract in seconds. Example: archive-1350274200-4200.m3u8

Learn more about HLS playback