WebVTT parser and segmenter in ruby