| get_sample_rate | R Documentation |
get_sample_rate() uses the MediaInfo program to look up the audio sample
rate of a media file, in hertz (Hz). The glossary in vignette("tidymedia")
explains media terms such as sample rate.
get_sample_rate(file)
file |
A character vector of one or more media file paths. |
The function returns one number for each file. The probe_*() functions,
mediainfo_query() and mediainfo_template() return tibbles instead.
A double vector (one per file) giving the audio sample rate in Hz.
mediainfo_parameter() for arbitrary MediaInfo fields, and
probe_all() to read information with FFprobe.
Other metadata functions:
get_duration(),
get_frame_rate(),
get_height(),
get_width(),
mediainfo_parameter(),
mediainfo_query(),
mediainfo_template(),
probe_all(),
probe_container()
video <- system.file("extdata", "sample.mp4", package = "tidymedia")
get_sample_rate(video)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.