0
指定需要转码的文件的宽度和高度。这是我的代码。弹性转码属性的宽度和高度
$job = $elasticTranscoder->createJob(array('PipelineId' => 'xx-nxx','OutputKeyPrefix' => 'output2/'.$folder.'/',
'Input' => array(
'Key' => $_GET['name'],
'FrameRate' => 'auto',
'Resolution' => 'auto',
'AspectRatio' => '4:3',
'Interlaced' => 'auto',
'Container' => 'auto',
),
'Outputs' => array(
array(
'Key' => $out,
'Rotate' => 'auto',
'PresetId' =>$p ,
),),));
我下文称这个aws document,当我把它作为
'DetectedProperties' => array(
'Width' => 540,
'Height' => 720,),),
跟它
“消息”:“不要指定值 '输入:DetectedProperties',
需要帮助!!
请求
但该结构并未告诉我们如何设置输出转码视频的宽度和高度。 –
创建您自己的预设。 登陆页面链接看起来像这样。 https://console.aws.amazon.com/elastictranscoder/home?region=ap-southeast-1#create-preset: –