srt.write: Srt Output

Description Usage Arguments See Also Examples

Description

Write the srt file to the system.

Usage

1
srt.write(srt, filename)

Arguments

srt

vector. The srt file read by srt.read.

filename

Either a character string naming a file or a connection open for writing.

See Also

srt.read

Examples

1
2
3
4
5
6
7
8
srt_path <- system.file("extdata", "movie.srt", package="SRTtools")
srt <- srt.read(srt_path, encoding = 'utf-8')

# Postpone subtitles 3 seconds later
srt <- srt.shift(srt, time_shifted = 3)

# Save and cover original "movie.srt" file
srt.write(srt, filename =  file.path(tempdir(), "movie.srt"))

ChiHangChen/SRTtools documentation built on July 20, 2019, 3:50 p.m.