GstVideo.VideoAggregator¶
- Subclasses:
None
Methods¶
- Inherited:
GstBase.Aggregator (16), Gst.Element (82), Gst.Object (27), GObject.Object (37)
- Structs:
Virtual Methods¶
|
|
|
|
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Always operate in live mode and aggregate on timeout regardless of whether any live sources are linked upstream |
Signals¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
aggregator |
r |
||
info |
r |
The |
Class Details¶
- class GstVideo.VideoAggregator(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
VideoAggregator can accept AYUV, ARGB and BGRA video streams. For each of the requested sink pads it will compare the incoming geometry and framerate to define the output parameters. Indeed output video frames will have the geometry of the biggest incoming video stream and the framerate of the fastest incoming one.
VideoAggregator will do colorspace conversion.
Zorder for each input stream can be configured on the
GstVideo.VideoAggregatorPad
.New in version 1.16.
- get_execution_task_pool()[source]¶
- Returns:
the
Gst.TaskPool
that can be used by subclasses for performing concurrent operations- Return type:
The returned
Gst.TaskPool
is used internally for performing parallel video format conversions/scaling/etc during the #GstVideoAggregatorPadClass::prepare_frame_start() process. Subclasses can add their own operation to perform using the returnedGst.TaskPool
during #GstVideoAggregatorClass::aggregate_frames().New in version 1.20.
- do_aggregate_frames(outbuffer) virtual¶
- Parameters:
outbuffer (
Gst.Buffer
) –- Return type:
Lets subclasses aggregate frames that are ready. Subclasses should iterate the Gst.Element.sinkpads and use the already mapped
GstVideo.VideoFrame
fromGstVideo.VideoAggregatorPad.get_prepared_frame
() or directly use theGst.Buffer
fromGstVideo.VideoAggregatorPad.get_current_buffer
() if it needs to map the buffer in a special way. The result of the aggregation should land in outbuffer.
- do_create_output_buffer(outbuffer) virtual¶
- Parameters:
outbuffer (
Gst.Buffer
) –- Return type:
Optional. Lets subclasses provide a
Gst.Buffer
to be used as outbuffer of the #aggregate_frames vmethod.
- do_find_best_format(downstream_caps, best_info) virtual¶
- Parameters:
downstream_caps (
Gst.Caps
) –best_info (
GstVideo.VideoInfo
) –
- Return type:
at_least_one_alpha:
bool
Property Details¶
- GstVideo.VideoAggregator.props.force_live¶
- Name:
force-live
- Type:
- Default Value:
- Flags:
Causes the element to aggregate on a timeout even when no live source is connected to its sinks. See
GstBase.Aggregator
:min-upstream-latency
for a companion property: in the vast majority of cases where you plan to plug in live sources with a non-zero latency, you should set it to a non-zero value.New in version 1.22.