fluent-ffmpeg / node-fluent-ffmpeg

A fluent API to FFMPEG (http://www.ffmpeg.org)
MIT License
7.83k stars 875 forks source link

Additional input stream #187

Closed TheRusskiy closed 10 years ago

TheRusskiy commented 10 years ago

Sorry, I don't get it... Is it possible to specify stream object with addInput option? e.g. .addInput(audioStream)

bencevans commented 10 years ago

Should be

bencevans commented 10 years ago

Or instead of the source being a file location, you can specify a Stream Object:

var proc = new ffmpeg({
  // input source, required
  source: myStream,
  // timout of the spawned ffmpeg sub-processes in seconds (optional, defaults to 30)
  timeout: 30,
  // default priority for all ffmpeg sub-processes (optional, defaults to 0 which is no priorization)
  priority: 0,
  // set a custom [winston](https://github.com/flatiron/winston) logging instance (optional, default null which will cause fluent-ffmpeg to spawn a winston console logger)
  logger: null,
  // completely disable logging (optional, defaults to false)
  nolog: false
});
TheRusskiy commented 10 years ago

Ok, thank you! Going to try it. Closing issue...