0.0.0 • Published 8 years ago

ffmpeg-devices v0.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

ffmpeg-devices Build Status Coverage Status

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