Forum

Post a new question

Categories:

Tags:

FAQ: Text on top of video

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

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: https://wmspanel.com/transcoder/install

2. Create a scenario with a decoder for your incoming stream. Check one of our videos as example: https://www.youtube.com/playlist?list=PLRDQWjeuSAkM6itDPes-r8HrN95ub36ue

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

or

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
6502adb482884f9cc2331584593b2c1d

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

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

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

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

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

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

you need to specify windows path where font located

Post a reply