Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Closing and saving video captured files properly with dsCapture and aviLogger
12-15-2012, 11:54 PM
Post: #1
Question Closing and saving video captured files properly with dsCapture and aviLogger
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
Quote this message in a reply
12-16-2012, 05:54 AM
Post: #2
RE: Closing and saving video captured files properly with dsCapture and aviLogger
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
Quote this message in a reply
01-08-2013, 03:02 AM
Post: #3
RE: Closing and saving video captured files properly with dsCapture and aviLogger
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
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)