Skip to content

Preset

Source: src/AWS/MediaConvert/Preset.ts

An AWS Elemental MediaConvert output preset — a reusable, named bundle of output settings (container, video codec/resolution/bitrate, audio, and captions) that job templates and jobs reference to produce one output.

const preset = yield* MediaConvert.Preset("Mp4", {
description: "1080p H.264 MP4",
settings: {
ContainerSettings: { Container: "MP4" },
VideoDescription: {
Width: 1920,
Height: 1080,
CodecSettings: {
Codec: "H_264",
H264Settings: { RateControlMode: "QVBR", MaxBitrate: 5000000 },
},
},
AudioDescriptions: [
{
CodecSettings: {
Codec: "AAC",
AacSettings: {
Bitrate: 96000,
CodingMode: "CODING_MODE_2_0",
SampleRate: 48000,
},
},
},
],
},
});