| extract_frame_batch | R Documentation |
Save one still image for each row, across many input files, using one jobs
table. This is the batch form of extract_frame(), for when your frames
come from more than one input. Each row is one frame. The required columns
name its source and the moment to capture. The function is a thin wrapper
over ffm_batch. It builds one reproducible command for each
frame. The glossary in vignette("tidymedia") explains media terms
such as frame rate.
extract_frame_batch(jobs, format = "png", run = TRUE, parallel = FALSE, ...)
jobs |
A data frame with one row per frame. It needs at least an
|
format |
A string giving the image file extension used when the
function derives |
run |
A logical: run each frame's command through FFmpeg ( |
parallel |
A logical passed to |
... |
Additional arguments forwarded to |
The tibble returned by ffm_batch: jobs with an added command column. When output was derived, it also has the resolved output column. When run = TRUE, it has a success column, plus any columns the forwarded arguments add, such as verified.
https://ffmpeg.org/ffmpeg-utils.html#time-duration-syntax
extract_frame() for the single-frame form. ffm_batch() for the
batch runner and the arguments passed on through ....
segment_video_batch() for the batch function that cuts segments.
Other task functions:
anonymize_video(),
anonymize_video_batch(),
compare_videos(),
compare_videos_batch(),
concatenate_videos(),
concatenate_videos_batch(),
convert_audio(),
convert_audio_batch(),
crop_video(),
crop_video_batch(),
extract_audio(),
extract_audio_batch(),
extract_frame(),
format_for_web(),
format_for_web_batch(),
normalize_audio(),
normalize_audio_batch(),
picture_in_picture(),
picture_in_picture_batch(),
sample_frames(),
sample_frames_batch(),
segment_video(),
segment_video_batch(),
separate_audio_video(),
separate_audio_video_batch(),
standardize_video(),
standardize_video_batch(),
strip_metadata(),
strip_metadata_batch()
video <- system.file("extdata", "sample.mp4", package = "tidymedia")
jobs <- tibble::tibble(
input = c(video, video),
output = c("a.png", "b.png"),
timestamp = c(0.25, 0.75)
)
# run = FALSE compiles one command per frame without calling FFmpeg
extract_frame_batch(jobs, run = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.