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.
Haha-Yes/node_modules/prism-media
Loïc Bersier 7b16ff8092 haha yes 6 years ago
..
src haha yes 6 years ago
test haha yes 6 years ago
.eslintrc.json haha yes 6 years ago
.travis.yml haha yes 6 years ago
LICENSE haha yes 6 years ago
README.md haha yes 6 years ago
output.opus haha yes 6 years ago
package.json haha yes 6 years ago

README.md

prism-media

Build Status dependencies devDependencies

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