peggy
A module for utilizing FFMPEG in Gleam
Types
A CLI argument provided to FFmpeg
pub type CmdOption {
CmdOption(name: String, value: String)
}
Constructors
-
CmdOption(name: String, value: String)
Command provided to FFmpeg
pub type Command {
Command(files: List(File), options: List(CmdOption))
}
Constructors
-
Command(files: List(File), options: List(CmdOption))
Functions
pub fn add_arg(
cmd: Command,
name: String,
value: String,
) -> Command
Adds argument to command
pub fn exec_sync(
cmd: Command,
) -> Result(List(String), List(String))
Executes the command provided to ffmpeg