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

조회 수: 16 (최근 30일)
Bradley
Bradley 2025년 10월 22일 19:47
답변: Matt J 2025년 10월 22일 20:06
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!

답변 (1개)

Matt J
Matt J 2025년 10월 22일 20:06
This example looks applicable to you: Read Video Frames Starting at Specific Time.

제품


릴리스

R2025b

Community Treasure Hunt

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

Start Hunting!

Translated by