mediainfo_query: Query multiple parameters from a single MediaInfo section

View source: R/mediainfo.R

mediainfo_queryR Documentation

Query multiple parameters from a single MediaInfo section

Description

Create a new row tibble that contains multiple parameters from a single MediaInfo section. To query parameters from multiple sections at the same time, use either mediainfo_summary() or mediainfo_template().

Usage

mediainfo_query(file, section, parameters, names = parameters)

Arguments

file

A string indicating the path to a media file.

section

A string indicating the MediaInfo section from which to query the parameters. Note that querying from multiple sections at once requires using mediainfo_template().

parameters

A vector of one or more strings indicating the MediaInfo parameters to query from section.

names

A vector of one or more strings indicating the names of the variables in the returned tibble; must be the same length as parameters (default = the names of the strings in parameters).

Value

A row tibble containing each parameter as a separate variable.

See Also

Other mediainfo functions: get_duration(), get_framerate(), get_height(), get_samplingrate(), get_width(), mediainfo(), mediainfo_parameter(), mediainfo_template()


jmgirard/tidymedia documentation built on June 15, 2024, 1:52 p.m.