How can I use Filter Plugin with Ant Media Server? #4982
-
I see that we can use Filter Plugin with AMS in order to crate audio-video manipulations on the FLY. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Note: You need to change the path of the logo/image with your file path in video filter.
|
Beta Was this translation helpful? Give feedback.
-
How to place a logo on the server side, I can't find relevant information |
Beta Was this translation helpful? Give feedback.
Ant Media Server Filter Plugin lets you make Real-time Audio/Video Manipulation on the server-side as told in this blogpost. Filter can be created on the fly by the REST API.
You can add logo to an on going stream by applying movie filter to the stream. Here is the Rest API sample:
curl -i -X POST -H "Accept: Application/json" -H "Content-Type: application/json" "http://localhost:5080/WebRTCAppEE/rest/v2/filters/create" -d '{"filterId":"logodemo","inputStreams":["stream1"],"outputStreams":["test"],"videoFilter":"movie=/home/burak/antmedia.png[logo];[in0][logo]overlay[out0]","audioFilter":"[in0]acopy[out0]","videoEnabled":"true","audioEnabled":"true","type":"asynchronous"}'
Note: Yo…