This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

jpeg encode can't jump out

Hello everyone:

I used 2 threads to work, one is for video encode, its task is to convert CIF->MPEG4, another thread is to encode jpeg.

When I run these 2 threads, the program executes the function(imagenc1_process), it can't jump out , the program will be waiting for the function to finish. the video and jpeg can't work at the same time...

 please help me~!!

  • I am curious how your program looks like.  When using multiple threads, you can only have one codec engine open at a time.  Depending of the version of DVSDK (or codec engine) you are using, this could mean you should only call Engine_open 1 time and pass handle to other threads or it could mean that you can call Engine_open more than one time, but you must open the same engine every time.  Aside from making sure there are not multiple distinct calls to Engine_open, I cannot think of any reason why the above would not work.