GstPlayer.PlayerVideoInfo

g GObject.Object GObject.Object GstPlayer.PlayerStreamInfo GstPlayer.PlayerStreamInfo GObject.Object->GstPlayer.PlayerStreamInfo GstPlayer.PlayerVideoInfo GstPlayer.PlayerVideoInfo GstPlayer.PlayerStreamInfo->GstPlayer.PlayerVideoInfo

Subclasses:

None

Methods

Inherited:

GstPlayer.PlayerStreamInfo (5), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_bitrate ()

get_framerate ()

get_height ()

get_max_bitrate ()

get_pixel_aspect_ratio ()

get_width ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class GstPlayer.PlayerVideoInfo(**kwargs)
Bases:

GstPlayer.PlayerStreamInfo

Abstract:

No

Structure:

GstPlayer.PlayerVideoInfoClass

GstPlayer.PlayerStreamInfo specific to video streams.

get_bitrate()
Returns:

the current bitrate of video in GstPlayer.PlayerVideoInfo or -1 if unknown.

Return type:

int

get_framerate()
Returns:

fps_n:

Numerator of frame rate

fps_d:

Denominator of frame rate

Return type:

(fps_n: int, fps_d: int)

get_height()
Returns:

the height of video in GstPlayer.PlayerVideoInfo or -1 if unknown.

Return type:

int

get_max_bitrate()
Returns:

the maximum bitrate of video in GstPlayer.PlayerVideoInfo or -1 if unknown.

Return type:

int

get_pixel_aspect_ratio()
Returns:

par_n:

numerator

par_d:

denominator

Return type:

(par_n: int, par_d: int)

Returns the pixel aspect ratio in par_n and par_d

get_width()
Returns:

the width of video in GstPlayer.PlayerVideoInfo or -1 if unknown.

Return type:

int