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.

helin 2018-01-14 09:09:03 UTC

This is an example of Linux.
How it works on Windows?

Alex Pokotilo 2018-01-14 13:30:30 UTC

this is example for transcoder and it should work the same way for linux/windows

helin 2018-01-14 14:47:23 UTC

There is no /usr/ share path in Windows how it works?

Alex Pokotilo 2018-01-14 22:14:07 UTC

you need to specify windows path where font located

Post a reply

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the Privacy Policy. If you want to know more or withdraw your consent to all or some of the cookies, please refer to the Privacy Policy.
By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies.