| probe_container | R Documentation |
These functions return one part of what probe_all() returns.
probe_container() returns the container tibble, and probe_streams()
returns the streams tibble. probe_video() and probe_audio() return only
the video rows or the audio rows of streams.
probe_container(probe = NULL, infile = NULL, typed = TRUE, parallel = FALSE)
probe_streams(probe = NULL, infile = NULL, typed = TRUE, parallel = FALSE)
probe_video(probe = NULL, infile = NULL, typed = TRUE, parallel = FALSE)
probe_audio(probe = NULL, infile = NULL, typed = TRUE, parallel = FALSE)
probe |
A list made by |
infile |
A character vector of one or more media files. Must be |
typed |
A logical that the function passes to |
parallel |
A logical that the function passes to |
Give each function either the output of probe_all() in probe, or one or
more files in infile. Give exactly one of the two, or the function gives
an error. With infile, the function probes the files again. For large
files, probe once with probe_all() and reuse the result.
These functions use FFprobe and return tibbles. The MediaInfo functions,
mediainfo_*(), and the get_*() functions are the other ways to read
information. The glossary in vignette("tidymedia") explains media terms
such as container and stream.
A tibble with only the requested information. When you give
infile, a file that could not be probed gives a warning, as in
probe_all().
probe_all() for the full probe. mediainfo_query() to read
information with MediaInfo. get_width() 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_all()
video <- system.file("extdata", "sample.mp4", package = "tidymedia")
# Probe directly from a file location ...
probe_container(infile = video)
# ... or reuse a probe object to avoid reprobing large files
info <- probe_all(video)
probe_video(info)
probe_audio(info)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.