Ask Your Question

Revision history [back]

the problem on your code is here

video.write(src);

src is 4 channel (BGRA) you need to convert it to BGR

you can find here the sample source i recently updated.