createImageSeq: Create image sequence

Description Usage Arguments Author(s) Examples

Description

createImageSeq creates an image sequences (.png) using video files as input. All movies within a directory will be converted into an image sequence. For each movie, a new directory is created containing the recorded date and name of the movie.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
createImageSeq(
  moviepath = "Movies",
  imagepath = "ImageSequences",
  x = 1920,
  y = 1080,
  fps = 15,
  nsec = 2,
  start = NULL,
  stop = NULL,
  ext = "MTS",
  libavpath = "avconv",
  exiftoolpath = "exiftool",
  pythonpath = "python",
  verbose = FALSE,
  logfile = FALSE
)

Arguments

moviepath

Path to existing directory containing the video files. By default, 'Movies' is used.

imagepath

Path to location of a directory in which image sequences should be saved. By default, 'ImageSequences' is used (and created if not existing).

x

Number of pixels in horizontal direction; default is 1920 (HD).

y

Number of pixels in vertical direction; default is 1080 (HD).

fps

Frames per second, default is 15.

nsec

Duration of movie that is exported, default is 2 seconds. When movie length is greater than nsec, the nsec seconds in the exact middle of the movie are exported.

start

Start time (in seconds) from where the video is converted (optional). By default, the nsec middle second of the video are used. If a a start time is specified and no stop time, nsec seconds starting from start are converted.

stop

End time (in seconds) from where the video is converted (optional). By default, the nsec middle second of the video are used. When an end time but no start time are specified, conversion starts at nsec seconds before end.

ext

The extension of the video. Default is 'MTS'. All formats supported by libav are accepted. To convert videos with different extensions, use for example c('MTS','mp4').

libavpath

Path to location where the executable file for libav can be found (named 'avconv.exe'), in case it is not found automatically, e.g. 'C:/Users/libav/usr/bin/avconv.exe'.

exiftoolpath

Path to location where the executable file for ExifTool can be found, in case it is not found automatically. For instance, use 'exiftool(-k).exe', if located in the working directory.

pythonpath

Path to location where the executable file for Python 2.7 can be found, in case it is not found automatically. For instance, use 'C:/Python27/python.exe'.

verbose

Logical. By default FALSE. Set to TRUE will print additional information.

logfile

Logical. By default FALSE. Set to TRUE will create a log file in the working directory.

Author(s)

Marjolein Bruijning, Caspar A. Hallmann & Marco D. Visser

Examples

1
2
3
4
5
## Not run: 
createImageSeq(moviepath="Movies",imagepath="ImageSequences",
               nsec=3,ext="AVI")

## End(Not run)

Example output

sh: 1: python: Permission denied
[1] TRUE

trackdem documentation built on Sept. 25, 2021, 1:07 a.m.