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
0 件のコメント
回答 (1 件)
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 件のコメント
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.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!