srt.insert {SRTtools} | R Documentation |
Insert new dialog
Description
Insert new dialog to subtitles by specific index
Usage
srt.insert(srt, index, time, text)
Arguments
srt |
vector. The srt file read by |
index |
integer. The index of new dialog. |
time |
character. The time of new dialog, a proper format is "hr:min:sec,msec –> hr:min:sec,msec" |
text |
character. The content of new dialog. |
See Also
Examples
srt_path <- system.file("extdata", "movie.srt", package="SRTtools")
srt <- srt.read(srt_path, encoding = 'utf-8')
srt.insert(srt, index = 1, time = "00:00:00,000 --> 00:00:30,000", text = "Added by SRTtools")
[Package SRTtools version 1.2.0 Index]