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.

encode demo problem

Hello everyone,

I just ran the encode demo on my DM3730.

I compiled the demo and it worked fine.

But when I added some work (my own algorithm) to the video thread, the encoded video seemed weird.

My own algorithm ran on DSP side, by the way.

I noticed that when the frame rate was not 30fps, the encoded video would flick.

The flow is video in -> resize to QVGA -> do my algorithm -> encode.

That is, I just add the resize function and my own algorithm to encode demo.

The video is as enclosed, and please ignore the bad performance of my algorithm.

4237.1.rar

It seemed that the encode order was not right.

Some previous frames were encoded before the current frame.

Observe the time bar and cars showed in the video file could clearly see this phenomenon.  

This is strange, because I thought that work on DSP would disable interrupt and block.

Could someone help?

Thanks in advance.