How to display previous or next frame in a video file in App Designer GUI?

8 次查看(过去 30 天)
Hello,
I have read many articles on the matlab forum, but so far I have found that with the new matlab update they are getting rid of the read(video, iter) and read(video, [15 inf]) functions.
The "new" function is readFrames(). After researching it seems like this function is much less powerful and has no functionallity to read a video from a specific time.
My goal is to have a GUI that has Next Frame and Previous Frame and the user can click the button as many times as they want to continuously step forward or backwards in a video file.
Currently I only have the code written for the GUI to be able to handle stepping back one frame, not mutliple frames. Previous frame is just set as the last current frame value. I would prever not to have thousands of frame variables incase the video file is much larger.
With read() function no longer allowed on matlab how do I go about getting nextframe or previous frame or even trimming a video for that matter? Seems like matlab decided to eliminate a perfectly good function for video editing.
If you can provide any help that would be great.
Thanks

回答(1 个)

Raunak Gupta
Raunak Gupta 2020-8-8
Hi Zachary,
While looking into the R2020a documentation of read I don’t see anywhere it is mentioned that this function will be removed in future release. You will see this kind of Warning on top of the page if some function will be removed from future release or are not recommended to use. Since no warning is present for read function be sure that it will not get removed in near future.

Community Treasure Hunt

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

Start Hunting!

Translated by