raspivid-jpeg-stream

1.0.0 • Public • Published

raspivid-jpeg-stream

NPM Version Dependency Status NPM Downloads

A read stream for jpeg data from the Raspberry Pi camera module. Uses the raspivid node module for interfacing with the official raspivid cli.

Installation

npm install raspivid-jpeg-stream

Usage

const RaspividJpegStream = require('raspivid-jpeg-stream')
 
const camera = new RaspividJpegStream({
    // defaults
    'width': 640,
    'height': 480,
    'timeout': 0,
    'framerate': 24
})
 
camera.pipe(...)
 
camera.on('data', function(frame) {
    ...
})

Options

See the official documentation for more options: https://www.raspberrypi.org/documentation/raspbian/applications/camera.md

Alternatively, consult the CLI:

raspivid --help

License

MIT

/raspivid-jpeg-stream/

    Package Sidebar

    Install

    npm i raspivid-jpeg-stream

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    2.7 kB

    Total Files

    3

    Last publish

    Collaborators

    • tuckbick