Search code examples
javascriptwebrtckurento

Kurento: how to make custom filter?


This question is related to this (basically, MPEG works, but wanna try and achieve a better solution)
I have been trying out kurento's magic mirror

Requirement: output stream must blur all areas of input stream except face.

my plan to achieve this,

  • Input stream passes to custom filter( sink).
    1. first detect and copy face areas,
    2. blur the image
    3. overlay copied faces on blurred image.
    4. now, this images would be overlayed on whole video( instead of only on face as in the case of FaceOverlayFilter).
  • filter output(src) is given out as webRTC output( sink), this gets would get transmitted to others.

Are there any filters already available that can be combined to achieve this, or must I make my own custom filter? Is this( my custom filter) even feasible( and is it the right way to fulfill the requirement)?


Solution

  • Finally, found documentation on their site itself.

    Hope this proves as good starting point for whose who stumble upon this post.