ffm_crop: Crop Frames in an FFmpeg Pipeline

View source: R/ffm.R

ffm_cropR Documentation

Crop Frames in an FFmpeg Pipeline

Description

Decrease the size of the video's frames by cropping it.

Usage

ffm_crop(object, width, height, x = "(in_w-out_w)/2", y = "(in_h-out_h)/2")

Arguments

object

An ffmpeg pipeline (ffm) object created by ffm_files().

width

The width of the output video (in pixels). Either a positive real number or a string that contains an FFMPEG expression.

height

The height of the output video (in pixels). Either a positive real number or a string that contains an FFMPEG expression.

x

The horizontal position, in the input video, of the left edge of the output video (in pixels). Either a positive real number or a string that contains an FFMPEG expression. (default = "(in_w-out_w)/2")

y

The vertical position, in the input video, of the top edge of the output video (in pixels). Either a positive real number or a string that contains an FFMPEG expression. (default = "(in_h-out_h)/2")

Value

object but with the added instruction to crop the image(s).

References

https://ffmpeg.org/ffmpeg-filters.html#toc-crop


jmgirard/tidymedia documentation built on June 15, 2024, 1:52 p.m.