grabVideoStills {zoomGroupStats}R Documentation

Helper function to split a video into still frames

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

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

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)

[Package zoomGroupStats version 0.1.0 Index]