| probe | R Documentation |
Query video file properties via ffprobe.
probe(file, field = "duration")
file |
Path to media file. |
field |
Field to query. One of "duration", "width", "height", "codec_name", "r_frame_rate", or any valid ffprobe stream entry. Use "all" to return duration, width, height, and codec as a named list. |
For single fields, returns a numeric value (duration, width, height) or character string (codec_name, etc.). For field = "all", returns a named list.
## Not run:
probe("video.mp4") # duration (default)
probe("video.mp4", "width") # video width
probe("video.mp4", "all") # list of duration, width, height, codec
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.