grabVideoStills.Rd
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.
grabVideoStills( inputVideo, imageDir = NULL, overWriteDir = FALSE, sampleWindow )
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. |
a data.frame that gives information about the still frames. Each record is a stillframe, with the following info:
imageSeconds - number of seconds from the start of the video when this image was captured
imageName - full path to where the image has been saved as a .png
vidOut = grabVideoStills(inputVideo=system.file('extdata', "meeting001_video.mp4", package = 'zoomGroupStats'), imageDir=tempdir(), overWriteDir=TRUE, sampleWindow=2)#>if (FALSE) { grabVideoStills(inputVideo='myMeeting.mp4', imageDir="~/Documents/myMeetings/videoImages", overWriteDir=TRUE, sampleWindow=45) }