1.1.0 • Published 7 years ago

@financial-times/n-zencoder v1.1.0

Weekly downloads
4
License
ISC
Repository
-
Last release
7 years ago

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

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago