Grab Video Intervals

Usage

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.

Description

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

Note

User must have mmpeg installed.

Examples

## 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)