Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bmckim
Visitor

Ruby gem for checking alignment of HLS segments

https://github.com/telvue/hlspider
gem install hlspider
hlspider crawl --playlists=http://site.tld/playlist1.m3u8 http://site.tld/playlist2.m3u8 http://site.tld/playlist3.m3u8
OR
hlspider crawl --playlists=http://site.told/smil:stream.smil/playlist.m3u8

Often times when HLS playback is jumping or drops out it is due to the segments of the different bitrates not arriving in the right order. This gem will check all of the bitrate playlists and report back on whether or not they contain the same segment numbers. I have not done a whole lot of compatibility testing so if you have any issues just create a GitHub issue.

Roku provides a bash script to do this, but I love Ruby and this is a bit easier to use.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.