Sign inSign up

fboucher/cap2srt

By fboucher

•Updated 10 months ago

A simple, lightweight utility to convert SubViewer (SBV) caption(aka YouTube) to SubRip (SRT) format

Image
Developer tools
0

1.3K

fboucher/cap2srt repository overview

⁠Cap2Srt - SBV to SRT Caption Converter

A simple, lightweight command-line utility to convert SubViewer (SBV) caption files to SubRip (SRT) format. The SubViewer format is used by YouTube, SubRip it what most social medias will use when captioning a video.

šŸ”— Github: https://github.com/fboucher/cap2srt⁠

⁠Command

docker run --rm -v $(pwd):/data fboucher/cap2srt --input /data/video_captions.sbv --output /data/my_captions.srt

⁠SBV vs SRT Format

⁠SBV Format (Input)
0:00:00.000,0:00:05.000
This is the first subtitle

0:00:05.500,0:00:10.000
This is the second subtitle
that spans multiple lines
⁠SRT Format (Output)
1
00:00:00,000 --> 00:00:05,000
This is the first subtitle

2
00:00:05,500 --> 00:00:10,000
This is the second subtitle
that spans multiple lines

⁠License

MIT

Tag summary

Content type

Image

Digest

sha256:81e8ab194…

Size

77.9 MB

Last updated

10 months ago

docker pull fboucher/cap2srt