ffm_files: Specify Files in an FFmpeg Pipeline

View source: R/ffm.R

ffm_filesR Documentation

Specify Files in an FFmpeg Pipeline

Description

Start an FFmpeg pipeline by specifying input and output files.

Usage

ffm_files(input, output, overwrite = TRUE)

Arguments

input

A character vector of paths to the input media files of the pipeline. Give more than one path for stacking.

output

A string with the path of the output media file of the pipeline.

overwrite

A logical. If TRUE (the default), an output media file that already exists is overwritten.

Value

An FFmpeg pipeline object.

See Also

ffm_compile() to build the command and ffm_run() to run it. The task functions, such as standardize_video() and segment_video(), are built on the pipeline functions.

Other pipeline functions: ffm_batch(), ffm_codec(), ffm_compile(), ffm_concat(), ffm_copy(), ffm_crop(), ffm_drawbox(), ffm_drop(), ffm_fps(), ffm_hstack(), ffm_jobs(), ffm_loudnorm(), ffm_map(), ffm_output_options(), ffm_overlay(), ffm_pixel_format(), ffm_run(), ffm_scale(), ffm_seek(), ffm_trim(), ffm_vstack(), print.tidymedia_ffm()

Examples

video <- system.file("extdata", "sample.mp4", package = "tidymedia")
ffm_files(video, "output.mp4") |>
  ffm_compile()

tidymedia documentation built on Oct. 11, 2026, 5:08 p.m.