grabVideoStills: Helper function to split a video into still frames

Description Usage Arguments Value Examples

View source: R/grabVideoStills.R

Description

This function currently relies on the av package and 'ffmpeg' to split a video file into images. This function will save the images to the directory specified by the user.

Usage

1
2
3
4
5
6
grabVideoStills(
  inputVideo,
  imageDir = NULL,
  overWriteDir = FALSE,
  sampleWindow
)

Arguments

inputVideo

full filepath to a video file

imageDir

the directory where you want the function to write the extracted image files

overWriteDir

logical indicating whether you want to overwrite imageDir if it exists

sampleWindow

an integer indicating how frequently you want to sample images in number of seconds.

Value

a data.frame that gives information about the still frames. Each record is a stillframe, with the following info:

Examples

1
2
3
4
5
6
7
vidOut = grabVideoStills(inputVideo=system.file('extdata', "meeting001_video.mp4", 
package = 'zoomGroupStats'), imageDir=tempdir(), overWriteDir=TRUE, sampleWindow=2)
## Not run: 
grabVideoStills(inputVideo='myMeeting.mp4', 
imageDir="~/Documents/myMeetings/videoImages", overWriteDir=TRUE,  sampleWindow=45)

## End(Not run)

zoomGroupStats documentation built on May 13, 2021, 5:06 p.m.