Amazon web services boto3 AWS MediaConvert未知“;“图像插入器”;参数
我按照aws示例配置在MediaConvert中创建作业模板,作业如下:Amazon web services boto3 AWS MediaConvert未知“;“图像插入器”;参数,amazon-web-services,boto3,Amazon Web Services,Boto3,我按照aws示例配置在MediaConvert中创建作业模板,作业如下: { ... "Inputs": [ { "AudioSelectors": { "Audio Selector 1": { "Offset": 0, "DefaultSelection": "DEFAULT", "ProgramSelection": 1 } },
{
...
"Inputs": [
{
"AudioSelectors": {
"Audio Selector 1": {
"Offset": 0,
"DefaultSelection": "DEFAULT",
"ProgramSelection": 1
}
},
"VideoSelector": {
"ColorSpace": "FOLLOW"
},
"FilterEnable": "AUTO",
"PsiControl": "USE_PSI",
"FilterStrength": 0,
"DeblockFilter": "DISABLED",
"DenoiseFilter": "DISABLED",
"TimecodeSource": "EMBEDDED",
"FileInput": "s3://rodeolabz-us-west-2/vodconsole/VANLIFE.m2ts",
"ImageInserter": {
"InsertableImages": [
{
"Opacity": 50,
"ImageInserterInput": "IMAGE_URL",
"Layer": 0,
"ImageX": 0,
"ImageY": 100,
"Width": 242,
"Height": 97
}
]
}
}
}
但在运行作业时,我收到如下错误:
{
...
"Inputs": [
{
"AudioSelectors": {
"Audio Selector 1": {
"Offset": 0,
"DefaultSelection": "DEFAULT",
"ProgramSelection": 1
}
},
"VideoSelector": {
"ColorSpace": "FOLLOW"
},
"FilterEnable": "AUTO",
"PsiControl": "USE_PSI",
"FilterStrength": 0,
"DeblockFilter": "DISABLED",
"DenoiseFilter": "DISABLED",
"TimecodeSource": "EMBEDDED",
"FileInput": "s3://rodeolabz-us-west-2/vodconsole/VANLIFE.m2ts",
"ImageInserter": {
"InsertableImages": [
{
"Opacity": 50,
"ImageInserterInput": "IMAGE_URL",
"Layer": 0,
"ImageX": 0,
"ImageY": 100,
"Width": 242,
"Height": 97
}
]
}
}
}
设置中的未知参数。输入[0]:“ImageInserter”必须是以下选项之一:AudioSelector组、AudioSelector、CaptionSelector、DeblockFilter、DenoiseFilter、FileInput、FilterEnable、FilterStrength、InputClipping、ProgramNumber、PsiControl、TimecodeSource、VideoSelector
Boto3 MediaConvert的参考资料:检查您的Boto3版本:
>>> import boto3
>>> boto3.__version__
'1.9.116'
如果您有旧版本,请使用以下更新:
sudo pip install boto3 --upgrade