문제

I am using OpenCV's VideoCapture and VideoWriter class. I record a MJPEG stream from an IP camera. To the video writer class, I pass the same parameters which I got calling get in the VideoCapture instance. After recording the video, I can successfully open it in Media Player Classic. But if I try to open the same video in another OpenCV app, I can't seem to stream the video. The call to open succeeds but then successive calls to read fails and I can't grab any frame.

Please, Help!

도움이 되었습니까?

해결책

I guess my problem was my cheap Ip camera. Once I set the FOURCC code manually to MJPEG (instead of getting from the camera), then my problems are solved...

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top