GES.TestClip

g GES.Clip GES.Clip GES.SourceClip GES.SourceClip GES.Clip->GES.SourceClip GES.Container GES.Container GES.Container->GES.Clip GES.Extractable GES.Extractable GES.TimelineElement GES.TimelineElement GES.Extractable->GES.TimelineElement GES.MetaContainer GES.MetaContainer GES.MetaContainer->GES.TimelineElement GES.TestClip GES.TestClip GES.SourceClip->GES.TestClip GES.TimelineElement->GES.Container GObject.GInterface GObject.GInterface GObject.GInterface->GES.Extractable GObject.GInterface->GES.MetaContainer GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->GES.TimelineElement GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned

Subclasses:

None

Methods

Inherited:

GES.SourceClip (1), GES.Clip (23), GES.Container (6), GES.TimelineElement (38), GObject.Object (37), GES.Extractable (3), GES.MetaContainer (40)

Structs:

GObject.ObjectClass (5)

class

new ()

class

new_for_nick (nick)

get_frequency ()

get_volume ()

get_vpattern ()

is_muted ()

set_frequency (freq)

set_mute (mute)

set_volume (volume)

set_vpattern (vpattern)

Virtual Methods

Inherited:

GES.Clip (2), GES.Container (6), GES.TimelineElement (18), GObject.Object (7), GES.Extractable (3)

Properties

Inherited:

GES.Clip (3), GES.Container (1), GES.TimelineElement (9)

Name

Type

Flags

Short Description

freq

float

r/w/c

The frequency to generate. See audiotestsrc element

mute

bool

r/w/c

Mute audio track

volume

float

r/w/c

The volume of the test audio signal.

vpattern

GES.VideoTestPattern

r/w/c

Which video pattern to display. See videotestsrc element

Signals

Inherited:

GES.Container (2), GES.TimelineElement (3), GObject.Object (1), GES.MetaContainer (1)

Fields

Inherited:

GES.Container (2), GES.TimelineElement (3), GObject.Object (1), GES.MetaContainer (1)

Name

Type

Access

Description

parent

GES.SourceClip

r

Class Details

class GES.TestClip(**kwargs)
Bases:

GES.SourceClip

Abstract:

No

Structure:

GES.TestClipClass

Useful for testing purposes.

Asset

The default asset ID is GES.TestClip, but the framerate and video size can be overridden using an ID of the form:

`` framerate=60/1, width=1920, height=1080, max-duration=5.0 `` Note: max-duration can be provided in seconds as float, or as GstClockTime as guint64 or int.

classmethod new()[source]
Returns:

The newly created GES.TestClip, or None if there was an error.

Return type:

GES.TestClip or None

Creates a new GES.TestClip.

classmethod new_for_nick(nick)[source]
Parameters:

nick (str) – the nickname for which to create the GES.TestClip

Returns:

The newly created GES.TestClip, or None if there was an error.

Return type:

GES.TestClip or None

Creates a new GES.TestClip for the provided nick.

get_frequency()[source]
Returns:

The frequency self generates. See audiotestsrc element.

Return type:

float

Get the frequency self generates.

get_volume()[source]
Returns:

The volume of the test audio signal applied on self.

Return type:

float

Get the volume of the test audio signal applied on self.

get_vpattern()[source]
Returns:

The GES.VideoTestPattern which is applied on self.

Return type:

GES.VideoTestPattern

Get the GES.VideoTestPattern which is applied on self.

is_muted()[source]
Returns:

Whether the audio track of self is muted or not.

Return type:

bool

Let you know if the audio track of self is muted or not.

set_frequency(freq)[source]
Parameters:

freq (float) – the frequency you want to use on self

Sets the frequency to generate. See audiotestsrc element.

set_mute(mute)[source]
Parameters:

mute (bool) – True to mute the audio track, False to unmute it

Sets whether the audio track of this clip is muted or not.

set_volume(volume)[source]
Parameters:

volume (float) – the volume of the audio signal you want to use on self

Sets the volume of the test audio signal.

set_vpattern(vpattern)[source]
Parameters:

vpattern (GES.VideoTestPattern) – the GES.VideoTestPattern to use on self

Sets which video pattern to display on self.

Property Details

GES.TestClip.props.freq
Name:

freq

Type:

float

Default Value:

440.0

Flags:

READABLE, WRITABLE, CONSTRUCT

The frequency to generate for audio track elements.

GES.TestClip.props.mute
Name:

mute

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, CONSTRUCT

Whether the sound will be played or not.

GES.TestClip.props.volume
Name:

volume

Type:

float

Default Value:

1.0

Flags:

READABLE, WRITABLE, CONSTRUCT

The volume for the audio track elements.

GES.TestClip.props.vpattern
Name:

vpattern

Type:

GES.VideoTestPattern

Default Value:

GES.VideoTestPattern.SMPTE

Flags:

READABLE, WRITABLE, CONSTRUCT

Video pattern to display in video track elements.