| mediainfo_query | R Documentation |
mediainfo_query() uses the MediaInfo program to read several parameters
from one section, and returns a tibble. To read parameters from more than
one section in one call, use mediainfo_template().
mediainfo_query(file, section, parameters, names = parameters, typed = TRUE)
file |
A character vector of one or more media file paths. |
section |
A string. The name of the MediaInfo section to read
|
parameters |
A character vector of one or more MediaInfo parameters to
read from |
names |
A character vector of column names, one for each element of
|
typed |
A logical. If |
Give several files in file to get one row for each file. The first column,
file, names the input file. The probe_*() functions read similar
information with FFprobe.
A tibble with one row for each input file. The first column is
file, and then there is one column for each parameter.
A file that the function could not read gets a row of NA values. The
function reads the other files, and then gives one warning that names the
files it could not read. A file that reaches the time limit counts as not
read; see with_timeout().
mediainfo_parameter() to read a single value.
mediainfo_template() to apply a whole template. probe_all() to read
information with FFprobe. get_duration() and the other get_*()
functions for common single values.
Other metadata functions:
get_duration(),
get_frame_rate(),
get_height(),
get_sample_rate(),
get_width(),
mediainfo_parameter(),
mediainfo_template(),
probe_all(),
probe_container()
video <- system.file("extdata", "sample.mp4", package = "tidymedia")
mediainfo_query(video, section = "Video", parameters = c("Width", "Height"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.