Not enough memory for splitting video into frames
조회 수: 1 (최근 30일)
이전 댓글 표시
I want to split a video clip into frames. The clip I used has 2040 frames, and when I run the code to split video into frames it gives an error saying there isn't enough memory for 2040 frames. Can anyone please tell me what the problem is? Has it got anything to do with the computer's RAM? I have 2GB
댓글 수: 0
채택된 답변
Walter Roberson
2014년 1월 25일
Yes, the problem is likely the RAM. What is the height and width of each frame? Is the frame color or greyscale ? Is the datatype uint8 (values in the range 0 to 255) or double (values in the range 0 to 1) ?
댓글 수: 4
Image Analyst
2014년 1월 27일
I suggest you look at my answer. Evidently you did not because it does the differencing you're asking for, and it would be an easy addition to keep track of what frame has little motion detected and to not write those out.
추가 답변 (2개)
vijay sai
2014년 1월 26일
yes, as walter said the problem is with RAM, u could process the same by resizing the video to a reduced resolution....
댓글 수: 0
Image Analyst
2014년 1월 26일
See my demo. It does that. No memory problem because it only reads in and processes one frame at a time.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!