MJPEG broadcaster
Project description
Live thumbnail using MJPEG and nginx_push_stream.
Usage
Compile Nginx with nginx_push_stream support and run it with sample config:
$ nginx -c $PWD/nginx.conf
Make a directory to store the thumbs
$ mkdir -p frames/parts
Start ffmpeg to create thumbs for a channel (parts in this example):
$ ffmpeg -re -i rtmp://example.com/live/stream -vf "scale=159:-1" -r 3 frames/parts/thumb%9d.jpg
Run the broadcaster:
$ python broadcaster.py
If you prefer, install the script using pip and run it:
$ pip install live_thumb $ broadcaster
Watch the movie with the example html:
$ open test.html
Or go to http://localhost:9080/sub/parts directly.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
live_thumb-0.0.3.tar.gz
(2.4 kB
view details)
File details
Details for the file live_thumb-0.0.3.tar.gz
.
File metadata
- Download URL: live_thumb-0.0.3.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3702f18b01de9399cec37ea3b948a8aaa860e3071dcc1d7ba9a0dae7e3c4a54 |
|
MD5 | 7675bf09d6a3880e3bd778b05a4861b9 |
|
BLAKE2b-256 | fc6e5de14301d81f2e20eb9ca64d2d4a179c861f4b165ff49a78d6147e708d1e |