Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
19 Views

DecodeFrameAsync is taking more than 5ms

Hi,

In Windows platform I am using Media SDK.

API version is 1.17 and DecodeFrameAsync is taking more than 5ms time. Can you please suggest what could be the possible reason?

sts = m_pmfxDEC->DecodeFrameAsync(pBitstream, &(m_pCurrentFreeSurface->frame), &pOutSurface, &(m_pCurrentFreeOutputSurface->syncp));

Regards,

Monotosh

0 Kudos
3 Replies
Highlighted
19 Views

There could be many possibilities to consider.  To narrow things down could you send more info?

  • Processor, driver version, and OS (Version of Windows)
  • Which codec?
  • What resolution?
  • How many simultaneous decodes?

Also, how are you measuring?  Decode only or decode->render, decode->write to file, etc?  

Can this behavior be replicated with sample_decode or one of the simple_decode tutorials?

Regards, Jeff

 

0 Kudos
Beginner
19 Views

Hi Jeff,

Thank you for your reply. I am trying to reproduce the same with the sample codes.

I am having intel i5 4210U and media sdk API version is 1.17 running Windows 10.

Can you please suggest me some document which will give me some idea about how many simultaneous decoding of 1920*1080 @25fps is possible in the above mentioned processor.

Best regards,

Monotosh

0 Kudos
Highlighted
19 Views

Sorry for the delayed reply.  I don't know of a document to point you to, but the best way to start exploring performance on your hardware is with the sample applications.  For decode, you can run sample_decode with no output to measure decode FPS by itself.  You should see standalone decode performance in the high hundreds of FPS.  You can also render from that sample.  Output file I/O is unoptimized -- if you write out to file nearly all of the execution time is in NV12->I420 color conversion and fwrite.   

0 Kudos