GstPbutils.AudioVisualizer

g GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gst.Element Gst.Element GstPbutils.AudioVisualizer GstPbutils.AudioVisualizer Gst.Element->GstPbutils.AudioVisualizer Gst.Object->Gst.Element

Subclasses:

None

Methods

Inherited:

Gst.Element (81), Gst.Object (27), GObject.Object (37)

Structs:

Gst.ElementClass (10), GObject.ObjectClass (5)

Virtual Methods

Inherited:

Gst.Element (16), Gst.Object (1), GObject.Object (7)

do_decide_allocation (query)

do_render (audio, video)

do_setup ()

Properties

Inherited:

Gst.Object (2)

Name

Type

Flags

Short Description

shade-amount

int

r/w

Shading color to use (big-endian ARGB)

shader

GstPbutils.AudioVisualizerShader

r/w

Shader function to apply on each frame

Signals

Inherited:

Gst.Element (3), Gst.Object (1), GObject.Object (1)

Fields

Inherited:

Gst.Element (3), Gst.Object (1), GObject.Object (1)

Name

Type

Access

Description

ainfo

GstAudio.AudioInfo

r

parent

Gst.Element

r

req_spf

int

r

vinfo

GstVideo.VideoInfo

r

Class Details

class GstPbutils.AudioVisualizer(**kwargs)
Bases:

Gst.Element

Abstract:

Yes

Structure:

GstPbutils.AudioVisualizerClass

A baseclass for scopes (visualizers). It takes care of re-fitting the audio-rate to video-rate and handles renegotiation (downstream video size changes).

It also provides several background shading effects. These effects are applied to a previous picture before the render() implementation can draw a new frame.

do_decide_allocation(query) virtual
Parameters:

query (Gst.Query) –

Return type:

bool

do_render(audio, video) virtual
Parameters:
Return type:

bool

do_setup() virtual
Return type:

bool

Property Details

GstPbutils.AudioVisualizer.props.shade_amount
Name:

shade-amount

Type:

int

Default Value:

657930

Flags:

READABLE, WRITABLE

Shading color to use (big-endian ARGB)

GstPbutils.AudioVisualizer.props.shader
Name:

shader

Type:

GstPbutils.AudioVisualizerShader

Default Value:

GstPbutils.AudioVisualizerShader.FADE

Flags:

READABLE, WRITABLE

Shader function to apply on each frame