Git Product home page Git Product logo

video-streaming-with-flask-socketio's Introduction

Video Streaming with Flask SocketIO

Video Streaming is done with flask-socketio with production WSGI server

Transmitting video frames with Flask SocketIO

In order to use eventlet or gevent for making asynchronous call instead of uWSGI download the dependency using pip3 and in the test.py file change

socketio.emit('image',json, broadcast=True)

Run the test.py file using the terminal and open the localhost http://127.0.0.1:5000

A video is attached in the repository with the name videostreaming.mkv play the video to see the demonstration of the project.

Demonstration of client sending video frames to server on Different system/Same system in the network.

In order to send video frames from single server to client see the server.py and client.py. Currently this code can only display video frames from two clients but with some modification in javascript code it will be possible to do for many clients, will make the required changes in some time. See the demo videos of remote_server_client1 and remote_server_client2 for the output demonstration. In remote_server_client2, first client is on a remote system and second client and server is on the same system in the network. In remote-server_client1 the server and client are both on different systems in the same network.

Run the server.py file and client.py file and open http://0.0.0.0:5000 on browser.

video-streaming-with-flask-socketio's People

Contributors

ahmedbhati avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

video-streaming-with-flask-socketio's Issues

Problem with stability

its working well but in the server i have to change from 0.0.0.0 to my own ip address,
and its only working for a minute and client output this message
/////////////////////////////500

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.