ffm_scale: Scale (Resize) Frames in a FFmpeg Pipeline

View source: R/ffm.R

ffm_scaleR Documentation

Scale (Resize) Frames in a FFmpeg Pipeline

Description

Scale (resize) the input video's frames to either a specific width and height (in pixels) or using an FFmpeg expression.

Usage

ffm_scale(object, width, height)

Arguments

object

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

width

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

height

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

Value

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


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