227
edits
Line 157: | Line 157: | ||
== seiextract element == | == seiextract element == | ||
The expected output of running <pre>gst-inspect-1.0 seiextract</pre> is the following: | |||
<syntaxhighlight lang=bash> | |||
#gst-inspect-1.0 seiextract | |||
The following pipeline use the seiextract to add GstMeta | Factory Details: | ||
Rank none (0) | |||
Long-name SEI Extract Metadata | |||
Klass Generic | |||
Description Extracts metadata from SEI NAL units | |||
Author Fernando Herrera <fernando.herrera@ridgerun.com> | |||
Plugin Details: | |||
Name sei | |||
Description Gstreamer plugin to add meta-data as SEI NAL units | |||
Filename /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libsei.so | |||
Version 0.1.0 | |||
License Proprietary | |||
Source module gst-sei | |||
Binary package gst-sei | |||
Origin URL Unknown package origin | |||
GObject | |||
+----GInitiallyUnowned | |||
+----GstObject | |||
+----GstElement | |||
+----GstBaseTransform | |||
+----GstSeiExtract | |||
Pad Templates: | |||
SRC template: 'src' | |||
Availability: Always | |||
Capabilities: | |||
video/x-h264 | |||
stream-format: { (string)byte-stream, (string)avc } | |||
SINK template: 'sink' | |||
Availability: Always | |||
Capabilities: | |||
video/x-h264 | |||
stream-format: { (string)byte-stream, (string)avc } | |||
Element has no clocking capabilities. | |||
Element has no URI handling capabilities. | |||
Pads: | |||
SINK: 'sink' | |||
Pad Template: 'sink' | |||
SRC: 'src' | |||
Pad Template: 'src' | |||
Element Properties: | |||
name : The name of the object | |||
flags: readable, writable | |||
String. Default: "seiextract0" | |||
parent : The parent of the object | |||
flags: readable, writable | |||
Object of type "GstObject" | |||
qos : Handle Quality-of-Service events | |||
flags: readable, writable | |||
Boolean. Default: false | |||
signal-new-metadata : Send a signal on new metadata | |||
flags: readable, writable | |||
Boolean. Default: false | |||
Element Signals: | |||
"new-metadata" : void user_function (GstElement* object, | |||
guint arg0, | |||
gpointer arg1, | |||
gpointer user_data); | |||
</syntaxhighlight> | |||
The following pipeline use the seiextract element to add a GstMeta with the message "Hello World" to the output buffe. | |||
<pre> | <pre> | ||
gst-launch-1.0 videotestsrc ! x264enc ! seiinject metadata="Hello World" ! seiextract ! filesink location=seiinject_videotestsrc.h264 -v | gst-launch-1.0 videotestsrc ! x264enc ! seiinject metadata="Hello World" ! seiextract ! filesink location=seiinject_videotestsrc.h264 -v |
edits