ov_video_frame | R Documentation |
Extract one or more specific frames from a video file
ov_video_frame(
video_file,
t,
n,
format = "jpg",
debug = FALSE,
framerate,
method = "auto"
)
video_file |
string: path to the video file |
t |
numeric: the times of the frames to extract (in seconds) |
n |
integer: the frame numbers of the frames to extract. Ignored if |
format |
string: "jpg" or "png" |
debug |
logical: if |
framerate |
numeric: the framerate of the video. If not supplied, it will be found using [av::av_video_info] |
method |
string: the method to use, either "ffmpeg", "av", or "auto". "ffmpeg" is faster than "av" but requires that ffmpeg is available on your system path. If |
The paths to the frame image files
ov_video_frames()
video_file <- ov_example_video(1)
img <- ov_video_frame(video_file, t = 5)
img <- ov_video_frame(video_file, n = 150)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.