AWS transcoder client.
$ npm install s3-transcode
var Client = require('s3-transcode');
var client = new Client({
key: "your aws key here",
secret: "your aws secret here",
region: "us-west-1"
});
client.pipelines(function(err, pipelines){
if (err) throw err;
console.log(pipelines);
});
Initialize a new Client.
GET path.
POST body to path.
Get list of pipelines.
Get pipeline id.
Get jobs by pipeline id.
Get jobs by status, where status is one of:
Get job by id and invoke fn(err, job).
Create job and invoke fn(err, job).
{ Id: '1368211442908-007920',
Input:
{ AspectRatio: 'auto',
Container: 'mov',
FrameRate: 'auto',
Interlaced: 'auto',
Key: 'ibdwc36ngnJ.mov',
Resolution: 'auto' },
Output:
{ Key: 'ibdwc36ngnJ.mp4',
PresetId: '1351620000000-100070',
Rotate: 'auto',
Status: 'Submitted',
StatusDetail: null,
ThumbnailPattern: 'ibdwc36ngnJ-{count}' },
PipelineId: '1368117054847-aeb165' }
{ Job:
{ Id: '1368211442908-007990',
Input:
{ AspectRatio: 'auto',
Container: 'mov',
FrameRate: 'auto',
Interlaced: 'auto',
Key: 'ibdwc36ngnJ.mov',
Resolution: 'auto' },
Output:
{ Key: 'ibdwc36ngnJ-4.mp4',
PresetId: '1351620000000-100070',
Rotate: 'auto',
Status: 'Error',
StatusDetail: '3002 bdd0fac5-9318-48b0-8243-d1299dab9748: The specified object could not be saved in the specified bucket because an object by that name already exists: bucket=i.cloudup.com, key=ibdwc36ngnJ-00001.png.',
ThumbnailPattern: 'ibdwc36ngnJ-{count}' },
PipelineId: '1368117054847-aeb165' } }
MIT