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.

Post a reply