srt_shift {srt} | R Documentation |
Uniformly shift subtitle times
Description
Uniformly shift subtitle times
Usage
srt_shift(x, seconds)
Arguments
x |
A subtitle data frame from |
seconds |
The number of seconds to shift the start and end time. |
Details
Here is a workflow of how a linear srt file is shifted in R.
read_srt(file) %>% srt_shift(2.1) %>% write_srt(file)
Value
The numeric start times uniformly shifted by some amount.
Examples
# shift all start and stop by a some time
x <- read_srt(srt_example(), collapse = " ")
srt_shift(x, 1.234)
[Package srt version 1.0.4 Index]