how to divide the .wmv (movie) format to multiple images?

1 次查看(过去 30 天)
sir, Now i need to know how to make the .wmv movie to the multiple frames of the images. here i use the mmreader function to find the frames but it shows the error the
warning: Unable to determine the number of frames in this file.
1. how to find the number of frames in the .wmv
2. Next how to make the movie to the multiple images

回答(1 个)

Walter Roberson
Walter Roberson 2012-12-17
The movie is a variable-time movie. You need to read in the entire movie once before mmreader knows the number of frames in the movie.
You use mmreader to read one frame at a time, and imwrite() the cdata of the frame to a file.
  12 个评论
ajith
ajith 2012-12-31
sir i found the mistake i did i save the file name as 1.m so the ans= 1, and the file name 2.m so the ans = 2 thank you for your kind help
Walter Roberson
Walter Roberson 2012-12-31
Yes, that would do it. You cannot name a .m file with a number -- or rather, if you do, the number will be output instead of running the file.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by