Community
cancel
Showing results for 
Search instead for 
Did you mean: 
lxk_l_
Beginner
139 Views

How can I load my video frame from GPU memory directly and encode it?

               I am using a video captrue card by PCIe and I want to perform encoding with Intel media SDK. I notice that the surface which we load frame is empty when I test the screen captrue function.Thus,I think this function may load video frame from gpu memory using the  plugin directly.I want to load my video frame from gpu memory  directly by DMA and encode it.Is there a sample to tell me how to load one frame from GPU memory and encode it? My CPU is i5-7500,thank u

0 Kudos
2 Replies
Monique_J_Intel
Employee
139 Views

Hi Ixk,

I will investigate if there is a sample that shows how to encode a frame from GPU memory and get right back to you.

Kind Regards,

Monique Jones

 

Yi_G_Intel1
Employee
139 Views

Hi, lxk

    my understanding is that video capture hardware got the raw video frame, and the frame needed to feed into the encoder. you need a way to feed the video frame into encoder in the video memory. C-for-media has gpu copy routine to copy data from video memory to video memory. The GPU copy routine will show good performance if frame size is bigger. Here is the link for C-for-media

      Intel Media Driver for VAAPI and Intel® C for Media Runtime: https://github.com/intel/media-driver/

·       Intel C for Media Compiler and examples: https://github.com/intel/cm-compiler/

   Are using window OS and Linux? C--for-media supports both. There is example directory. You can see there is GPUcopy_API_Test example.

You can reference it.

Thanks

Yi

Reply