2017 © Pedro Peláez
 

library elastic-transcoder

Amazon Elastic Transcoder.

image

knik/elastic-transcoder

Amazon Elastic Transcoder.

  • Tuesday, February 7, 2017
  • by knik
  • Repository
  • 0 Watchers
  • 1 Stars
  • 75 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 15 Forks
  • 0 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

Elastic Transcoder PHP Class

PHP class for interacting with Amazon Elastic Transcoder that does not require PEAR., (*1)

Usage

Object-oriented method:, (*2)

$et = new ElasticTranscoder($awsAccessKey, $awsSecretKey, $awsRegion);

Statically:, (*3)

ElasticTranscoder::setAuth($awsAccessKey, $awsSecretKey, $awsRegion);

Note: us-east-1 is the default AWS region setting. The third parameter is optional for us-east-1 users., (*4)

Job Operations

Creating a transcoding job:, (*5)

$pipelineId = 'pipelineId';
$input = array('Key' => 'inputFile');
$output = array(
  'Key' => 'outputFile.mp4',
  'PresetId' => 'presetId'
 );

$result = ElasticTranscoder::createJob($input, array($output), $pipelineId);

if (!$result) {
  echo ElasticTranscoder::getErrorMsg();
} else {
  echo 'New job ID: ' . $result['Job']['Id'];
}

List jobs by pipeline:, (*6)

ElasticTranscoder::listJobsByPipeline( string $pipelineId [, boolean $ascending = true ] );

List jobs by status:, (*7)

ElasticTranscoder::listJobsByStatus( string $status );

Get job info:, (*8)

ElasticTranscoder::readJob( string $jobId );

Cancel a job:, (*9)

ElasticTranscoder::cancelJob( string $jobId );

Pipeline Operations

Create a new pipeline:, (*10)

ElasticTranscoder::createPipeline( string $name, string $inputBucket, string $outputBucket, string $role [, array $notifications ] );

Get a list pipelines:, (*11)

ElasticTranscoder::listPipelines();

Get info about a pipeline:, (*12)

ElasticTranscoder::readPipeline( string $pipelineId );

Update pipeline settings:, (*13)

ElasticTranscoder::updatePipeline( string $pipelineId, array $updates );

Change the status of a pipeline (active/paused):, (*14)

ElasticTranscoder::updatePipelineStatus( string $pipelineId, string $status );

Update pipeline notification settings:, (*15)

ElasticTranscoder::updatePipelineNotifications( string $pipelineId [, array $notifications ] );

Delete a pipeline:, (*16)

ElasticTranscoder::deletePipeline( string $pipelineId );

Test the settings for a pipeline:, (*17)

ElasticTranscoder::testRole( string $inputBucket, string $outputBucket, string $role, array $topics );

Preset Operations

Create a preset:, (*18)

ElasticTranscoder::createPreset( array $options );

List all presets:, (*19)

ElasticTranscoder::listPresets();

Get info about a preset:, (*20)

ElasticTranscoder::readPreset( string $presetId );

Delete a preset:, (*21)

ElasticTranscoder::deletePreset( string $presetId );

Misc.

Set AWS authentication credentials:, (*22)

ElasticTranscoder::setAuth( string $awsAccessKey, string $awsSecretKey );

Set AWS region:, (*23)

ElasticTranscoder::setRegion( string $region = 'us-east-1' );

Get HTTP status code of server response:, (*24)

ElasticTranscoder::getStatusCode();

Get server response:, (*25)

ElasticTranscoder::getResponse();

Get error message, if any:, (*26)

ElasticTranscoder::getErrorMsg();


More Information:
Getting Started with Elastic Transcoder, (*27)

License

Released under the MIT license., (*28)

githalytics.com alpha, (*29)

The Versions

07/02 2017

dev-master

9999999-dev https://github.com/ET-NiK/ElasticTranscoder

Amazon Elastic Transcoder.

  Sources   Download

MIT

The Requires

  • php >=5.2

 

aws elastic transcoder

07/02 2017

1.0.2

1.0.2.0 https://github.com/ET-NiK/ElasticTranscoder

Amazon Elastic Transcoder.

  Sources   Download

MIT

The Requires

  • php >=5.2

 

aws elastic transcoder