[svt] Improve subtitles extraction and add test (Closes #8265)