Skip to main content

A tool to create a http mjpeg stream from a plain mjpeg stream.

Project description

mjpeg-http-streamer

Build Release

A small python tool that reads a plain MJPEG stream from stdin and publishes it as http MJPEG stream. It can be used in combination with libcamera on a Raspberry Pi to create a http stream for OctoPrint.

Installation

Installation is done via pip.

pip install mjpeg-http-streamer

Usage

Example invocation on a Raspberry PI:

libcamera-vid -t 0 --inline --codec mjpeg -o - \
  | python3 -m mjpeg_http_streamer -l <host> -p 8080

The HTTP stream can be received by opening the url http://<host>:8080/stream. Further a single snapshot can be retrieved using http://<host>:8080/snapshot.

In production use cases it is advised to host mjpeg-http-streamer behind a reverse proxy like nginx.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mjpeg_http_streamer-0.0.5.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

mjpeg_http_streamer-0.0.5-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page