Skip to content

Live thumbnail using MJPEG and nginx_push_stream

License

Notifications You must be signed in to change notification settings

leandromoreira/live_thumb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

live_thumb

Live thumbnail using MJPEG and nginx_push_stream.

Usage

Compile Nginx with nginx_push_stream support and run it with sample config:

$ sudo /usr/local/nginx/sbin/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

Watch the movie with the example html:

$ open test.html

Or go to http://localhost:9080/sub/parts directly.

About

Live thumbnail using MJPEG and nginx_push_stream

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%