How to Add a Logo Overlay in Live Broadcasts with WebRTCApp in Community Edition 2.8.2 #6082
Replies: 5 comments 6 replies
-
@alanpereiracoelho , There can be two solution for this each one has its own pros and cons.
Pros : Does not require Re-Encoding , Does not have any extra load on the server side.
pros : not possible to remove the overlay. Let me know in which solution you are interested in. |
Beta Was this translation helpful? Give feedback.
-
@USAMAWIZARD |
Beta Was this translation helpful? Give feedback.
-
@alanpereiracoelho , There can be two solution for this each one has its own pros and cons. 1. Client Side Overlay.Overlay the log on the client player side using some basic CSS and images you can have a fake overlay on the video player. Pros : Does not require Re-Encoding , Does not have any extra load on the server side. How to UseWe have a option to show the logo on the player you can un-comment this line The file should be available in /usr/local/antmedia/APPNAME/play.html search for this line
remove the comments and added some css it will look something like this
remove By default the this dispay the overlay logo until the video start to play. remove the id="video_info" then it will be kept there even after the video has start to play. add your image file in server directory /usr/local/antmedia/APPNAME/images adjust the image height width and CSS accordingly. 2. Overlay on Server Side.this method will decode the video on server side add overlay on the video and re-encode the video. pros : not possible to remove the overlay. How to Usefor this you can use filler Plugin which is available here. Movie Filter and Adding Logo:You can use a movie filter to create a stream from an image. If you create a stream from a logo image and add it as an overlay to another stream, you will have an output stream with the logo. Curl Command: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"}'
Input Streams: Video Filter Text: |
Beta Was this translation helpful? Give feedback.
-
Hi Guys, Media Push Plugin is another way to add overlays for the published streams. You can put the overlays on https://overlays.uno/home I'm more than happy to make the demo for you if anyone is interested. You can DM on linkedin as well Cheers |
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.
-
Hello, Ant Media Server Community,
I hope everyone is doing well. I am working with the Ant Media Server Community Edition 2.8.2 (20240201_1151) and have encountered a challenge that I hope you can help me with.
My goal is to add an overlay, specifically a logo, to the bottom right corner of live broadcasts using WebRTCApp. I have explored the code and available documentation but have yet to successfully implement this feature.
Could you guide me on the best way to add a logo overlay in live broadcasts? Is there a specific configuration, plugin, or method in the source code that I should use to achieve this?
Any code examples, guidance, or resources you could share would be greatly appreciated. I am looking forward to integrating this functionality and enhancing the user experience in our live broadcasts.
Thank you in advance for any help or direction you can provide.
Best regards,
Beta Was this translation helpful? Give feedback.
All reactions