srt.write {SRTtools}R Documentation

Srt Output

Description

Write the srt file to the system.

Usage

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

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"))


[Package SRTtools version 1.2.0 Index]