Skip to content

Connect to your Raspberry Pi camera and receive a stream of JPEG frames

License

Notifications You must be signed in to change notification settings

tuckbick/raspivid-jpeg-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Connect to your Raspberry Pi camera and receive a stream of JPEG frames

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published