mp4_duration: Video Duration

Description Usage Arguments Value Examples

Description

mp4_duration - Reports the length of a video in seconds.

n_img - Reports the approximate number of images based on guration and frames per second.

mp4_to_times - Generate a sequence of times corresponding to fps and video duration.

Usage

1
2
3
4
5
mp4_duration(path)

n_img(path, fps)

mp4_to_times(path, fps = 4)

Arguments

path

Path to the in .mp4 file.

fps

The number of image frames per second to output. Generally the fps used to desconstruct a video into images will be used to reconstruct the images back to video.

Value

mp4_duration - A numeric value giving length of video in seconds.

n_img - A numeric value giving the number of images created from the video.

mp4_to_times - A sequence of times corresponding to fps and video duration

Examples

1
2
3
4
5
6
## Not run: 
mp4_duration("foo.mp4")
n_img("foo.mp4", 4)
mp4_to_times("foo.mp4", 4)

## End(Not run)

trinker/embodied documentation built on May 31, 2019, 8:42 p.m.