CmdID / aws / aws mediaconvert
aws mediaconvert get-job
Retrieve the JSON for a specific transcoding job. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To get details for a particular job
The following get-job example requests the information for the job with ID 1234567890987-1ab2c3, which in this example ended in an error.
aws mediaconvert get-job --endpoint-url https://abcd1234.mediaconvert.region-name-1.amazonaws.com --id 1234567890987-1ab2c3Identify--endpoint-urlOverride command's default URL with the given URL.--idthe job ID of the job.To get your account-specific endpoint, use describe-endpoints, or send the command without the endpoint. The service returns an error and your endpoint.
If your request is successful, the service returns a JSON file with job information, including job settings, any returned errors, and other job data.
Its output, shortened
{
"Job": {
"Status": "ERROR",
"Queue": "arn:aws:mediaconvert:region-name-1:123456789012:queues/Queue1",
"Settings": {
"Inputs": [
{
"FileInput": "s3://amzn-s3-demo-bucket/file-name.mp4"
}
],
"OutputGroups": [
{
"Name": "File Group",
"OutputGroupSettings": {
"Type": "FILE_GROUP_SETTINGS",
"FileGroupSettings": {
"Destination": "s3://amzn-s3-demo-bucket/output/"
}
},
"Outputs": [
{
"Extension": "mp4",
"NameModifier": "_720p",
"Preset": "System-Generic_Hd_Mp4_Avc_Aac_16x9_Sdr_1280x720p_30Hz_5Mbps_Qvbr_Vq9"
}
]
}
]
},
"ErrorMessage": "Unable to open input file [s3://amzn-s3-demo-bucket/file-name.mp4]: [Failed probe/open: [Failed to read data: AssumeRole failed]]",
… 13 more linesFor more information, see Working with jobs in the AWS Elemental MediaConvert User Guide.
Options
--idthe job ID of the job.