mediainfo_template: Describe a media file by applying a MediaInfo template

View source: R/mediainfo.R

mediainfo_templateR Documentation

Describe a media file by applying a MediaInfo template

Description

Create a new row tibble that contains information about a media file. This information is gathered by applying a MediaInfo template, which can include multiple parameters from multiple sections. This package include several built-in templates that can be applied or a custom template file can be created and used.

Usage

mediainfo_template(
  file,
  template = c("brief", "extended", "custom"),
  templatefile = NULL
)

Arguments

file

A string containing the file path to a media file.

template

A string containing the template to be applied. Two templates are built into the package: "brief" and "extended". Alternatively, "custom" can be used to apply a new template file specified in templatefile.

templatefile

Either a string containing the file path to a MediaInfo template (.txt) file formatted to output comma-separated values (requires template to be set to "custom") or NULL (default = NULL).

Value

A row tibble containing variables describing file. The specific variables included and their ordering/naming is determined by the template.

See Also

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


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