Skip to content

Job

Source: src/AWS/MediaConvert/Job.ts

An AWS Elemental MediaConvert transcode job — a one-shot request to convert an input in S3 into one or more outputs. Jobs are immutable once submitted: they run to COMPLETE, ERROR, or CANCELED on their own. Deleting the resource cancels the job only if it is still SUBMITTED or PROGRESSING.

A live job is slow and billable — it requires input/output S3 objects and an IAM role MediaConvert can assume. Drive it behind an environment gate in tests rather than on every run.

const job = yield* MediaConvert.Job("Transcode", {
role: mediaConvertRole.roleArn,
jobTemplate: template.jobTemplateName,
settings: {
Inputs: [{ FileInput: "s3://my-bucket/input.mp4" }],
OutputGroups: [
{
OutputGroupSettings: {
Type: "FILE_GROUP_SETTINGS",
FileGroupSettings: { Destination: "s3://my-bucket/out/" },
},
Outputs: [{ Preset: preset.presetName }],
},
],
},
});