필터 지우기
필터 지우기

"Out of memory" error.

조회 수: 1 (최근 30일)
Paulo Oliveira
Paulo Oliveira 2013년 11월 22일
댓글: Image Analyst 2013년 11월 25일
I use the routine matlab to convert videos, MOV to AVI format and for my system identify the 240 frames per second. When I use the routine to convert small videos (200 MB), I have not problems, but I need also of convert large videos (2GB), but the memory laptop is no enough. Anyone know how I limit the used memory of my matlab?
If you need my routine, I publish here. Thanks.

채택된 답변

Image Analyst
Image Analyst 2013년 11월 22일
You don't need to read the whole movie into memory at once. Are you using the VideoReader class and read()?
  댓글 수: 2
Paulo Oliveira
Paulo Oliveira 2013년 11월 25일
I use VideoReader.
Image Analyst
Image Analyst 2013년 11월 25일
See my comment below on your "Answer".

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Paulo Oliveira
Paulo Oliveira 2013년 11월 25일
Anyone help me to limit the memory for do not block my computer? Thanks
  댓글 수: 3
Paulo Oliveira
Paulo Oliveira 2013년 11월 25일
편집: Paulo Oliveira 2013년 11월 25일
My code work with small videos, but memory block when convert large videos. I have two solution, or limit the RAM memory or create a new code to convert videos. How to divide a video? For example my video has 80000 frames.
Image Analyst
Image Analyst 2013년 11월 25일
Again, we have not seen your code so it's hard to speculate on the unknown. All I can guess is that you're not using read() to read in one frame at a time, but are trying to read in the whole giant thing all at once, which I've already said (and you' already know) won't work for large videos.

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by