npm.io
0.1.0 • Published 9 years ago

mediaconversion

Licence
MIT
Version
0.1.0
Deps
2
Vulns
0
Weekly
0

mediaconversion

Convert videos using ffmpeg

Grabbing raw v4l stream

var options,
    output,
    conv;

options = {
    input_type : 'video4linux2',
    profile    : 'copy'
};

// Create the conversion instance
conv = new MediaConversion();

// Set the correct input path
conv.setInput('/dev/some/video/device');

// Create a passthrough output stream
output = conv.createStream();

// Start the "conversion"
conv.start(output, options);

Keywords