Initiating VideoReader gives memory leak?

VideoReader initilization consumes RAM that is not returned (example loop below will consume all RAM )
for i=1:100
vReader = VideoReader(vidPath);
The use case is of course to read different videos, which results in the same problem. Any suggestions?

3 commentaires

Raunak Gupta
Raunak Gupta le 21 Déc 2020
Hi Andreas,
I tried running the code snippet by using a video with size around 40 MB and run the for loop for 10000 times but still the memory didn’t increase after the runtime finished. Is there any specific operation happening in your case. Can you provide more details about code and the MATLAB Release you are using?
Andreas Nord
Andreas Nord le 28 Déc 2020
Strange, I am not doing anything in addition to what I posted. Im using 2020b
Raunak Gupta
Raunak Gupta le 28 Déc 2020
Hi Andreas,
I tried with R2020b also and everything is working fine for me. Perhaps contacting MathWorks support can help resolve the issue if there is any.
http://www.mathworks.com/support/contact_us/

Connectez-vous pour commenter.

Réponses (0)

Commenté :

le 28 Déc 2020

Community Treasure Hunt

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

Start Hunting!

Translated by