srt_shift | R Documentation |
Uniformly shift subtitle times
srt_shift(x, seconds)
x |
A subtitle data frame from |
seconds |
The number of seconds to shift the start and end time. |
Here is a workflow of how a linear srt file is shifted in R.
read_srt(file) %>% srt_shift(2.1) %>% write_srt(file)
The numeric start times uniformly shifted by some amount.
# shift all start and stop by a some time
x <- read_srt(srt_example(), collapse = " ")
srt_shift(x, 1.234)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.