@akamai - 我错了。ET确实允许您在一次操作中缝合剪辑。我认为您的问题是您使用快捷语法而不是传递 JSON 数组。
尝试从更新您的命令
Key=movie1.mp4,movie2.mp4
至
'[{"Key"="movie1.mp4"},{"Key"="movie2.mp4"}]'
您可能需要一些额外的参数来获得所需的结果。您可以使用 AWS 命令生成模板来指导您,如下所示: aws elastictranscoder create-job --generate-cli-skeleton
. 这将输出一个带有命令的每个可用属性的 JSON 字符串。如果您查看下面的 Inputs 部分,它被定义为一个数组:"Inputs": [
.
myname@mypc:~$ aws elastictranscoder create-job --generate-cli-skeleton
{
"PipelineId": "",
"Input": {
"Key": "",
"FrameRate": "",
"Resolution": "",
"AspectRatio": "",
"Interlaced": "",
"Container": "",
"Encryption": {
"Mode": "",
"Key": "",
"KeyMd5": "",
"InitializationVector": ""
},
"TimeSpan": {
"StartTime": "",
"Duration": ""
},
"InputCaptions": {
"MergePolicy": "",
"CaptionSources": [
{
"Key": "",
"Language": "",
"TimeOffset": "",
"Label": "",
"Encryption": {
"Mode": "",
"Key": "",
"KeyMd5": "",
"InitializationVector": ""
}
}
]
},
"DetectedProperties": {
"Width": 0,
"Height": 0,
"FrameRate": "",
"FileSize": 0,
"DurationMillis": 0
}
},
"Inputs": [
{
"Key": "",
"FrameRate": "",
"Resolution": "",
"AspectRatio": "",
"Interlaced": "",
"Container": "",
"Encryption": {
"Mode": "",
"Key": "",
"KeyMd5": "",
"InitializationVector": ""
},
"TimeSpan": {
"StartTime": "",
"Duration": ""
},
"InputCaptions": {
"MergePolicy": "",
"CaptionSources": [
{
"Key": "",
"Language": "",
"TimeOffset": "",
"Label": "",
"Encryption": {
"Mode": "",
"Key": "",
"KeyMd5": "",
"InitializationVector": ""
}
}
]
},
"DetectedProperties": {
"Width": 0,
"Height": 0,
"FrameRate": "",
"FileSize": 0,
"DurationMillis": 0
}
}
],
"Output": {
"Key": "",
"ThumbnailPattern": "",
"ThumbnailEncryption": {
"Mode": "",
"Key": "",
"KeyMd5": "",
"InitializationVector": ""
},
"Rotate": "",
"PresetId": "",
"SegmentDuration": "",
"Watermarks": [
{
"PresetWatermarkId": "",
"InputKey": "",
"Encryption": {
"Mode": "",
"Key": "",
"KeyMd5": "",
"InitializationVector": ""
}
}
],
"AlbumArt": {
"MergePolicy": "",
"Artwork": [
{
"InputKey": "",
"MaxWidth": "",
"MaxHeight": "",
"SizingPolicy": "",
"PaddingPolicy": "",
"AlbumArtFormat": "",
"Encryption": {
"Mode": "",
"Key": "",
"KeyMd5": "",
"InitializationVector": ""
}
}
]
},
"Composition": [
{
"TimeSpan": {
"StartTime": "",
"Duration": ""
}
}
],
"Captions": {
"MergePolicy": "",
"CaptionSources": [
{
"Key": "",
"Language": "",
"TimeOffset": "",
"Label": "",
"Encryption": {
"Mode": "",
"Key": "",
"KeyMd5": "",
"InitializationVector": ""
}
}
],
"CaptionFormats": [
{
"Format": "",
"Pattern": "",
"Encryption": {
"Mode": "",
"Key": "",
"KeyMd5": "",
"InitializationVector": ""
}
}
]
},
"Encryption": {
"Mode": "",
"Key": "",
"KeyMd5": "",
"InitializationVector": ""
}
},
"Outputs": [
{
"Key": "",
"ThumbnailPattern": "",
"ThumbnailEncryption": {
"Mode": "",
"Key": "",
"KeyMd5": "",
"InitializationVector": ""
},
"Rotate": "",
"PresetId": "",
"SegmentDuration": "",
"Watermarks": [
{
"PresetWatermarkId": "",
"InputKey": "",
"Encryption": {
"Mode": "",
"Key": "",
"KeyMd5": "",
"InitializationVector": ""
}
}
],
"AlbumArt": {
"MergePolicy": "",
"Artwork": [
{
"InputKey": "",
"MaxWidth": "",
"MaxHeight": "",
"SizingPolicy": "",
"PaddingPolicy": "",
"AlbumArtFormat": "",
"Encryption": {
"Mode": "",
"Key": "",
"KeyMd5": "",
"InitializationVector": ""
}
}
]
},
"Composition": [
{
"TimeSpan": {
"StartTime": "",
"Duration": ""
}
}
],
"Captions": {
"MergePolicy": "",
"CaptionSources": [
{
"Key": "",
"Language": "",
"TimeOffset": "",
"Label": "",
"Encryption": {
"Mode": "",
"Key": "",
"KeyMd5": "",
"InitializationVector": ""
}
}
],
"CaptionFormats": [
{
"Format": "",
"Pattern": "",
"Encryption": {
"Mode": "",
"Key": "",
"KeyMd5": "",
"InitializationVector": ""
}
}
]
},
"Encryption": {
"Mode": "",
"Key": "",
"KeyMd5": "",
"InitializationVector": ""
}
}
],
"OutputKeyPrefix": "",
"Playlists": [
{
"Name": "",
"Format": "",
"OutputKeys": [
""
],
"HlsContentProtection": {
"Method": "",
"Key": "",
"KeyMd5": "",
"InitializationVector": "",
"LicenseAcquisitionUrl": "",
"KeyStoragePolicy": ""
},
"PlayReadyDrm": {
"Format": "",
"Key": "",
"KeyMd5": "",
"KeyId": "",
"InitializationVector": "",
"LicenseAcquisitionUrl": ""
}
}
],
"UserMetadata": {
"KeyName": ""
}
}