disqus4u Latest Questions

How can I add overlays in Ant Media Server streams?


I am looking for a way to insert advertising overlays in Ant Media live streams. Is there any way I can achieve this?

Related Questions

  1. Yes, adding overlays is possible by using plugins like the filter plugin. However, you need to have an Ant Media enterprise edition as the free community edition won’t work.

    In case you have the enterprise edition, the filter plugin can be used to add a stream over another one as an overlay.

    curl -i -X POST -H "Accept: Application/json" -H "Content-Type: application/json" "http://localhost:5080/WebRTCAppEE/rest/v2/filters/create" -d '{"filterId":"overlaydemo","inputStreams":["stream1","stream2"],"outputStreams":["test"],"videoFilter":"[in0]scale=240:160[s0];[in1][s0]overlay[out0]","audioFilter":"[in0][in1]amix=inputs=2[out0]","videoEnabled":"true","audioEnabled":"true","type":"asynchronous"}'

    You can learn more about the Ant Media filter plugin hereĀ 

    If you don’t want to use the filter plugin, you can use the Stamp plugin, which shows Custom User Interface or dynamically add video overlays to live streams using Text, XML, CSV, and RSS files.

    Keep in mind that all these plugins require the Ant Media Enterprise edition license to be able to use them.

Leave an answer

Leave an answer