Delete some frames of a video
12 ビュー (過去 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 件)
Image Analyst
2020 年 7 月 20 日
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.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!