Skip to contents

Reads back the metadata from the extracted frames to verify it was correctly stamped.

Usage

verify_timestamps(extractor, ...)

Arguments

extractor

An object of class VideoFrameExtractor.

...

Additional arguments.

Value

A data.frame (returned invisibly) containing metadata extracted from the frames, such as original and modified timestamps. If no frames have been extracted, returns NULL invisibly with a message.

Examples

video_file <- system.file("extdata", "sample.mp4", package = "photoextractor")
if (video_file != "") {
  extractor <- VideoFrameExtractor(video_file, output_dir = tempdir())
  # verify_timestamps(extractor) # Only works after extract()
}