Golang Program to Build HLS (m3u8) LIVE Video Streaming Downloader From URL in Command Line

  • Post author:
  • Post category:Go
  • Post comments:0 Comments


HLS downloader

This is a library to support downloading a m3u8 file. All ts segments will be downloaded into a folder then be joined into a single TS file. Default file name is video.ts


  • Concurrent download segments with multiple http connections
  • Decrypt hls encoded segments
  • Auto retry download
  • Display downloading progress bar
  • Record a live stream video


  • Allow adding http headers

How to integrate this library to your code.

Get the library

then import it to your code.


How to build a console application

Build for linux

Build for windows

Run the application


Record a live stream video

Get prebuild here https://github.com/canhlinh/hlsdl/releases *





Leave a Reply