Forums
Closing and saving video captured files properly with dsCapture and aviLogger - Printable Version

+- Forums (http://mitov.com/forum)
+-- Forum: .NET 2.0 - 4.0 Components (/forum-8.html)
+--- Forum: VideoLab (/forum-21.html)
+--- Thread: Closing and saving video captured files properly with dsCapture and aviLogger (/thread-1265.html)



Closing and saving video captured files properly with dsCapture and aviLogger - angelcaf - 12-15-2012 11:54 PM

Hello,
I have implemented an app using VideoLab that captures videos from the webcam using dsCapture (no audio/no video compression right now), shows the preview on a window and at the same time saves the captured video into a file by using aviLogger.

Sometimes I get two problems though:
1) At some point the audio gets desynchronized from the video with videos longer than 1 or 2 minutes (already checked that framerate of webcam corresponds to capture frame rate)

2) Sometimes when finishing recording and checking for the file just saved I realize the last 2/3 seconds of the recording are missing from the file. So, What is the proper way to close and save the file once recording is stopped by the user (via button on the GUI)?

Right now I am using the aviLogger Progress callback and when the "Args.currentFrame is >= currentFrame when recording was stopped"
I do the following in sequence (aviLogger is the member name of the component):
aviLogger.Close();
aviLogger.Enabled = false;
dsCapture.Enabled = false;

Any suggestion?
Thanks in advance,
Angelo


RE: Closing and saving video captured files properly with dsCapture and aviLogger - Dave - 12-16-2012 05:54 AM

This has been an issue for some time, at least for Delphi/Builder. I think there was a solution somewhere on this forum, perhaps you can search for it in the VCL section.

Regards,
Dave


RE: Closing and saving video captured files properly with dsCapture and aviLogger - agiltinan - 01-08-2013 03:02 AM

Hi Angelcaf,

I'm having the same issue.

I've searched the archives (VCL, etc.) but couldn't find the solution.

Did you manage to find a solution?

cheers,
agiltinan