VideoReader and VideoWriter on Matlab not getting the same framerate
3 次查看(过去 30 天)
显示 更早的评论
In the original video I get 11 seconds and in the new one 5 seconds. Anyone knows the problem?
outputVideo = VideoWriter('openv_v.avi');
open(outputVideo);
vid = VideoReader('openv.avi');
for idx = 1:vid.NumberOfFrames
img = read(vid, idx);
writeVideo(outputVideo,img);
end
close(outputVideo);
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio and Video Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!