Yes, you have to instantiate both a VideoReader and a VideoWriter. Then loop over frames and skip over frame numbers that you don't want to transfer/write. I'm attaching a demo that you can probably adapt.
Delete some frames of a video
5 次查看(过去 30 天)
显示 更早的评论
I have uploaded a video on Matlab and using the following code, I manage to read each frame and plot it on a figure:
x = VideoReader('name_of_video.avi');
figure
for i = 1:number_of_frame
frame_x = read(x,[i]);
imshow (frame_x)
end
Is it possible to delete some of these frame?
0 个评论
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!