Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

av_video_images

Convert video to images


Description

Splits a video file in a set of image files. Default image format is jpeg which has good speed and compression. Use format = "png" for losless images.

Usage

av_video_images(video, destdir = tempfile(), format = "jpg", fps = NULL)

Arguments

video

an input video

destdir

directory where to save the png files

format

image format such as png or jpeg, must be available from av_encoders()

fps

sample rate of images. Use NULL to get all images.

Details

For large input videos you can set fps to sample only a limited number of images per second. This also works with fractions, for example fps = 0.2 will output one image for every 5 sec of video.


av

Working with Audio and Video in R

v0.6.0
MIT + file LICENSE
Authors
Jeroen Ooms [aut, cre] (<https://orcid.org/0000-0002-4035-0289>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.