Performance implications of addWatermark usage and alternative approach suggestion

We’re adding a watermark to videos that we get from auto highlight capture or manual capture, right after the video was created.

As far as I understand, it works in a way, that the video that you’re adding the watermark to is fully processed, and the watermark is added to each frame.

This uses the user’s CPU, which would not be desirable and can lead to lags in game.

My main question:

  1. is this assumption correct, or is overwolf doing anything special to be more performant when adding the watermark?

As a followup I have a suggestion for a “better” way to add the watermark:
When setting up recording, it could be possible to define the watermark (file and position).
This watermark is then visible only in recordings, so that it’s not visible for the user or on stream, but will end up naturally on all recordings done.
This way there would not be additional processing needed and therefore no extra video-file created just to add the watermark.

Cheers :slight_smile:

Hi and sorry for the delay.

The watermark location and size can be configured: overwolf.media.videos API · Overwolf

The watermark is added once the capture file is created. You can add it even “offline” - to a file that is already created before. I’m not familiar with the internals of it more than that. I can open a request for investigation to the R&D, but to be honest - I can tell you that it will take time, as we will assign it as a low priority - we are focused on other issues, and there are no complaints about the watermark performance or similar problems.

Thanks.

The watermark is added once the capture file is created.

can you elaborate on that?
Currently afaik the process is:

  1. video file is created (highlight)
  2. watermark is added through the api, creating a new video file.

This creates a second file and naturally requires some form of processing of the file to get the watermark on there.
Am I missing an option to have it added right away without creating an additional file?

@Colorfulstan This is the way that the API is currently working. I’m not familiar with all the reasons why it’s working like that, but I can tell you that now enhancing this internal mechanism will not be a high priority. I will discuss that internally and update you.

Thanks