필터 지우기
필터 지우기

std::exception while trying to write frame by VideoWriter.writeVideo

조회 수: 2 (최근 30일)
Karel Lebeda
Karel Lebeda 2012년 3월 12일
댓글: Walter Roberson 2015년 10월 13일
Hello, I'm trying to write frames into video, in a loop, one frame at a time. By 3rd-5th frame, I'm getting an error:
Caught "std::exception" Exception message is:
bad numeric conversion: positive overflow
when executing simply
writeVideo(vo, img);
where vo is video object with some frames already successfully written and img is just MxNx3 uint8. I have tracked the error down through an audiovideo tollbox to toolbox/shared/asynciolib/+asyncio/OutputStream.m, line 183:
countWritten = obj.StreamImpl.write(packets);
so it looks like some bug in the OI library... any idea, what could be the problem?
P.S.: I'm running Matlab R2011a on Ubuntu.
  댓글 수: 3
Karel Lebeda
Karel Lebeda 2015년 10월 13일
Eventually realised what the problem was - the place I was trying to write into (a network drive) got filled with the video to full capacity...
Walter Roberson
Walter Roberson 2015년 10월 13일
Thanks for the follow up!

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by