RB.Encoder¶
- Implementations:
None
Methods¶
class |
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
|
|
Properties¶
None
Signals¶
Name |
Short Description |
---|---|
Emitted when the encoding process is complete, or when a fatal error has occurred. |
|
Emitted regularly during the encoding process to provide progress updates. |
Fields¶
None
Class Details¶
- class RB.Encoder¶
- Bases:
- Structure:
- classmethod new()¶
- Returns:
the new
RB.Encoder
- Return type:
Creates a new
RB.Encoder
instance.
- cancel()¶
Attempts to cancel any in progress encoding. The encoder should delete the destination file, if it created one, and emit the ‘completed’ signal.
- encode(entry, dest, overwrite, profile)¶
- Parameters:
entry (
RB.RhythmDBEntry
) – theRB.RhythmDBEntry
to transcodedest (
str
) – destination file URIoverwrite (
bool
) – ifTrue
, overwrite dest if it already existsprofile (
GstPbutils.EncodingProfile
) – encoding profile to use, orNone
to just copy
Initiates encoding, transcoding to the specified profile if specified.
Encoding and error reporting takes place asynchronously. The caller should wait for the ‘completed’ signal which indicates it has either completed or failed.
- get_missing_plugins(profile)¶
- Parameters:
profile (
GstPbutils.EncodingProfile
) – an encoding profile- Returns:
True
if some detail strings are returned,False
otherwise- details:
returns plugin installer detail strings
- descriptions:
returns plugin descriptions
- Return type:
Retrieves the plugin installer detail strings and descriptions for any missing plugins required to use the specified encoding profile.
- do_cancel() virtual¶
Attempts to cancel any in progress encoding. The encoder should delete the destination file, if it created one, and emit the ‘completed’ signal.
- do_completed(dest_size, mediatype, error) virtual¶
- Parameters:
dest_size (
int
) –mediatype (
str
) –error (
GLib.Error
) –
- do_encode(entry, dest, overwrite, profile) virtual¶
- Parameters:
entry (
RB.RhythmDBEntry
) – theRB.RhythmDBEntry
to transcodedest (
str
) – destination file URIoverwrite (
bool
) – ifTrue
, overwrite dest if it already existsprofile (
GstPbutils.EncodingProfile
) – encoding profile to use, orNone
to just copy
Initiates encoding, transcoding to the specified profile if specified.
Encoding and error reporting takes place asynchronously. The caller should wait for the ‘completed’ signal which indicates it has either completed or failed.
- do_get_missing_plugins(profile) virtual¶
- Parameters:
profile (
GstPbutils.EncodingProfile
) – an encoding profile- Returns:
True
if some detail strings are returned,False
otherwise- details:
returns plugin installer detail strings
- descriptions:
returns plugin descriptions
- Return type:
Retrieves the plugin installer detail strings and descriptions for any missing plugins required to use the specified encoding profile.
Signal Details¶
- RB.Encoder.signals.completed(encoder, dest_uri, dest_size, mediatype, error)¶
- Signal Name:
completed
- Flags:
- Parameters:
Emitted when the encoding process is complete, or when a fatal error has occurred. The destination file, if one exists, will be closed and flushed to disk before this signal is emitted.
- RB.Encoder.signals.progress(encoder, fraction)¶
- Signal Name:
progress
- Flags:
- Parameters:
encoder (
RB.Encoder
) – The object which received the signalfraction (
float
) – progress as a fraction (0..1)
Emitted regularly during the encoding process to provide progress updates.