C++ libswresample bindings for audio resampling
libswresample
- Ubuntu 15.04
$ sudo apt-get install libswresample-ffmpeg-dev- Centos
$ sudo yum install ffmpeg-develInstall via git
$ npm install git+https://github.com/henriAbel/node_resampler.gitvar Resampler = require('node_resampler');
// Downsample from 44100 to 22050
var resampler = new Resampler({
sourceRate: 44100,
targetRate: 22050,
stereo : true
});
// Read from stdin -> resample -> print to stdout
process.stdin.pipe(resampler).pipe(process.stdout);