GES.TestClip¶
- 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:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
The frequency to generate. See audiotestsrc element |
||
r/w/c |
Mute audio track |
||
r/w/c |
The volume of the test audio signal. |
||
r/w/c |
Which video pattern to display. See videotestsrc element |
Signals¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GES.TestClip(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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 orint
.- classmethod new()[source]¶
- Returns:
The newly created
GES.TestClip
, orNone
if there was an error.- Return type:
GES.TestClip
orNone
Creates a new
GES.TestClip
.
- classmethod new_for_nick(nick)[source]¶
- Parameters:
nick (
str
) – the nickname for which to create theGES.TestClip
- Returns:
The newly created
GES.TestClip
, orNone
if there was an error.- Return type:
GES.TestClip
orNone
Creates a new
GES.TestClip
for the provided nick.
- get_frequency()[source]¶
- Returns:
The frequency self generates. See audiotestsrc element.
- Return type:
Get the frequency self generates.
- get_volume()[source]¶
- Returns:
The volume of the test audio signal applied on self.
- Return type:
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:
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:
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_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
) – theGES.VideoTestPattern
to use on self
Sets which video pattern to display on self.
Property Details¶
- GES.TestClip.props.freq¶
-
The frequency to generate for audio track elements.
- GES.TestClip.props.mute¶
-
Whether the sound will be played or not.
- GES.TestClip.props.volume¶
-
The volume for the audio track elements.
- GES.TestClip.props.vpattern¶
- Name:
vpattern
- Type:
- Default Value:
- Flags:
Video pattern to display in video track elements.