具有 INPUT_INFORMATION 狀態的事件 - MediaConvert

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

具有 INPUT_INFORMATION 狀態的事件

MediaConvert 會在INPUT_INFORMATION任務開始處理和 MediaConvert 讀取您輸入的資訊後, 傳送 的事件。事件主要包含您輸入的媒體資訊,例如影格高度和寬度、影格速率和編解碼器。

MediaConvert 包含單一事件中所有輸入的資訊。

以下是包含具有單一輸入之任務INPUT_INFORMATION狀態JSON的範例事件。

{ "version": "0", "id": "1234abcd-12ab-34cd-56ef-1234567890ab", "detail-type": "MediaConvert Job State Change", "source": "aws.mediaconvert", "account": "111122223333", "time": "2022-12-19T19:07:12Z", "region": "us-west-2", "resources": [ "arn:aws:mediaconvert:us-west-2:111122223333:jobs/1671476818694-phptj0" ], "detail": { "timestamp": 1671476832075, "accountId": "111122223333", "queue": "arn:aws:mediaconvert:us-west-2:111122223333:queues/Default", "jobId": "1671476818694-phptj0", "status": "INPUT_INFORMATION", "userMetadata": {}, "inputDetails": [ { "id": 1, "uri": "s3://amzn-s3-demo-bucket/file/file.mp4", "audio": [ { "channels": 2, "codec": "AAC", "language": "UND", "sampleRate": 44100, "streamId": 2 } ], "video": [ { "bitDepth": 8, "codec": "H_264", "colorFormat": "YUV_420", "fourCC": "avc1", "frameRate": 24, "height": 1080, "interlaceMode": "PROGRESSIVE", "sar": "1:1", "standard": "UNSPECIFIED", "streamId": 1, "width": 1920 } ] } ] } }

您可以使用下列範例JSON,為狀態為 的任務建立 EventBridge 事件模式INPUT_INFORMATION

{ "source": ["aws.mediaconvert"], "detail-type": ["MediaConvert Job State Change"], "detail": { "status": ["INPUT_INFORMATION"] } }