Gst.ReferenceTimestampMeta¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
duration |
r/w |
duration, or |
|
info |
r/w |
Additional information about the timestamp. |
|
parent |
r/w |
the parent |
|
reference |
r/w |
identifier for the timestamp reference. |
|
timestamp |
r/w |
timestamp |
Methods¶
class |
|
Details¶
- class Gst.ReferenceTimestampMeta¶
Gst.ReferenceTimestampMetacan be used to attach alternative timestamps and possibly durations to aGst.Buffer. These are generally not according to the pipeline clock and could be e.g. the NTP timestamp when the media was captured.The reference is stored as a
Gst.Capsin reference. Examples of valid references would betimestamp/x-drivername-stream: for timestamps that are locally generated by some driver nameddrivernamewhen generating the stream, e.g. based on a frame countertimestamp/x-ntp, host=pool.ntp.org, port=123: for timestamps based on a specific NTP server. Note that the host/port parameters might not always be given.timestamp/x-ptp, version=IEEE1588-2008, domain=1: for timestamps based on a given PTP clock.timestamp/x-unix: for timestamps based on the UNIX epoch according to the local clock.
Since 1.24 it can be serialized using
Gst.Meta.serialize() andGst.Meta.deserialize().Since 1.28 additional information about the timestamp can be provided via the optional info structure. This should only be used for information about the timestamp and not for information about the clock source. The latter should be stored in the reference instead.
Interpretation of the fields of info depends on the reference.
New in version 1.14.
- classmethod get_info()[source]¶
- Returns:
The
Gst.MetaInfo- Return type:
Gets the global
Gst.MetaInfodescribing theGst.ReferenceTimestampMetameta.New in version 1.14.