Socket
Socket
Sign inDemoInstall

fluent-vlc

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fluent-vlc

A fluent API to VLC (https://www.videolan.org/vlc/)


Version published
Weekly downloads
4
decreased by-20%
Maintainers
1
Install size
7.59 kB
Created
Weekly downloads
 

Readme

Source

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 = require('fluent-vlc');
var command = vlc();

You may pass an input URL or readable stream, a configuration object, or both to the constructor.

var command = vlc('file:///path/to/file.avi');
var command = vlc(fs.createReadStream('/path/to/file.avi'));

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
vlc('file:///path/to/file.avi').format('flv');
audioCodec(format): set output audio codec
vlc('file:///path/to/file.avi').audioCodec('vorb');
videoCodec(format): set output video codec
vlc('file:///path/to/file.avi').videoCodec('theo');

Misc

addOption(option...): add a custom VLC option
vlc('file:///path/to/file.avi').format('ogg').videoCodec('theo').audioCodec('vorb').addOption('--sout-theora-quality=5', '--sout-vorbis-quality=1');

Keywords

FAQs

Last updated on 15 Dec 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc