I am currently working on a student project, we have to create a live streaming service for videos with those constraints :
- We capture the video from the Webcam with OpenCV
- We want to stream the video while it's recorded
- We have a file capture.avi that is saved to the computer, and while this file is saved, we want to stream it.
Currently, we have no idea how to do it, we don't know if the file transferred from A to B will be openable (Via VLC for example) in B, and if we won't have any interruption.
We plan to use RTSP for the network protocol. We code everything in C++.
Here the questions :
- Does RTSP take care to stream a file that is being written
- What format of the source should we use ? Should we stream the frames captured from OpenCV from A to B (So in B we have to use OpenCV to convert the frames to a video), or should we let OpenCV create a video file in A, and stream that video file from A to B ?
Thank you !