https://github.com/bootrino/maryjane Skip to content Sign up * Why GitHub? Features - + Mobile - + Actions - + Codespaces - + Packages - + Security - + Code review - + Issues - + Integrations - + GitHub Sponsors - + Customer stories- * Team * Enterprise * Explore + Explore GitHub - Learn and contribute + Topics - + Collections - + Trending - + Learning Lab - + Open source guides - Connect with others + The ReadME Project - + Events - + Community forum - + GitHub Education - + GitHub Stars program - * Marketplace * Pricing Plans - + Compare plans - + Contact Sales - + Education - [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} bootrino / maryjane Public * Notifications * Star 27 * Fork 0 MIT License 27 stars 0 forks Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Wiki * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Wiki * Security * Insights master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags 1 branch 0 tags Code Latest commit @crowdwave crowdwave Trying to get demo index.html to work in README.md ... a1d7a33 Oct 5, 2021 Trying to get demo index.html to work in README.md a1d7a33 Git stats * 7 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time rootdir/etc/systemd/system Initial commit. Oct 6, 2021 .gitignore Initial commit. Oct 6, 2021 LICENSE Initial commit. Oct 6, 2021 README.md Trying to get demo index.html to work in README.md Oct 6, 2021 index.html Trying to get demo index.html to work in README.md Oct 6, 2021 mjpegserverpython.py Initial commit. Oct 6, 2021 View code README.md MaryJane MJPEG server in < 30 lines Python MaryJane is a simple MJPEG server written in Python. Live demo of MaryJane --------------------------------------------------------------------- Project status: Created 6 Oct 2021 by Andrew Stuart andrew.stuart@supercoders.com.au License: MIT You are welcome to post questions in the github issues but don't expect an answer - I may or may not be interested in reading/fixing issues. How to use it: To display an mjpeg stream on a web page, just put the address in an image tag: How it works: The server loads the same jpeg file from the file system and sends it to the web browser. It does this continuously. That's pretty much it. It's less than 30 lines of code - have a look. It is the responsibility of something else to keep replacing that file with the latest frame in the video stream. For example, the following command reads frames from a video file and constantly replaces the output filename with the current frame: ffmpeg -y -re -stream_loop -1 -i monster-family-2-teaser_h480p.mov -f image2 -update 1 /dev/shm/img.jpeg About No description, website, or topics provided. Resources Readme License MIT License Releases No releases published Packages 0 No packages published Languages * Python 67.1% * HTML 32.9% * (c) 2021 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.