How to extract a specific frame from a video based on user input?

10 views (last 30 days)
I have a robot that collects a ton of data. Some of those include a video (saved as an MP4), time and lat long. One thing I want to do is plot the lat long, when I click a point on the graph I am getting the time information from that point. What I want to do is then extract the frame from that time stamp and plot it on the map. I have never worked with video before so im not sure where to start. Right now I am plotting my lat and long, when a user clicks the figure I am then saving the time stamp at that point in the same format as the video (hh:mm:ss). How do I then extract the one frame that corresponds to that time frame. Thanks!

Answers (1)

Matt J
Matt J 3 minutes ago
This example looks applicable to you: Read Video Frames Starting at Specific Time.

Products


Release

R2025b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!