

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

# 具有影格擷取輸出的檔案群組
<a name="file-group-with-frame-capture-output"></a>

本指南為`COMPLETE`狀態為 的任務提供 Amazon EventBridge 範例事件。它也會顯示具有影格擷取輸出之檔案群組的輸出檔案路徑資訊。

*影格擷取輸出*是您設定用來建立視訊靜態影像的輸出。您可以設定它，類似於一般**檔案群組**輸出群組。不過，您移除音訊元件，選擇**容器**沒有容器，然後選擇視訊轉碼器的影**格擷取至 JPEG**。

**注意**  
您只能在具有一般音訊和視訊輸出的任務中建立影格擷取輸出。MediaConvert 不支援僅由影格擷取輸出組成的任務。

當您建立影格擷取輸出時，`COMPLETE`狀態會包含 `outputFilePaths` 屬性。這會告訴您最終擷取影像的檔案名稱和路徑。

**提示**  
由於該服務包含了影格擷取檔案名稱中的自動編號，您可以從最後一個影像名稱推斷所有的影像名稱。例如，如果您的 `outputFilePaths`​ 值為 `s3://amzn-s3-demo-bucket/frameoutput/file.0000036.jpg`，您便可推斷相同位置中有另外 35 個影像，並名為 `file.0000001`、`file.0000002`，依此類推。

以下是`COMPLETE`狀態為 之任務的 EventBridge 範例事件。它包含具有影格擷取輸出之檔案群組的輸出檔案路徑資訊。

```
{
    "detail": {
        "status": "COMPLETE",
        "paddingInserted": 0,
        "blackVideoDetected": 10,
        "blackSegments": [
                {
                    "start": 0,
                    "end": 10
                }
        ],
        "outputGroupDetails": [
            {
                "outputDetails": [
                    {
                        "outputFilePaths": [
                            "s3://amzn-s3-demo-bucket/frameoutput/file.0000036.jpg"
                        ],
                        "durationInMs": 185000,
                        "videoDetails": {
                            "widthInPx": 1280,
                            "heightInPx": 720
                        }
                    }
                ],
                "type": "FILE_GROUP"
            },
            {
                "outputDetails": [
                    {
                        "outputFilePaths": [
                            "s3://amzn-s3-demo-bucket/file/file.mp4"
                        ],
                        "durationInMs": 180041,
                        "blackVideoDurationInMs": 0,
                        "videoDetails": {
                            "widthInPx": 1280,
                            "heightInPx": 720,
                            "averageQVBRScore": 7.38,
                            "minimumQVBRScore": 7,
                            "maximumQVBRScore": 8,
                            "minimumQVBRScoreLocationInMs": 2168,
                            "maximumQVBRScoreLocationInMs": 25025
                        }
                    }
                ],
                "type": "FILE_GROUP"
            }
        ],
        "timestamp": 1536964380391,
        "accountId": "111122223333",
        "queue": "arn:aws:mediaconvert:us-west-2:111122223333:queues/Default",
        "jobId": "1536964333549-opn151",
        "userMetadata": {},
        "warnings": [
            {
                "code": 000000,
                "count": 1
            }
        ]
    },
    "version": "0",
    "id": "1234abcd-12ab-34cd-56ef-1234567890ab",
    "detail-type": "MediaConvert Job State Change",
    "source": "aws.mediaconvert",
    "account": "111122223333",
    "time": "2018-09-14T21:54:31Z",
    "region": "us-west-2",
    "resources": [
        "arn:aws:mediaconvert:us-west-2:111122223333:jobs/1536961999428-kxngbl"
    ]
}
```

**注意**  
只有在您的視訊輸出使用 QVBR 速率控制時，才能使用品質定義的可變位元速率 (QVBR) 統計資料。