Extract the last frame and check the video info
6 次查看(过去 30 天)
显示 更早的评论
""
obj=VideoReader('111.wmv');
a=read(obj);
frames=get(obj,'numberOfFrames');
for k = 1 : frames
I(k).cdata = a(:,:,:,k);
I(k).colormap = [];
end
implay(I)
"" 1st Question:
how i need to take out my last frame???? if i dont knw what is my frame go on
2nd Question:
how do i check ,the info of my video avi is "fileinfo=wmvinfo('111.wmv')" but mine was not avi folder
0 个评论
采纳的回答
Walter Roberson
2012-10-20
After the loop you show, the last frame will be I(end).cdata
I do not understand what you mean about "mine was not avi folder" ?
3 个评论
Walter Roberson
2012-10-20
You already have an example of checking the file information:
frames=get(obj,'numberOfFrames');
更多回答(0 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!