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.
3075 Discussions

v4l2 camera capture and drawing on VA surface before encoding

Ashim_Prasad
Beginner
541 Views

Hello,

My application requires capturing from camera, drawing few things on the frame and then do h.264/h.265 encoding.I am not able to figure out how to achieve this on Linux to get best performance.

1. Media SDK Encoder requires VA surface, which I can create using libva APIs. How do I capture from v4l2 directly on a VA surface w/o having a copy.

2. How to draw on this VA surface. I need to render text with specific font, draw few rectangles/polygons (filled with some transparency and non-filled). I want to achieve this on GPU w/o a need to transfer the surface data to CPU and then back to GPU for encoder.

0 Kudos
0 Replies
Reply