GstRtp.RTPBaseDepayload¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Whether RTP header extensions should be automatically enabled, if an implementation is available |
||
r/w |
Max seqnum reorder before assuming sender has restarted |
||
r/w |
Add RTP source information as buffer meta |
||
r |
Various statistics |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Add ext as an extension for reading part of an RTP header extension from incoming RTP packets. |
|
Clear all RTP header extensions used by this depayloader. |
|
The returned ext must be configured with the correct ext_id and with the necessary attributes as required by the extension implementation. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
clock_rate |
r |
||
need_newsegment |
r |
||
parent |
r |
||
segment |
r |
||
sinkpad |
r |
||
srcpad |
r |
Class Details¶
- class GstRtp.RTPBaseDepayload(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Provides a base class for RTP depayloaders
- is_source_info_enabled()¶
-
Queries whether
GstRtp.RTPSourceMeta
will be added to depayloaded buffers.New in version 1.16.
- push(out_buf)¶
- Parameters:
out_buf (
Gst.Buffer
) – aGst.Buffer
- Returns:
- Return type:
Push out_buf to the peer of self. This function takes ownership of out_buf.
This function will by default apply the last incoming timestamp on the outgoing buffer when it didn’t have a timestamp already.
- push_list(out_list)¶
- Parameters:
out_list (
Gst.BufferList
) – aGst.BufferList
- Returns:
- Return type:
Push out_list to the peer of self. This function takes ownership of out_list.
- set_source_info_enabled(enable)¶
- Parameters:
enable (
bool
) – whether to add meta about RTP sources to buffer
Enable or disable adding
GstRtp.RTPSourceMeta
to depayloaded buffers.New in version 1.16.
- do_process(in_) virtual¶
- Parameters:
in (
Gst.Buffer
) –- Return type:
- do_process_rtp_packet(rtp_buffer) virtual¶
- Parameters:
rtp_buffer (
GstRtp.RTPBuffer
) –- Return type:
Signal Details¶
- GstRtp.RTPBaseDepayload.signals.add_extension(r_t_p_base_depayload, ext)¶
- Signal Name:
add-extension
- Flags:
- Parameters:
r_t_p_base_depayload (
GstRtp.RTPBaseDepayload
) – The object which received the signalext (
GstRtp.RTPHeaderExtension
) – theGstRtp.RTPHeaderExtension
Add ext as an extension for reading part of an RTP header extension from incoming RTP packets.
New in version 1.20.
- GstRtp.RTPBaseDepayload.signals.clear_extensions(r_t_p_base_depayload)¶
- Signal Name:
clear-extensions
- Flags:
- Parameters:
r_t_p_base_depayload (
GstRtp.RTPBaseDepayload
) – The object which received the signal
Clear all RTP header extensions used by this depayloader.
New in version 1.20.
- GstRtp.RTPBaseDepayload.signals.request_extension(r_t_p_base_depayload, ext_id, ext_uri)¶
- Signal Name:
request-extension
- Flags:
- Parameters:
r_t_p_base_depayload (
GstRtp.RTPBaseDepayload
) – The object which received the signalext_id (
int
) – the extension id being requested
- Returns:
the
GstRtp.RTPHeaderExtension
for ext_id, orNone
- Return type:
The returned ext must be configured with the correct ext_id and with the necessary attributes as required by the extension implementation.
New in version 1.20.
Property Details¶
- GstRtp.RTPBaseDepayload.props.auto_header_extension¶
-
If enabled, the depayloader will automatically try to enable all the RTP header extensions provided in the sink caps, saving the application the need to handle these extensions manually using the
GstRtp.RTPBaseDepayload
::request-extension
: signal.New in version 1.20.
- GstRtp.RTPBaseDepayload.props.max_reorder¶
-
Max seqnum reorder before the sender is assumed to have restarted.
When max-reorder is set to 0 all reordered/duplicate packets are considered coming from a restarted sender.
New in version 1.18.
- GstRtp.RTPBaseDepayload.props.source_info¶
-
Add RTP source information found in RTP header as meta to output buffer.
New in version 1.16.
- GstRtp.RTPBaseDepayload.props.stats¶
- Name:
stats
- Type:
- Default Value:
- Flags:
Various depayloader statistics retrieved atomically (and are therefore synchroized with each other). This property return a
Gst.Structure
named application/x-rtp-depayload-stats containing the following fields relating to the last processed buffer and current state of the stream being depayloaded:clock-rate
:GObject.TYPE_UINT
, clock-rate of the streamnpt-start
:GObject.TYPE_UINT64
, time of playback startnpt-stop
:GObject.TYPE_UINT64
, time of playback stopplay-speed
:GObject.TYPE_DOUBLE
, the playback speedplay-scale
:GObject.TYPE_DOUBLE
, the playback scalerunning-time-dts
:GObject.TYPE_UINT64
, the last running-time of the last DTSrunning-time-pts
:GObject.TYPE_UINT64
, the last running-time of the last PTSseqnum
:GObject.TYPE_UINT
, the last seen seqnumtimestamp
:GObject.TYPE_UINT
, the last seen RTP timestamp