VideoCapture reading AVI changes original video brightness.

asked 2019-03-04 11:19:09 -0600

stav bodik gravatar image

Hello I am facing very strange behavior while reading AVI video from disk using VideoCapture .

The problem is that there is difference in the brightness between the original image and the image was read using VideoCapture,feels like it applying some histogram equalization or other algorithm on my original image.

Original image:

image description

VideoCapture image:

image description

The original image was saved from "VirtualDub" program without any filters.

Read method :

VideoCapture videoCapture;
videoCapture.open(videoFileName);
Mat image;
videoCapture.read(image);

Any ides what can cause this ? sounds like codec (ffmpeg.dll) bug or anything else ?

edit retag flag offensive close merge delete