Difference between revisions of "GstSEIMetadata/Examples/Using Gstd"

From RidgeRun Developer Connection
Jump to: navigation, search
m
Line 6: Line 6:
  
 
The following is an example of how to insert metadata and receive a signal using gstd and the GstSEI plugin.
 
The following is an example of how to insert metadata and receive a signal using gstd and the GstSEI plugin.
Make sure you have gstd [https://developer.ridgerun.com/wiki/index.php?title=GStreamer_Daemon_-_GStreamer_Daemon_Basics gstd].
+
Make sure you have [https://developer.ridgerun.com/wiki/index.php?title=GStreamer_Daemon_-_GStreamer_Daemon_Basics gstd].
  
 
Now start the daemon
 
Now start the daemon

Revision as of 14:03, 2 July 2021


Previous: Examples/Using gst-launch Index Next: Examples/C Example






The following is an example of how to insert metadata and receive a signal using gstd and the GstSEI plugin. Make sure you have gstd.

Now start the daemon

gstd -e

Start the client

gstd-client

Create a pipeline like this one.

pipeline_create p videotestsrc is-live=true ! x264enc ! seimetatester ! seiinject ! seiextract signal-new-metadata=true name=extract ! fakesink

Play it

pipeline_play p

Then receive the signal

signal_connect p extract new-metadata

The expected output is something similar to this:

{
  "code" : 0,
  "description" : "Success",
  "response" : {
    "name" : "new-metadata",
    "arguments" : [
        {
            "type" : "GstSeiExtract",
            "value" : "(GstSeiExtract) extract"
        },
        {
            "type" : "guint",
            "value" : 8
        },
        {
            "type" : "gpointer",
            "value" : "((gpointer) 0x7fdb9000fdc0)"
        }
    ]
}
}


Previous: Examples/Using gst-launch Index Next: Examples/C Example