我已经按照aws-samples配置在MediaConvert中创建作业模板,如下所示:
{
...
"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
}
]
}
}
}
但是当我运行作业时,收到如下错误:
Settings.Inputs [0]:“ ImageInserter”中的未知参数必须是以下之一:AudioSelectorGroups,AudioSelectors,CaptionSelectors,DeblockFilter,DenoiseFilter,FileInput,FilterEnable,FilterStrength,InputClippings,ProgramNumber,PsiControl,TimecodeSource,VideoSelector
Boto3 MediaConvert的参考:MediaConvert — Boto 3 Docs documentation
答案 0 :(得分:0)
检查您的boto3
版本:
>>> import boto3
>>> boto3.__version__
'1.9.116'
如果您使用的是旧版本,请更新:
sudo pip install boto3 --upgrade