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

Factory details

Authors: – David Schleef , Wim Taymans

Classification:Generic/Source

Rank – none

Plugin – gstapp

Package – GStreamer Base Plug-ins git

Pad Templates

src

ANY

Presencealways

Directionsrc


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:


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:


need-data

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

Parameters:

param_0
No description available
param_1
No description available
udata
No description available

Flags:


push-buffer

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

Parameters:

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

Flags:


push-buffer-list

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

Parameters:

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

Flags:


push-sample

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

Parameters:

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

Flags:


seek-data

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

Parameters:

param_0
No description available
param_1
No description available
udata
No description available
Returns ( gboolean * ) –
No description available

Flags:


Properties

block

“block” gboolean *

Block push-buffer when max-bytes are queued

Flags : Read / Write

Default value : false


blocksize

“blocksize” guint *

Size in bytes to read per buffer (-1 = default)

Flags : Read / Write

Default value : 4096


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


do-timestamp

“do-timestamp” gboolean *

Apply current stream time to buffers

Flags : Read / Write

Default value : false


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” Format

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


name

“name” gchararray *

The name of the object

Flags : Read / Write / Construct

Default value : NULL


num-buffers

“num-buffers” gint *

Number of buffers to output before sending EOS (-1 = unlimited)

Flags : Read / Write

Default value : -1


parent

“parent” GstObject *

The parent of the object

Flags : Read / Write


size

“size” gint64 *

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

Flags : Read / Write

Default value : 18446744073709551615


stream-type

“stream-type” App-stream-type

the type of the stream

Flags : Read / Write

Default value : stream (0)


typefind

“typefind” gboolean *

Run typefind before negotiating (deprecated, non-functional)

Flags : Read / Write

Default value : false


Named constants

App-stream-type

Members

stream (0) – GST_APP_STREAM_TYPE_STREAM
seekable (1) – GST_APP_STREAM_TYPE_SEEKABLE
random-access (2) – GST_APP_STREAM_TYPE_RANDOM_ACCESS

Flow-return

Members

custom-success-2 (102) – GST_FLOW_CUSTOM_SUCCESS_2
custom-success-1 (101) – GST_FLOW_CUSTOM_SUCCESS_1
custom-success (100) – GST_FLOW_CUSTOM_SUCCESS
ok (0) – GST_FLOW_OK
not-linked (-1) – GST_FLOW_NOT_LINKED
flushing (-2) – GST_FLOW_FLUSHING
eos (-3) – GST_FLOW_EOS
not-negotiated (-4) – GST_FLOW_NOT_NEGOTIATED
error (-5) – GST_FLOW_ERROR
not-supported (-6) – GST_FLOW_NOT_SUPPORTED
custom-error (-100) – GST_FLOW_CUSTOM_ERROR
custom-error-1 (-101) – GST_FLOW_CUSTOM_ERROR_1
custom-error-2 (-102) – GST_FLOW_CUSTOM_ERROR_2

Format

Members

undefined (0) – GST_FORMAT_UNDEFINED
default (1) – GST_FORMAT_DEFAULT
bytes (2) – GST_FORMAT_BYTES
time (3) – GST_FORMAT_TIME
buffers (4) – GST_FORMAT_BUFFERS
percent (5) – GST_FORMAT_PERCENT

The results of the search are