Socket
Book a DemoInstallSign in
Socket

s3-transcode

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

s3-transcode

AWS transcoder client

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

s3-transcode

AWS transcoder client.

Installation

$ npm install s3-transcode

Example

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);
});

API

  • Client()
  • Client.get()
  • Client.post()
  • Client.pipelines()
  • Client.pipeline()
  • Client.jobs()
  • Client.jobsByStatus()
  • Client.job()
  • Client.createJob()

Client(options)

Initialize a new Client with the given options:

  • key aws key
  • secret aws secret
  • region aws region

Client.get(path:String)

GET path.

Client.post(path:String, body:Object)

POST body to path.

Client.pipelines(fn:Function)

Get list of pipelines.

Client.pipeline(id:String, fn:Function)

Get pipeline id.

Client.jobs(id:String, fn:Function)

Get jobs by pipeline id.

Client.jobsByStatus(fn:Function)

Get jobs by status, where status is one of:

  • "Submitted"
  • "Progressing"
  • "Completed"
  • "Canceled"
  • "Error"

Client.job(id:String, fn:Function)

Get job by id and invoke fn(err, job).

Client.createJob(job:Object, fn:Function)

Create job and invoke fn(err, job).

Example responses

.createJob()

{ 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()

{ 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' } }
  • Creating a job

License

MIT

Keywords

s3

FAQs

Package last updated on 13 May 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts