I'm using the VideoReader function on matlab and was wondering why changing the Current Time takes so much time?

I'm creating a code that starts off by reading in a video, asking the user the number of frames they would like, and creating a vector frametime = linspace(0, V.Duration, N+1). In a for loop with index 1:N, I make V.CurrentTime=frametime(k). This process, however, takes a lot more time than I thought it would. Why does it take so long? What exactly is happening when you write in a new current time?

Answers (1)

I have the same question ! Sometime it's quick, sometime not...
I'm working with 2024b on Apple M3 ... since using Apple chip Matlab is very wrong...

Products

Release

R2018b

Asked:

on 3 Jun 2019

Answered:

on 4 Dec 2024

Community Treasure Hunt

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

Start Hunting!