originalbuffersave

GStreamer elements to store the original buffer and restore it later

In many analysis scenario (for example machine learning), it is desirable to use a pre-processed buffer, for example by lowering the resolution, but we may want to take the output of this analysis, and apply it to the original buffer.

These elements do just this, the typical usage would be a pipeline like:

... ! originalbuffersave ! videoconvertscale ! video/x-raw, width=100, height=100 ! analysiselement ! originalbufferrestore ! ...

The originalbufferrestore element will "restore" the buffer that was entered to the "save" element, but will keep any metadata that was added later.

When using the "interval" property, it will ensure that the interval between two buffers is at least that amount of time. This makes it possible to reduce the effective buffer rate (framerate) for the following elements, for example of a processing step takes a fixed amount of time, it will ensure that the pipeline is not overwhelmed. The "slack" is accumulated, so that if the incoming flow of buffers is just a little too fast, the buffer rate is not halved.

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──originalbuffersave

Factory details

Authors: – Olivier Crête

Classification: – Generic

Rank – none

Plugin – originalbuffer

Package – gst-plugin-originalbuffer

Pad Templates

sink

ANY

Presence – always

Direction – sink

Object type – GstPad


src

ANY

Presence – always

Direction – src

Object type – GstPad


Properties

interval

“interval” guint64

Time interval between two forwarded buffers, replaces buffers with GAP events under this minimum, accumulating slack

Flags : Read / Write

Default value : 0


The results of the search are