appsrc

The appsrc element can be used by applications to insert data into a GStreamer pipeline. Unlike most GStreamer elements, Appsrc provides external API functions.

For the documentation of the API, please see the

libgstapp section in the GStreamer Plugins Base Libraries documentation.

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──GstBaseSrc
                    ╰──appsrc

Implemented interfaces

Factory details

Authors: – David Schleef , Wim Taymans

Classification:Generic/Source

Rank – none

Plugin – app

Package – GStreamer Base Plug-ins

Pad Templates

src

ANY

Presencealways

Directionsrc

Object typeGstPad


Signals

end-of-stream

GstFlowReturn *
end_of_stream_callback (GstElement * param_0,
                        gpointer udata)
def end_of_stream_callback (param_0, udata):
    #python callback for the 'end-of-stream' signal
function end_of_stream_callback(param_0: GstElement * param_0, udata: gpointer udata): {
    // javascript callback for the 'end-of-stream' signal
}

Parameters:

param_0
No description available
udata
No description available
Returns ( GstFlowReturn * ) –
No description available

Flags: Run Last / Action


enough-data

enough_data_callback (GstElement * param_0,
                      gpointer udata)
def enough_data_callback (param_0, udata):
    #python callback for the 'enough-data' signal
function enough_data_callback(param_0: GstElement * param_0, udata: gpointer udata): {
    // javascript callback for the 'enough-data' signal
}

Parameters:

param_0
No description available
udata
No description available

Flags: Run Last


need-data

need_data_callback (GstElement * param_0,
                    guint arg0,
                    gpointer udata)
def need_data_callback (param_0, arg0, udata):
    #python callback for the 'need-data' signal
function need_data_callback(param_0: GstElement * param_0, arg0: guint arg0, udata: gpointer udata): {
    // javascript callback for the 'need-data' signal
}

Parameters:

param_0
No description available
arg0
No description available
udata
No description available

Flags: Run Last


push-buffer

GstFlowReturn *
push_buffer_callback (GstElement * param_0,
                      GstBuffer * arg0,
                      gpointer udata)
def push_buffer_callback (param_0, arg0, udata):
    #python callback for the 'push-buffer' signal
function push_buffer_callback(param_0: GstElement * param_0, arg0: GstBuffer * arg0, udata: gpointer udata): {
    // javascript callback for the 'push-buffer' signal
}

Parameters:

param_0
No description available
arg0
No description available
udata
No description available
Returns ( GstFlowReturn * ) –
No description available

Flags: Run Last / Action


push-buffer-list

GstFlowReturn *
push_buffer_list_callback (GstElement * param_0,
                           GstBufferList * arg0,
                           gpointer udata)
def push_buffer_list_callback (param_0, arg0, udata):
    #python callback for the 'push-buffer-list' signal
function push_buffer_list_callback(param_0: GstElement * param_0, arg0: GstBufferList * arg0, udata: gpointer udata): {
    // javascript callback for the 'push-buffer-list' signal
}

Parameters:

param_0
No description available
arg0
No description available
udata
No description available
Returns ( GstFlowReturn * ) –
No description available

Flags: Run Last / Action


push-sample

GstFlowReturn *
push_sample_callback (GstElement * param_0,
                      GstSample * arg0,
                      gpointer udata)
def push_sample_callback (param_0, arg0, udata):
    #python callback for the 'push-sample' signal
function push_sample_callback(param_0: GstElement * param_0, arg0: GstSample * arg0, udata: gpointer udata): {
    // javascript callback for the 'push-sample' signal
}

Parameters:

param_0
No description available
arg0
No description available
udata
No description available
Returns ( GstFlowReturn * ) –
No description available

Flags: Run Last / Action


seek-data

gboolean
seek_data_callback (GstElement * param_0,
                    guint64 arg0,
                    gpointer udata)
def seek_data_callback (param_0, arg0, udata):
    #python callback for the 'seek-data' signal
function seek_data_callback(param_0: GstElement * param_0, arg0: guint64 arg0, udata: gpointer udata): {
    // javascript callback for the 'seek-data' signal
}

Parameters:

param_0
No description available
arg0
No description available
udata
No description available
Returns ( gboolean ) –
No description available

Flags: Run Last


Properties

block

“block” gboolean

Block push-buffer when max-bytes are queued

Flags : Read / Write

Default value : false


caps

“caps” GstCaps *

The allowed caps for the src pad

Flags : Read / Write


current-level-bytes

“current-level-bytes” guint64

The number of currently queued bytes

Flags : Read

Default value : 0


duration

“duration” guint64

The duration of the data stream in nanoseconds (GST_CLOCK_TIME_NONE if unknown)

Flags : Read / Write

Default value : 18446744073709551615


emit-signals

“emit-signals” gboolean

Emit need-data, enough-data and seek-data signals

Flags : Read / Write

Default value : true


format

“format” GstFormat *

The format of the segment events and seek

Flags : Read / Write

Default value : bytes (2)


is-live

“is-live” gboolean

Whether to act as a live source

Flags : Read / Write

Default value : false


max-bytes

“max-bytes” guint64

The maximum number of bytes to queue internally (0 = unlimited)

Flags : Read / Write

Default value : 200000


max-latency

“max-latency” gint64

The maximum latency (-1 = unlimited)

Flags : Read / Write

Default value : 18446744073709551615


min-latency

“min-latency” gint64

The minimum latency (-1 = default)

Flags : Read / Write

Default value : 18446744073709551615


min-percent

“min-percent” guint

Emit need-data when queued bytes drops below this percent of max-bytes

Flags : Read / Write

Default value : 0


size

“size” gint64

The size of the data stream in bytes (-1 if unknown)

Flags : Read / Write

Default value : 18446744073709551615


stream-type

“stream-type” GstAppStreamType *

the type of the stream

Flags : Read / Write

Default value : stream (0)


The results of the search are