Skip to content

seco/srt2vtt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

srt to vtt converter

A PHP command line script to convert subtitles from SubRip to WebVTT format.

This tool is based on WebVTT-to-SRT. It just does the contrary.

Usage

Just provide source and destination files path. php srt2vtt.php </some/path/original.vtt> <other/path/result.srt>

Don't hesitate to use bash for loops to convert many files in in a row.

for f in *.srt; do fn=`echo $f | sed 's/srt/vtt/'`; php srt2vtt.php "$f" "$fn"; done

About

srt to vtt CLI converter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%