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.8.tar.gz
(2.8 kB
view hashes)