Refactor SubRibWriter by extracting convert_fps_to_millisec