| ffm_output_options | R Documentation |
Add one or more raw FFmpeg output options to the pipeline, after any added
before. Output options are the flags after the input and before the output
file. Use this function for an option that has no pipeline function of its
own. ffm_compile() still decides where the options go and how the rest
of the command is quoted. So this is not the same as writing the command
string yourself.
ffm_output_options(object, ...)
object |
An FFmpeg pipeline ( |
... |
One or more strings. Each string is a group of options separated
by white space, for example |
object with the added output options.
ffmpeg(), the direct command that takes any FFmpeg arguments, and
ffm_compile(), which places these options.
Other pipeline functions:
ffm_batch(),
ffm_codec(),
ffm_compile(),
ffm_concat(),
ffm_copy(),
ffm_crop(),
ffm_drawbox(),
ffm_drop(),
ffm_files(),
ffm_fps(),
ffm_hstack(),
ffm_jobs(),
ffm_loudnorm(),
ffm_map(),
ffm_overlay(),
ffm_pixel_format(),
ffm_run(),
ffm_scale(),
ffm_seek(),
ffm_trim(),
ffm_vstack(),
print.tidymedia_ffm()
video <- system.file("extdata", "sample.mp4", package = "tidymedia")
# Extract a single frame by adding a raw output option
ffm_files(video, "frame.png") |>
ffm_output_options("-frames:v 1") |>
ffm_compile()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.