Multi-threading and Real-Time

Sébastien ANDRES <[email protected]>
Newsgroups gmane.comp.video.xvid.devel
Message-ID <[email protected]>
Hi,

We developed an video application using c++ and OpenCV. This application 
can capture up to 4 videos cameras.
We use the cvCreateVideoWriter from OpenCV to write xvid avi files.

On core 2 duo with two 1280x960 cameras : no problems.
On core *Quad *with two 1360x1024 cameras : there are corrupted avi files !

The application is multi-thread and writes two avi xvid files 
simultaneous in different threads. Does xvid codec is thread-safe ?! 
Could it have problems with 4 cores and not with 2 cores ?!
Could 1360x1024 resolution cause problems ?

I have found a bug on OpenCV which cause cvCreateVideoWriter to return 
error if we call it more than once. I must add CoInitialize in 
cvCreateVideoWriter function and I can now record two avi simultaneous. 
Do you think another problem in OpenCV library ?

Thanks.

-- 
Sébastien ANDRES

-----------------------------------
Société HIZKIA
ZA St Frédéric, Bâtiment 22
11 rue de la Gabarre, 64100 BAYONNE
Tel : 05 59 50 00 44  poste 3
-----------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.