vid2im: ReVuePro: vid2im

Description Usage Arguments Details Examples

View source: R/vid2im_function.R

Description

A function that calls ffmpeg to convert a digital video file (.mp4 or .mov) into a series of jpg images, and sorts jpg images. This function was created to support thermal image analyses with digital video reference points.

Usage

1
2
3
4
5
6
7
8
vid2im(
  input_vid,
  ffmpeg_path = "DEFAULT",
  scale = 100,
  grey = "FALSE",
  ips = 8,
  bin = 1000
)

Arguments

input_vid

A path to the video file that one wishes to be converted.

ffmpeg_path

A path to ffmpeg.exe. Default path is assigned by the ffmpeg_dir function.

scale

A percent scalar between 1 and 100, used to modify resolution of input video frames. Default is 100.

grey

A binary "TRUE" or "FALSE" call. Determines whether input video will be converted to greyscale. Default is "FALSE".

ips

Images per second. How many jpg images one wishes to produce from one second of video footage. Default is 8 images per second.

bin

An integer that designates how many images will be alloted to each folder, following completion of conversion. Default is 1000.

Details

This function splits a .mp4 or .mov filr into a series of jpg images of equal resolution, according to user designates images per second. Ffmpeg must be installed for this function to operate correctly. Furthermore, this function calls upon ffmpeg using Windows language, and is therefore currently limited to Windows users.

Examples

1
2
3
source = "C:/BirdsFeeding.mp4"
ffmpeg.locale = "C:/Users/Rudolf/ffmpeg.exe"
vid2im(input_vid = source, ips = 10, bin = 500)

joshuakrobertson/R-Package_ReVuePro documentation built on June 2, 2020, 8:23 p.m.