Fluent VLC-API for Node.js
Inspired from fluent-ffmpeg
.
Installation
Via npm:
$ npm install fluent-vlc
Usage
Prerequisites
You will need VLC to be installed on your system.
If the VLC_PATH
environment variable is set, it will be used as the full path to the vlc
executable. Otherwise, it will attempt to call vlc
directly (so it should be in your PATH
).
Creating a VLC command
The fluent-vlc module returns a constructor that you can use to instanciate VLC commands.
var vlc = ;var command = ;
You may pass an input URL or readable stream, a configuration object, or both to the constructor.
var command = ;var command = ;
Specifying outputs
output(target): set the output
Sets the output of the command. The target argument may be an output filename, a URL or a writable stream (but at most one output stream may be used with a single command).
format(format): set output format
;
audioCodec(format): set output audio codec
;
videoCodec(format): set output video codec
;
Misc
addOption(option...): add a custom VLC option
;