Skip to main content

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


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.6.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file live_thumb-0.0.6.tar.gz.

File metadata

  • Download URL: live_thumb-0.0.6.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for live_thumb-0.0.6.tar.gz
Algorithm Hash digest
SHA256 d247e50603e30f73e753a1c8298ae155780fdc6a383c6292398be9e18d939371
MD5 68ea6ec0c31b3359ced4533c66c0b482
BLAKE2b-256 dfbce9bc89418690a87f13a4b343393412e0d822973f679f5c08333f761e6955

See more details on using hashes here.

Provenance

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