@financial-times/n-zencoder

1.1.0 • Public • Published

A client library for https://zencoder.com.

Usage

npm install
export ZENCODER_API_KEY=... && node src/main

Start a transcoding job,

const uuid = 'b7944ea9-f4b1-4cc6-a23b-0860e05cd50c';
const source = 's3://ftvideo.prod.zencoder.inputs/b7944ea9-f4b1-4cc6-a23b-0860e05cd50c.mov';

new Zencoder().create_job(source, {
	uuid: uuid,
	profiles: ['LOW_END_MOBILE', 'SMARTPHONE', 'TABLET', 'HD', 'MP3'],
	clip: { start_clip: 6.5, clip_length: 26.5 }
})
.then(data => console.log(data))
.catch(err => console.error(err));

Get the job details,

new Zencoder().get_job('337605561')
	.then(data => console.log(data))
	.catch(err => console.error(err));

Readme

Keywords

none

Package Sidebar

Install

npm i @financial-times/n-zencoder

Weekly Downloads

1

Version

1.1.0

License

ISC

Last publish

Collaborators

  • robertboulton
  • seraph2000
  • hamza.samih
  • notlee
  • emmalewis
  • aendra
  • the-ft
  • rowanmanning
  • chee
  • alexwilson