[Bug 793683] New: gstclockoverlay: Add ability to specify time to be displayed by GstClockOverlay

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Feb 21 05:50:43 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=793683

            Bug ID: 793683
           Summary: gstclockoverlay: Add ability to specify time to be
                    displayed by GstClockOverlay
    Classification: Platform
           Product: GStreamer
           Version: 1.10.x
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: abhitechiestar at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 368688
  --> https://bugzilla.gnome.org/attachment.cgi?id=368688&action=edit
Patch for adding ability to specify time to be displayed by GstClockOverlay

GstClockOverlay presently displays buffer arrival time as default. In certain
scenarios, users would like to display buffer's timestamp, rather than buffer
arrival time - to avoid any gaps caused by latency between frame source and
clockoverlay element in pipeline. 

I propose to add property called "time-mode", where users should be able to
specify what time to show. So other than current default, there can be another
option for time-mode say "buffer-time", to indicate that clockoverlay will be
using buffer's time for display. 

Example element configuration can look like following : 

clockoverlay halignment=right valignment=bottom time-format="%Y-%m-%d %H:%M:%S"
time-mode=1

Where time-mode=1 represents "buffer-time".

Attached is the implementation for the same.

Note: GstTimeOverlay uses buffer time, but that doesn't have capability to
display in clock format. Since clockoverlay is used to display text in clock
format, it was found more suitable for said requirement.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list