Comments (6)
Streaming videos was not what I was thinking when I created this demo, but sure, it would be fairly easy to have the client pass the source as an argument to the streaming endpoint.
I just have to say, that if what you are after is streaming videos, there are much better ways to do that than sending the video as a sequence of jpeg images.
from flask-video-streaming.
What other better ways are?
I guess send video as a sequence of jpeg images uses less bandwidth.
If I have a video with 30fps, camera.read() reads 30fps by default or less?
How can you define the fps on camera.read() ?
from flask-video-streaming.
Videos use more efficient compression algorithms than motion jpeg. Jpeg streaming is not efficient, it is mostly use for security cameras and similar type of low-end live video streaming.
The <video>
tag in the browser can play mp4 video without any additional help, for example. Consider that if you stream as jpegs, the server will have to decode the original video and then re-encode as a sequence of jpegs. it's a lot of work, and you end up using more bandwith. If you have the videos already stored in your server, just serve them as files and let the browser deal with them directly.
from flask-video-streaming.
Exactly, but I'm thinking in pre-process the on-real time video with opencv to detect some pattern
from flask-video-streaming.
@dragonxtek Okay, if you have to decode the frames in the server for the image detection part, then serving the result as motion jpeg might be okay.
from flask-video-streaming.
This issue will be automatically closed due to being inactive for more than six months. Please reopen if you need more assistance.
from flask-video-streaming.
Related Issues (20)
- How to send meta data Along with the image stream ? HOT 3
- The view function did not return a valid response. The return type must be a string, tuple, Response instance, or WSGI callable, but it was a generator. HOT 3
- How does darknet yolo call the USB camera? HOT 1
- I need this to run in SSL HOT 1
- How to control the speed of video feed flow showing in the webpage? HOT 2
- Can we sync Flask streaming response with OpenCV FPS HOT 5
- IOError: [Errno 104] Connection reset by peer HOT 5
- Allways save the video as mp4 file? HOT 3
- I want to send a string alongwith each frame. HOT 4
- Loading the video stream freezes up all other responses from the Flask server HOT 4
- resetting yield generator during long run HOT 5
- Frames Are Displayed With Delay of One Frame
- Gstreamer backend
- Rotated Pictures HOT 1
- Hello, I don't know why the front-end console can receive a bunch of late results only after the back-end program is finished
- Publish the video through MotionEye HOT 6
- Picamera2/libcamera compatibility HOT 1
- Concurrency question HOT 3
- Stopping/Restarting video stream? HOT 4
- Return still image when requested HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flask-video-streaming.