Error opening two videos with VideoReader
5 views (last 30 days)
Show older comments
Hello,
In my code I am opening a first video. When I did what I wanted with it I delete the corresponding Object and open a second video. The problem is that matlab doesn't actually open the second video but still the first one, as if it was "stuck" in the memory. At the beginning I thought the problem was linked to the fact my startup disk was almost full. Now it is not the case anymore, I reinstalled Matlab but it is still not working. The funny thing is that when I change the names of the videos, the code works fine the first time I run it but the second time it is going wrong. The code below is the one not working. (What is really weird is that it is working on another computer even if mine seems pretty ok) Thanks,
close all
clear all
OBJ1 = VideoReader('Video1.mp4');
delete(OBJ1);
OBJ2 = VideoReader('Video2.mp4');
figure(1)
imshow(readFrame(OBJ2));
0 Comments
Answers (0)
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!