ov_video_extract_clip: Extract clip from video file

View source: R/ffmpeg_utils.R

ov_video_extract_clipR Documentation

Extract clip from video file

Description

Requires that ffmpeg is available on your system path.

Usage

ov_video_extract_clip(
  video_file,
  outfile,
  start_time,
  duration,
  end_time,
  extra = NULL,
  debug = FALSE
)

Arguments

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 TRUE, echo the ffmpeg output to the console

Value

The path to the video clip file


openvolley/ovideo documentation built on March 19, 2024, 9:52 p.m.