Add watermark using plugin

165 views
Skip to first unread message

Цэрэнчимэд Цэгмид

unread,
Oct 25, 2021, 10:51:55 PM10/25/21
to Ant Media Server
Hello. I am trying to add watermark on RTMP stream on Ant media EE.
I know there is no built in feature on that and i want to accomplish using plugins. 
Is it possible?
And is there any guide about using plugin. I checked sample plugin, but that code is not clear.

Burak Kekec

unread,
Oct 26, 2021, 5:02:44 PM10/26/21
to Ant Media Server
Hi,

Actually you can do it with built-in filter plugin in v2.4.0.2

You should do  followings:
1. Add an adaptive bitrate setting 
2. Copy the logo image somewhere in server
3. Call Create filter REST method as:
curl -i -X POST -H "Accept: Application/json" -H "Content-Type: application/json" "https://your_domain:5443/APP_NAME/rest/v2/filters/create" -d '{"inputStreams":["stream_name"],"outputStreams":["stream_name"],"videoFilter":"movie=/path/to/your/image.png,scale=100:100[logo];[in0][logo]overlay[out0]","audioFilter":"[in0]acopy[out0]","videoEnabled":"true","audioEnabled":"true","type":"synchronous"}'

Then the logo will be added your stream.

26 Ekim 2021 Salı tarihinde saat 05:51:55 UTC+3 itibarıyla ts....@gmail.com şunları yazdı:

Цэрэнчимэд Цэгмид

unread,
Nov 1, 2021, 5:01:42 AM11/1/21
to Ant Media Server
Thank you for your answer. 
is There any documentation of this plugin? I could not find anything.
Can i remove Filter after created.
Where can i find all parameters of this rest api

Burak Kekec

unread,
Nov 1, 2021, 7:57:27 AM11/1/21
to Ant Media Server
You may check this:
https://github.com/ant-media/Plugins/tree/master/FilterPlugin#filter-usage

But the documentation isn't mature yet.
You may also check from source:
1 Kasım 2021 Pazartesi tarihinde saat 12:01:42 UTC+3 itibarıyla ts....@gmail.com şunları yazdı:
Reply all
Reply to author
Forward
0 new messages