JOCHLSDownloader (Ruby gem)

The JOCHLSDownloader ruby gem is a very simple native ruby code that downloads all files linked by a m3u8 manifest (used in HLS), I have used several times for test purposes.

  You can download the JOCHLSDownloader (Ruby version) from: Gem Version


  • For LIVE and EVENT playlist types it downloads only the firsts media segments.
  • For VOD playlist type it will download all media content.


Usage examples

require 'JOCHLSDownloader.rb'

#URL from HLS apple example
url = ""
downloadpath = "./donloadtestfiles"
logfilename = "jochlsdownloader.log"


hlsdownloader =, downloadpath, logfilename, Logger::DEBUG)
puts "End!"

rescue Exception => e

puts "Error: #{e.message}, Trace: #{e.backtrace.inspect}"



One thought on “JOCHLSDownloader (Ruby gem)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: