Cooked by @delphiki
This tool is based on my open source lib SubRip-File-Parser. Conversion snippet available on the wiki page.