I want to create a video file from a stream of RGB images moving at 52 frames per second. I found the opencv api very usable (cv :: VideoWriter). The problem is that I can only play with produced avi with VLC; which plays the video but yells:
[0x28307b0] xcb_xv generic error: no available XVideo adaptor
Any other video player (on the same computer) cannot read and play video. When recording, everything looks fine: I get information about the output, frame size, video codec, fps, etc ... without errors.
Output
Stream
Since OpenCv only supports AVI as video content, the only thing I can change is the video codec, I tried (FOURCC code) FLV1, DIVX, DIV3, but none of them work correctly.
I would like to play this video from any video player on different computers. How can I make it work? is VideoWriter the right choice?
Any suggestion is very welcome.
Thank.
source
share