Enums¶
Details¶
- class GstTranscoder.TranscoderError(value)¶
Bases:
GObject.GEnum
- classmethod get_name(error)¶
- Parameters:
error (
GstTranscoder.TranscoderError
) – aGstTranscoder.TranscoderError
- Returns:
a string with the given error.
- Return type:
Gets a string representing the given error.
- FAILED = 0¶
generic error.
- class GstTranscoder.TranscoderMessage(value)¶
Bases:
GObject.GEnum
Types of messages that will be posted on the transcoder API bus.
See also
GstTranscoder.Transcoder.get_message_bus
()New in version 1.20.
- classmethod get_name(message)¶
- Parameters:
message (
GstTranscoder.TranscoderMessage
) – aGstTranscoder.TranscoderMessage
- Return type:
Returns (transfer none): The message name
New in version 1.20.
- classmethod parse_duration(msg)¶
- Parameters:
msg (
Gst.Message
) – AGst.Message
- Returns:
the resulting duration
- Return type:
duration:
int
Parse the given duration msg and extract the corresponding #GstClockTime
New in version 1.20.
- classmethod parse_error(msg)¶
- Parameters:
msg (
Gst.Message
) – AGst.Message
- Returns:
- error:
the resulting error
- details:
(transfer full): A
Gst.Structure
containing extra details about the error
- Return type:
(error:
GLib.Error
, details:Gst.Structure
)
Parse the given error msg and extract the corresponding
GLib.Error
New in version 1.20.
- classmethod parse_position(msg)¶
- Parameters:
msg (
Gst.Message
) – AGst.Message
- Returns:
the resulting position
- Return type:
position:
int
Parse the given position msg and extract the corresponding #GstClockTime
New in version 1.20.
- classmethod parse_state(msg)¶
- Parameters:
msg (
Gst.Message
) – AGst.Message
- Returns:
the resulting state
- Return type:
Parse the given state msg and extract the corresponding
GstTranscoder.TranscoderState
New in version 1.20.
- classmethod parse_warning(msg)¶
- Parameters:
msg (
Gst.Message
) – AGst.Message
- Returns:
- error:
the resulting warning
- details:
(transfer full): A
Gst.Structure
containing extra details about the warning
- Return type:
(error:
GLib.Error
, details:Gst.Structure
)
Parse the given error msg and extract the corresponding
GLib.Error
warningNew in version 1.20.
- POSITION_UPDATED = 0¶
Sink position changed
- DURATION_CHANGED = 1¶
Duration of stream changed
- STATE_CHANGED = 2¶
Pipeline state changed
- DONE = 3¶
Transcoding is done
- ERROR = 4¶
Message contains an error
- WARNING = 5¶
Message contains an error
- class GstTranscoder.TranscoderState(value)¶
Bases:
GObject.GEnum
High level representation of the transcoder pipeline state.
New in version 1.20.
- classmethod get_name(state)¶
- Parameters:
state (
GstTranscoder.TranscoderState
) – aGstTranscoder.TranscoderState
- Returns:
a string with the name of the state.
- Return type:
Gets a string representing the given state.
New in version 1.20.
- STOPPED = 0¶
the transcoder is stopped.
- PAUSED = 1¶
the transcoder is paused.
- PLAYING = 2¶
the transcoder is currently transcoding a stream.