![](/img/trans.png)
[英]Deleting a file after transcoding with AWS Lambda and Elastic Transcoder
[英]AWS Elastic Transcoder Create Job Error
有誰知道為什么我不斷收到這個錯誤:
JSONResponseError: 400 Bad Request
{u'Message': u'Start of list found where not expected'}
當我使用api中指定的輸出字典時,它運行良好,但是自從切換到字典的輸出列表后,我遇到了上述錯誤。
這是我寫的代碼:
transInput = {
'Key': path,
'FrameRate': 'auto',
'Resolution': 'auto',
'AspectRatio': 'auto',
'Interlaced': 'auto',
'Container': 'auto'
}
pprint (transInput)
#Create a job for each desired preset
for pId, descrip in presets.iteritems():
transOutput = {
'PresetId': pId,
'Rotate': 0,
'ThumbnailPattern': 00001,
'Key': path +"-" + descrip
}
outputs.append(transOutput)
try:
transcode.create_job(pipelineId, transInput, outputs)
except Exception, e:
print e
如果要使用輸出列表,則必須將其指定為outputs
參數:
transcode.create_job(pipelineId, transInput, outputs=output)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.