ffm_drawbox | R Documentation |
Add a video filter to draw a colored rectangle on the input video.
ffm_drawbox(
object,
x = 0,
y = 0,
width = "in_w",
height = "in_h",
color = "black",
thickness = "fill"
)
object |
An ffmpeg pipeline ( |
x |
The horizontal position, in the input video, of the left edge of the box (in pixels). Either a nonnegative real number or a string that contains an FFMPEG expression. (default = 0) |
y |
The vertical position, in the input video, of the top edge of the box (in pixels). Either a nonnegative real number or a string that contains an FFMPEG expression. (default = 0) |
width |
The width of the box (in pixels). Either a positive real number
or a string that contains an FFmpeg expression. (default = |
height |
The height of the box (in pixels). Either a positive real
number or a string that contains an FFmpeg expression. (default =
|
color |
A string containing the color of the box in FFmpeg color syntax,
see reference link below for more details. If the special value
|
thickness |
A thickness of the box edge (in pixels). A value of
|
object
but with the added instruction to apply the drawbox
filter.
https://ffmpeg.org/ffmpeg-filters.html#drawbox
https://ffmpeg.org/ffmpeg-utils.html#color-syntax
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.