mp4_interval: Grab Video Intervals

Description Usage Arguments Value Note References Examples

Description

Grab .mp4 video from time 1 to time 2 and output a new .mp4.

Usage

1
2
mp4_interval(path, out = file.path(dirname(path), "interval.mp4"),
  from = "00:00:00.0", to = NULL, duration = NULL, ffmpeg = NULL)

Arguments

path

Path to the in .mp4 file.

out

Path to the out .mp4 file.

from

The starting time the grab from in the form of "00:00:00.0" ("hh:mm:ss.d").

to

The ending time to grab to (may provide either to or duration) in the form of "00:00:00.0" ("hh:mm:ss.d").

duration

The duration to the ending time to grab to (may provide either to or duration) in the form of "00:00:00.0" ("hh:mm:ss.d") or numeric seconds.

ffmpeg

Raw mmpeg code that may be provided in lieu of the other arguments.

Value

Returns an interval .mp4.

Note

User must have mmpeg installed.

References

http://www.ffmpeg.org/

Examples

1
2
3
4
5
6
## Not run: 
mp4_interval("foo.mp4", from="00:00:05.5", duration="00:00:06.5")
mp4_interval("foo.mp4", from="00:00:05.5", duration=6)
mp4_interval("foo.mp4", from="00:00:05.5", to="00:00:15.5")

## End(Not run)

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