Effacer les filtres
Effacer les filtres

how to capture frames from a avi video at a particular timing in a video

2 vues (au cours des 30 derniers jours)
mahendra kumar
mahendra kumar le 4 Mai 2012
how to capture frames from a avi video at a particular timing in a video

Réponses (1)

Walter Roberson
Walter Roberson le 4 Mai 2012
If the video is variable frame-rate, then the only way is to read the frames one-by-one, checking the time associated with the video object at each frame, and saving only the frames associated with times you are interested in.
If the video is fixed frame-rate then you can use the frame rate and the times to calculate starting and ending indices and you can ask for that range of frames.
VideoReader is recommended for this purpose, but you might be able to use the older mmreader as well.

Community Treasure Hunt

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

Start Hunting!

Translated by