Зачем конвертировать SRT в VTT?
HTML5 video players use the <track> element which requires WebVTT; SRT is not part of the HTML5 track specification. If you are adding subtitles to a web page or uploading to a platform that demands .vtt, you need to convert. The structural change is minimal because both formats represent the same timed cue data.
Способы конвертации SRT в VTT
Subtitle Edit FREE
Open your .srt file, go to File > Save As, choose WebVTT from the format dropdown, and save.
ffmpeg OPEN-SOURCE
Run ffmpeg -i subtitles.srt subtitles.vtt - ffmpeg detects both formats from the file extensions and converts in one pass.
Gnome Subtitles FREE
Open the .srt file, then use File > Save As and select WebVTT from the format list to save as .vtt.
Об этих форматах
Файл SRT (SubRip Subtitle) хранит субтитры в виде обычного текста с временными кодами. Его не открывают отдельно - переименуйте его так, чтобы имя совпадало с видеофайлом, поместите оба…
Открыть детали .SRT →Файл VTT - это файл субтитров WebVTT, представляющий собой обычный текст с временными кодами для отображения титров в видео HTML5. Его не открывают отдельно: поместите его рядом с видео и…
Открыть детали .VTT →Качество и на что обратить внимание
- No subtitle content is lost - every cue, timecode, and text line transfers intact; only the header line and the comma/period timecode separator change.
- SRT inline tags (
<b>,<i>,<u>) carry over into VTT, but some web players ignore or strip them - verify playback after converting if styling matters. - WebVTT supports cue positioning and alignment that SRT lacks; converting from SRT gives no positioning data, so all cues appear at the player's default position.
Часто задаваемые вопросы
What is the actual difference between SRT and VTT?
WEBVTT header line at the top and uses a period before milliseconds in timecodes instead of a comma; the cue text content is otherwise identical.Can I convert SRT to VTT manually in a text editor?
WEBVTT as the first line, then replace every comma before milliseconds with a period using Find & Replace.Will the subtitle timing change after conversion?
Which web video players require VTT instead of SRT?
<track> elements, video.js, and Plyr all require WebVTT; SRT is not supported by the HTML5 track specification.