AWS Elemental MediaConvert CreateJob Example Using the Amazon CLI
A job does the work of transcoding a media file. When you create a job using the Amazon CLI, you specify the endpoint, region, and job settings that AWS Elemental MediaConvert requires to perform the transcoding.
To create a transcoding job using the Amazon CLI:
-
Use
describe-endpoints
to get your endpoint. In this example, the Amazon Region is set toap-northeast-3
:aws mediaconvert describe-endpoints \ --region
ap-northeast-3
-
Use the
--endpoint-url
option to send your request to your endpoint. Also specify your job settings with--cli-input-json
:aws mediaconvert create-job \ --endpoint-url
https://abcd1234.mediaconvert.region-name-1.amazonaws.com
\ --regionregion-name-1
\ --cli-input-jsonfile://job.json
In the preceding example,
job.json
specifies your job settings. You can use the MediaConvert console to generate the JSON job specification. For more information and sample job specifications, see Creating Your Job Specification.For more information about how to create a job using the Amazon CLI, see the Amazon CLI command reference
.