I'm presuming you spun up another thread and are calling
VIDENC_create/process/control/delete from it.  Are you either 1) opening
a new engine in this new thread (via Engine_open()), or 2) serializing
access to the engine handle you're using from different threads?

An often overlooked comment in the ref guide for Engine_open() reads:
"Engine handles must not be concurrently accessed by multiple threads;
each thread must either obtain its own handle (via Engine_open()) or
explicitly serialize access to a shared handle."

[ Are you calling Engine_open() in your new thread to get a new,
thread-specific engine handle? ]

Similarly, for each codec instance handle:  "Instance handles must not
be concurrently accessed by multiple threads; each thread must either
obtain its own handle (via *_create) or explicitly serialize access to a
shared handle."

If this doesn't help, can you post a little more about your use case
(what threads are in the system and what calls they make)?  Can you rule
out any driver issues (perhaps by reading/writing data to disk - or
throwing the data away rather than touching the drivers)?

Chris 

> -----Original Message-----
> From: 
> [EMAIL PROTECTED]
> p.com 
> [mailto:[EMAIL PROTECTED]
> avincidsp.com] On Behalf Of Alan Li
> Sent: Tuesday, September 05, 2006 9:33 PM
> To: [email protected]
> Subject: Threading issue for V4L2 and VIDENC_process 
> 
> Hi, 
> 
> I found the codec engine (CE) for DVEVM frozen when
> the video capturing (via V4L2) thread is different
> from video encoding thread of calling VIDENC_process.
> The whole DVEVM seems frozen and no error messages or
> crash come out. The sample demo codes that come with
> DVEVM has the capturing and encoding within the same
> thread. Anyone see this problem? thanks for any help
> or comment.
> 
> alan
> _______________________________________________
> Davinci-linux-open-source mailing list
> [email protected]
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
> 
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to