A tool to create a http mjpeg stream from a plain mjpeg stream.
Project description
mjpeg-http-streamer
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
Built Distribution
File details
Details for the file mjpeg_http_streamer-0.0.5.tar.gz
.
File metadata
- Download URL: mjpeg_http_streamer-0.0.5.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccb17ba0471003511069cf40412f37ab8a2d3a471ec10f8a8b522182300468e6 |
|
MD5 | 13ea0a2ed227fed52d6143800ade93de |
|
BLAKE2b-256 | ffe188ff1ce50a219c895dda7f21e0d5972224c461f6ca8ce1a8209321505056 |
File details
Details for the file mjpeg_http_streamer-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: mjpeg_http_streamer-0.0.5-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 045c5346654b7238d1f42993ef8ebae8f8adb0035ecb168b16f6198fb47d4e96 |
|
MD5 | 72cbc5d9c355ab90628df7cc42fae53f |
|
BLAKE2b-256 | c839bb8d24428cae6ab3dcf31e28bb0b7665a5d77652dc3a60bc7dbd06361ab1 |