View source: R/video_processing.R
extract_frames_old | R Documentation |
This function can take
extract_frames_old(
files,
out_dir = tempfile(),
out_file = NULL,
fps = NULL,
frames = NULL,
file_col = "FilePath",
parallel = FALSE,
workers = 1,
checkpoint = 1000
)
files |
dataframe of videos |
out_dir |
directory to save frames to |
out_file |
file to which results will be saved |
fps |
frames per second, otherwise determine mathematically |
frames |
number of frames to sample |
file_col |
string value indexing which column contains file paths |
parallel |
Toggle for parallel processing, defaults to FALSE |
workers |
number of processors to use if parallel, defaults to 1 |
checkpoint |
if not parallel, checkpoint ever n files, defaults to 1000 |
dataframe of still frames for each video
## Not run:
frames <- extractFrames(videos, out_dir = "C:\\Users\\usr\\Videos\\", frames = 5)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.