Tasks¶
Tasks.
-
class
EncodeMedia
¶ Encode a
MediaBase
model’sinput_file
.-
run
(profile, media_id, input_path, output_path)¶ Execute the task.
Parameters: - profile (
EncodingProfile
) – TheEncodingProfile
instance. - media_id (int) – The primary key of the
MediaBase
model. - input_path (str) –
- output_path –
Return type: Returns: Dictionary with
id
(media object’s id) andprofile
(encoding profile instance).- profile (
-