| frame_export | R Documentation |
Pull one frame from a video at time seconds and write it as an image.
A call-by-call primitive: no timeline, no asset lookup. The caller (an editor
such as kerNLE) decides which file and which time; this just extracts the
frame. Seeking is placed before -i for a fast keyframe seek.
frame_export(input, time, output, overwrite = TRUE, dry_run = FALSE)
input |
Path to input video. |
time |
Time in seconds to grab the frame at. |
output |
Path for output image (e.g. .png, .jpg). |
overwrite |
If TRUE (default), overwrite output file. |
dry_run |
If TRUE, return the FFmpeg command without executing. |
Invisibly returns the output path. If dry_run, returns command string.
## Not run:
frame_export("scene.mp4", 4.0, "frame.png")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.