ffmpeg: Run a raw FFmpeg command

View source: R/ffmpeg.R

ffmpegR Documentation

Run a raw FFmpeg command

Description

Send a raw argument string to the FFmpeg command-line program. This is a direct command. The function passes the string to FFmpeg unchanged, after the path of the FFmpeg program. So you are responsible for the quoting and the order of the options.

Usage

ffmpeg(command)

Arguments

command

A string containing the arguments to pass to FFmpeg.

Value

A character vector containing the text output by FFmpeg.

See Also

ffmpeg_codecs() and ffmpeg_encoders() ask FFmpeg what it supports. The ⁠ffm_*()⁠ pipeline functions, such as ffm_run(), are a safer way to build a command.

Other direct command functions: ffprobe(), mediainfo()

Examples


# A direct command: the function passes the string to FFmpeg unchanged
ffmpeg("-version")


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