Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.
3058 Discussions

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

lxk_l_
Beginner
587 Views

               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
587 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

 

0 Kudos
Yi_G_Intel1
Employee
587 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

0 Kudos
Reply