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
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

Dynamic Update of overlay position

Michael_H_1
Beginner
82 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
82 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.

 

Reply