[英]aws php sdk - elastic transcoder (Preset ARN is invalid: relative id null does not conform to the ARN specification)
我正在使用AWS PHP SDK。 (使用laravel)我正在嘗試在s3存儲桶之間轉換視頻文件。
$transcoder = App::make('aws')->get('ElasticTranscoder');
//$transcoder->setRegion('us-west-2');
// add to queue
$result = $transcoder->createJob(array(
'PipelineId' => '1111111111111-l1zkmo',
'Input' => array(
'Key' => $key
),
'Output' => array(
'Key' => $output_key
),
));
我收到以下錯誤:
Preset ARN is invalid: relative id null does not conform to the ARN specification
如果我嘗試例如將listPipelines列出,則效果很好。
問題是預設ID未包含在輸出中:
$result = $transcoder->createJob(array(
'PipelineId' => '1111111111-5wtswy',
'Input' => array(
'Key' => $key
),
'Output' => array(
'Key' => $output_key,
'PresetId' => '1351620000001-100070'
),
));
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.