簡體   English   中英

aws php sdk-彈性轉碼器(預設ARN無效:相對ID null不符合ARN規范)

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM