mohan bv

mohan bv

  • NA
  • 2
  • 4.5k

Video capture and Save - multi threading in C#

Dec 27 2006 1:24 AM

Hello,

I am using directX to capture and save video data from my web camera. I have some performance problems:

If I capture data and then stop, during which the captured data has to be encoded and stored as an AVI file and immediately resume video capturing, the capturing does not start until 3-4 seconds resulting in loss of data.
I tried implementing multi-threading so that video capture happens on one thread and saving of data happens on the other but when I do that an exception is thrown when the data save happens.

Kindly help!

Regards,
Mohan