@financial-times/n-zencoder
v1.1.0
Published
A client library for https://zencoder.com.
Downloads
345
Maintainers
Keywords
Readme
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));