-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where is the streaming part? #2
Comments
First of all, thank you very much for the tip. We really appreciate that. How does it work? The heart of the app is a tiny web server, Nginx. Nginx uses HLS packages to stream the video to the user. These are buffered Nginx uses an RT stream to feed its HLS packages. FFmpeg takes care of this RT steam. It is initiated in The beauty of FFmpeg is that it uses the GPU instead of the CPU. Until now, we have a working camera streaming to nginx and nginx, on his turn, surging to a browser without using (almost) any CPU power. We can use the CPU now for things like motion detection, or recognizing objects with deep learning, like YoloCam. There a in fact two applications running at the same time. One app, MainStreamer, is writing frames from the HLS buffer to memory ( |
Thanks for the explanation. That is a great idea using FFmpeg for its GPU use. Also I figure to change the resolution rc.local is edited not MainStreamer.cpp which just uses the smaller image for movement detection. It would have been helpful to mention the nginx/rc.local thing in the readme but thanks for answering my question. Mybad - its in the wiki which I did not read! |
Thanks! |
I have looked over the code for the part that streams to localhost but cannot find it.
Is this it (in MainStreamer)?
` VideoCapture cap(VIDEO_FILE, CAP_FFMPEG);
It just seems to write the image to SWAP_IMG_FILE.
I am new to c++ - just trying to work it out.
Thanks
The text was updated successfully, but these errors were encountered: