| probe_all | R Documentation |
probe_all() uses the FFprobe program to read information about media
files. It returns two tibbles. One describes each file as a whole, and one
describes each stream in the files.
probe_all(infile, typed = TRUE, parallel = FALSE)
infile |
A character vector of one or more media files to probe, as file paths or web links. |
typed |
A logical. If |
parallel |
A logical. If |
Give several files in infile to read them all in one call. The function
stacks the rows, and the first column, file, names the input file. So you
can join and filter the results for a whole batch with dplyr.
The MediaInfo functions, mediainfo_*(), return tibbles or values. The
get_*() functions return one value for each file.
The glossary in vignette("tidymedia") explains media terms such as
container and stream.
A list of two tibbles. container has one row for each input file.
streams has one row for each stream. Both tibbles start with a file
column that names the input file. A file with no readable streams gets one
row in streams, with NA in every other column.
The function does not stop at a file that it could not probe. That file
gets a row of NA values in both tibbles, and the function gives a
warning. A file that reaches the time limit counts as not probed; see
with_timeout().
mediainfo_template() and mediainfo_query() to read information
with MediaInfo. get_duration() and the other get_*() functions for
single values.
Other metadata functions:
get_duration(),
get_frame_rate(),
get_height(),
get_sample_rate(),
get_width(),
mediainfo_parameter(),
mediainfo_query(),
mediainfo_template(),
probe_container()
video <- system.file("extdata", "sample.mp4", package = "tidymedia")
info <- probe_all(video)
info$container
info$streams
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.