srt_shift: Uniformly shift subtitle times

Description Usage Arguments Details Value Examples

View source: R/shift.R

Description

Uniformly shift subtitle times

Usage

1
srt_shift(x, seconds)

Arguments

x

A subtitle data frame from read_srt().

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.

1
2
3

Value

The numeric start times uniformly shifted by some amount.

Examples

1
2
3
# shift all start and stop by a some time
x <- read_srt(srt_example(1), collapse = " ")
srt_shift(x, 1.234)

srt documentation built on Nov. 30, 2020, 9:06 a.m.