ffm_trim | R Documentation |
Trim the input so that the output contains one continuous subpart of the
input. Note that, if start=NULL
, then the kept section will start at
the beginning of the input. If both end=NULL
and duration=NULL
,
the kept section will end at the end of the input.
ffm_trim(
object,
start = NULL,
end = NULL,
duration = NULL,
units = c("tds", "pts", "frame"),
setpts = TRUE
)
object |
An ffmpeg pipeline ( |
start |
The time of the start of the kept section (i.e., this will be
the first frame in the output) given in |
end |
The time of the first frame that will be dropped (i.e., the frame
immediately preceding this will be the last frame in the output), given in
|
duration |
The maximum duration of the output given in time duration syntax. |
units |
A string indicating whether the |
setpts |
A logical indicating whether the output timestamps should be modified to start at zero. If TRUE, will add a setpts filter after trim. |
object
but will added instructions to trim the duration.
https://ffmpeg.org/ffmpeg-filters.html#trim
https://ffmpeg.org/ffmpeg-utils.html#time-duration-syntax
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.