Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

How to get Captured frame in Buffer?

Mohammad_T_1
Beginner
84 Views

Hi 

I am working on sample_decode for screen capture. Screen is captured very well but i want to fill buffer with frame(Screen captured frame).

In sample_decode inside RunDecode-> inside SyncOutputSurface-> i got decoded frame, but not able to fill msdk_char *buffer.

Help me with this.

0 Kudos
3 Replies
Harshdeep_B_Intel
84 Views

Hi Mohammad,

Can you please share more information and clarify what you mean by "but not able to fill msdk_char *buffer."  What is the error message? Also, depending on memory type in your use case, make sure you have allocated required surfaces and verify using query function. Please refer to this article which describes MediaSDK framework :https://software.intel.com/en-us/articles/framework-for-developing-applications-using-media-sdk

As this is a specific question related to mediasdk,  please post your questions on mediasdk forum here:  https://software.intel.com/en-us/forums/intel-media-sdk. It will be easier for us to track and respond.

Thanks,

Mohammad_T_1
Beginner
84 Views

Hi Harsh 

I have resolved my problem, thanks for your concern, what i wanted to do is , getting Y and UV data from m_pCurrentOutputSurface->surface->frame.Data.Y and m_pCurrentOutputSurface->surface->frame.Data.UV into UINT8* buffer.

I have done that. Thanks again.

Harshdeep_B_Intel
84 Views

Thanks for sharing more information. Glad, you were able to resolve the issue, then will close this thread. Please open a new thread on further media questions at mediasdk forum here:  https://software.intel.com/en-us/forums/intel-media-sdk. It will be easier for us to track and respond.

Thanks, 

Reply