motion_quant: ReVuePro: motion_quant

Description Usage Arguments Details Examples

Description

A function that detects motion in a .mp4 or .mov film, and saves images where motion was detected. This function calls ffmpeg and is currently limited to Windows and Linux architecture.

Usage

1
2
3
4
5
6
7
8
9
motion_quant(
  input_vid,
  ffmpeg_path = "DEFAULT",
  sensor_res = 25,
  ips = 8,
  detection_conf = 95,
  parallel = "TRUE",
  plot = "FALSE"
)

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.

sensor_res

A percent scalar between 1 and 100, used to modify video pixel resolution for motion detection. Default is 25.

ips

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

detection_conf

A percent scalar between 1 and 100, used to determine level of movement required to save an image. Default is 95.

parallel

A binary "TRUE/FALSE" variable that determines whether internal operations will be run by parallel processing. If "TRUE", function will call upon the "doParallel" package. Default is "TRUE".

Details

This function splits a .mp4 or .mov film 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"
motion_quant(input_vid = source, ffmpeg_path = ffmpeg.locale, ips = 10, bin = 500, plot = "TRUE")

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