ov_video_extract_clip | R Documentation |
Requires that ffmpeg is available on your system path.
ov_video_extract_clip(
video_file,
outfile,
start_time,
duration,
end_time,
extra = NULL,
debug = FALSE
)
video_file |
string: path to the input file |
outfile |
string: path to the output file. If missing, a temporary file (with extension .mp4) will be used |
start_time |
numeric: start time in seconds |
duration |
numeric: duration in seconds. If missing, will be calculated from start_time and end_time |
end_time |
numeric: end time in seconds. If missing, will be calculated from start_time and duration |
extra |
: additional parameters passed to ffmpeg, in the form c("param", "value", "param2", "value2") |
debug |
logical: if |
The path to the video clip file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.