I am having trouble using Elastic Transcoder in PHP. I am trying to use transcoder to grab an audio file from S3, trim it, and place it back. When I try to use the following job creation code I am getting the error: "{"Message":"Start of list found where not expected"}"
When I try to create a JOB I use the following code:
$createJobResult = $transCoderClient->createJob([
'PipelineId' => {pipelineID},
'Input' => [
'Key' => $media->key
],
'Outputs' => [
[
'Key' => $newMedia->key,
'PresetId' => {$presetID},
'Composition' => [
[
'Timespan' => [
'StartTime' => $trimStart,
'Duration' => $duration
]
]
]
]
],
'UserMetaData' => [
'trimJobId' => $trimQueueEntry->id
]
]);
can anyone weigh in on this problem and help? When looking at the documentation on Amazon the structure looks alright.