Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

image shift

Hi

I recorded some videos (BGR type and avi file) with a camera and when I try to open this file and read it I have a big shift :

image description

i record my video with VideoWriter like this :

outputColorVideo.open(videoPath, CV_FOURCC('I', '4', '2', '0'), 30, Size(640, 480), true); ... //Adding some frames ... outputColorVideo.release();

and I read it with VideoCapture like this :

VideoCapture video(videoPath);

if(video.isOpen()){ video.read(frame); imshow("test", frame); } ...

Furthermore, when i watch my video with a movie player like VLC, everything is ok.

Do you know what can explain this problem ?

Thx a lot !