O'Reilly logo

Python Multimedia Beginner's Guide by Ninad Sathaye

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - overlay text on a video track

Let's see how to add a text string on a video track. We will write a simple utility, which essentially has the same code structure as the one we developed in the Playing a video section. This tool will also add the buffer timestamp and the current CPU clock time on the top of the video. For this section, it is important that you have textoverlay, timeoverlay, and clockoverlay plugins available in your GStreamer installation. Otherwise, you need to install these plugins or use some other plugins, such as cairotextoverlay, if available.

  1. Download the file VideoTextOverlay.py from the Packt website.
  2. The constructVideoPipeline method of the class VideoPlayer is illustrated in the following code snippet: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required