clockoverlay

clockoverlay — Overlays the current clock time on a video stream

Synopsis




            GstClockOverlay;

Object Hierarchy


  GObject
   +----GstObject
         +----GstElement
               +----GstTextOverlay
                     +----GstClockOverlay

Description

This element overlays the current clock time on top of a video stream. You can position the text and configure the font details using the properties of the GstTextOverlay class. By default, the time is displayed in the top left corner of the picture, with some padding to the left and to the top.

Here is a simple pipeline that displays the current time in the top left corner of the video picture:

gst-launch -v videotestsrc ! clockoverlay ! xvimagesink

Here is another pipeline that displays the current time with some leading text in the bottom right corner of the video picture, with the background of the text being shaded in order to make it more legible on top of a bright video background:

gst-launch -v videotestsrc ! clockoverlay halign=right valign=bottom text="Edge City" shaded-background=true ! ffmpegcolorspace ! ximagesink

Element Information

plugin pango
author Tim-Philipp Müller <tim@centricular.net>
class Filter/Editor/Video

Details

GstClockOverlay

typedef struct _GstClockOverlay GstClockOverlay;

Opaque clockoverlay data structure.

See Also

GstTextOverlay, GstTimeOverlay