You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Loïc Bersier 670383fe81 | 6 years ago | |
---|---|---|
.. | ||
src | 6 years ago | |
test | 6 years ago | |
.eslintrc.json | 6 years ago | |
.travis.yml | 6 years ago | |
LICENSE | 6 years ago | |
README.md | 6 years ago | |
output.opus | 6 years ago | |
package.json | 6 years ago |
README.md
prism-media
Makes programmatically transcoding media easier
npm install --save hydrabolt/prism-media
const Prism = require('prism-media');
const fs = require('fs');
const prism = new Prism();
const transcoder = prism.transcode({
type: 'ffmpeg',
media: './test/test.mp3',
ffmpegArguments: [
'-analyzeduration', '0',
'-loglevel', '0',
'-f', 's16le',
'-ar', '48000',
'-ac', '2',
],
});
transcoder.output.pipe(fs.createWriteStream('./test/test.pcm'));