Jump to content

GstSEIMetadata/User Guide: Difference between revisions

Line 97: Line 97:
* metadata-binary: property used to insert metadata as binary see [[GStreamer H264 - H265 Metadata/Examples/C Example|C Example]]
* metadata-binary: property used to insert metadata as binary see [[GStreamer H264 - H265 Metadata/Examples/C Example|C Example]]


==SeiMetatester element==
==SeiMetatimestamp element==
The expected output of running <pre>gst-inspect-1.0 seimetatester</pre> is the following:
The expected output of running <pre>gst-inspect-1.0 seimetatimestamp</pre> is the following:


<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
#gst-inspect-1.0 seimetatester
Factory Details:
Factory Details:
   Rank                    none (0)
   Rank                    none (0)
Line 112: Line 111:
   Name                    sei
   Name                    sei
   Description              Gstreamer plugin to add meta-data as SEI NAL units
   Description              Gstreamer plugin to add meta-data as SEI NAL units
   Filename                /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libsei.so
   Filename                /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libsei.so
   Version                  0.1.0
   Version                  0.5.4
   License                  Proprietary
   License                  Proprietary
   Source module            gst-sei
   Source module            gst-sei
Line 124: Line 123:
             +----GstElement
             +----GstElement
                   +----GstBaseTransform
                   +----GstBaseTransform
                         +----GstSeiMetaTester
                         +----GstSeiMetaTimestamp


Pad Templates:
Pad Templates:
   SRC template: 'src'
   SINK template: 'sink'
     Availability: Always
     Availability: Always
     Capabilities:
     Capabilities:
       video/x-h264
       ANY
      video/x-raw
    
    
   SINK template: 'sink'
   SRC template: 'src'
     Availability: Always
     Availability: Always
     Capabilities:
     Capabilities:
       video/x-h264
       ANY
      video/x-raw


Element has no clocking capabilities.
Element has no clocking capabilities.
Line 150: Line 147:
Element Properties:
Element Properties:
   name                : The name of the object
   name                : The name of the object
                         flags: readable, writable
                         flags: readable, writable, 0x2000
                         String. Default: "seimetatester0"
                         String. Default: "seimetatimestamp0"
   parent              : The parent of the object
   parent              : The parent of the object
                         flags: readable, writable
                         flags: readable, writable, 0x2000
                         Object of type "GstObject"
                         Object of type "GstObject"
   qos                : Handle Quality-of-Service events
   qos                : Handle Quality-of-Service events
                         flags: readable, writable
                         flags: readable, writable
                         Boolean. Default: false
                         Boolean. Default: false
  timestamp-source    : Source clock for timestamp calculation
                        flags: readable, writable
                        Enum "GstSeiMetaTimestampSources" Default: 0, "pipeline"
                          (0): pipeline        - Pipeline clock (use only when pipelines ares using the same clock)
                          (2): sysclk          - System clock
                          (1): buffer          - Buffer timestamp
                          (3): reference        - Reference timestamp
</syntaxhighlight>
</syntaxhighlight>


As shown in the description, this element adds a GstMeta to each buffer. An example of how to use this would be the following pipeline with the seiinject and seimetatester elements.
As shown in the description, this element adds a GstMeta to each buffer. An example of how to use this would be the following pipeline with the seiinject and seimetatimestamp elements.


<pre>
<pre>
gst-launch-1.0 videotestsrc ! x264enc ! seimetatester ! seiinject metadata="Hello World" ! filesink location=seiinject_videotestsrc.h264 -v
gst-launch-1.0 videotestsrc ! x264enc ! seimetatimestamp ! seiinject metadata="Hello World" ! filesink location=seiinject_videotestsrc.h264 -v
</pre>
</pre>


532

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.