Sign inSign up

koteeq/snap-provider

By koteeq

•Updated almost 7 years ago

Image
1

303

koteeq/snap-provider repository overview

⁠Snap Provider

This is a simple daemon that listens to MJPEG camera stream, buffers last N frames and serves as a video upon request on http://<bindAddress>/snap.mp4 endpoint.

Can be configured with environment variables. All vars are required.

VarDescriptionDefault value
STREAMfull URL to mjpeg stream
BUFFERhow many frames to buffer150
FPSframe rate of resulting video15
CODECFFmpeg codec to be used for video encodinglibx264
BITRATEresulting video bitrate, passed to -b:v of ffmpeg1000K
BINDHTTP server bind address0.0.0.0:5533

Resulting video will be frameBufferLength/frameRate seconds length. If you have 15 FPS stream and want 10 seconds of video, use -buffer 150 -fps 15 flags.

Tag summary

Content type

Image

Digest

Size

25.4 MB

Last updated

almost 7 years ago

docker pull koteeq/snap-provider