ffmpeg-devices
v0.0.0
Published
Git a list of avialable audio and video devices from ffmpeg
Downloads
1
Readme
ffmpeg-devices
Git a list of avialable audio and video devices from ffmpeg
WARNING
Currently this only works on mac. If you want this to work on another platform, that is coming eventually, and PR's are welcome!
Install
$ npm install --save ffmpeg-devices
Usage
const ffmpegDevices = require('ffmpeg-devices');
ffmpegDevices();
// => {
// audio: [], // audio devices
// video: [], // video devices
// unknown: [] // unknown devices
// }
// If you want to use a specific bin
ffmpegDevices('<path to ffmpeg binary>')
// can specify an input to parse if you would prefer
ffmpeg(null, {
ffmpegOutput: `some output to parse` // ffmpeg should not be called in this case.
})
License
MIT © Eric Wooley