Post a new question



FAQ: Text on top of video

Yury Udovichenko 2017-07-10 06:29:45 UTC in WMSPanel functionality

Q: How do I draw some text on top of any outgoing stream?

A: You need to use our Live Transcoder with "drawtext" filter.

1. Install Live Transcoder and get a license to make it work:

2. Create a scenario with a decoder for your incoming stream. Check one of our videos as example:

3. Add custom filter. Specify its name as drawtext, and set its value to something like:

fontfile=/usr/share/fonts/dejavu/DejaVuSans-Bold.ttf: text='%{localtime\:%T}': fontcolor=white@0.8: x=7: y=700


fontsize=45: fontfile=/usr/share/nimble/fonts/VCR_OSD_MONO_1.001.ttf: text='%{localtime\:%F %T %Z}': fontcolor=white@0.8: x=15: y=1000: box=1: boxcolor=black@0.4

4. Add encoder for outgoing stream and save scenario.

That's it, your outgoing stream will now have text with local time of the server.

Post a reply