# Revision history [back]

i have buffer a few frame in ram and after 3 second write bufferd image and continue to 10 seconds write in a single file . but bufferd image playbacking is too fast of other part of video . the length of video is true but playback not true.

Writer(RecordPath + filename, CvInvoke.CV_FOURCC('D', 'I', 'V', '3'), Fps, Width, Height, true);

for (int i = 0; i != buffer.Count-1; i++) { writer.WriteFrame(buffer[i]); }

i I have buffer a few frame in ram and after an event occurred write 3 second write bufferd image buffered images and continue to 10 seconds seconds write in a single file . but bufferd buffered image playbacking play backing is too fast of other part of video . the length of video is true but playback not isn't true.

Writer(RecordPath + filename, CvInvoke.CV_FOURCC('D', 'I', 'V', '3'),

        writer->open(RecordPath , CV_FOURCC('M', '4', 'S', '2'), Fps, Width, Height, true); true);

int delay = 1000 / Fps;
for (int i = 0; i != buffer.Count-1; i++)
{
writer.WriteFrame(buffer[i]);
}             writer << (buffer[i]);
}

int frame_counter = 0;
while (frame_counter < Recoerd_frame_size)
{
WaitKey(delay);//wait for get new frame
writer << (frame);
frame_counter++;
}