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.

Dynamic Update of overlay position

Michael_H_1
Beginner
403 Views

Hello all,

Would it be possible to update the position of overlay?

Which function are needed to call after the the changing of the position?

Many Thanks,

Michael Hui 

0 Kudos
1 Reply
Jeffrey_M_Intel1
Employee
403 Views

Hi Michael,

This article shows a composition example: https://software.intel.com/en-us/articles/video-composition-using-intel-media-sdk

To change composition position, you would need to change the settings in the composition filter extended parameter buffer.  To do this you would need to "drain" any frames currently buffered by VPP then reset or close/init VPP to read in the new parameters.

This could be a reasonable approach if the position changes infrequently.  If you want to change position for each frame you may be able to write your own optimized custom composition with OpenCL.

 

0 Kudos
Reply