Search code examples
asp.netffmpeghttp-live-streamingm3u8

Create m3u8 and stream from server


How can I create m3u8 file with using ffmpeg on a server (Convert Server) and send it to another server (Storage Server) and stream from there(Live Stream)?
I want to handle it with asp.net.
How can I do it?


Solution

  • HTTP Live Streaming (HLS) can be easily produced by ffmpeg (official documentation on HLS muxer):

    ffmpeg -i input.mp4 out.m3u8

    It is possible to specify another live streaming server as output (instead of m3u8 file), see https://trac.ffmpeg.org/wiki/StreamingGuide for more details on this.

    From ASP.NET you can execute ffmpeg with System.Diagnostics.Process.