본문 바로가기

기타

[error handling] 0xc10100be python write video, cv2 video write가 안될때

반응형

 

0xc10100be 에러가 뜨면서 저장한 비디오가 실행이 안된다. 저장도 거의 안 된다. 6KB, 1KB 이런 식이다. 이럴 경우 어떻게 해결해야하나?

문제 원인)

바보 같은 실수를 한 게 gframe을 저장하려고 했단 것이다.

frame은 (640, 480, 3)의 형태고

gframe은 (640, 480)이다. 흑백의 채널이 없는 이미지는 out.write(gframe)이 안 먹는다.

해결책

그냥 3채널의 frame을 write하자. 

 

https://github.com/ContinuumIO/anaconda-issues/issues/223

 

opencv - not writing output with cv2.VideoWriter.write · Issue #223 · ContinuumIO/anaconda-issues

OpenCV is not writing to output video files with cv2.VideoWriter.write. I only get an empty video file (8 KB) and no error messages. Where is the problem? Thanks a lot! I am running 2.7.8 |Anaconda...

github.com

 

반응형