Erowlin
Erowlin

Reputation: 10307

Stream video file while it's recording

I am currently working on a student project, we have to create a live streaming service for videos with those constraints :

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 :

Thank you !

Upvotes: 3

Views: 2648

Answers (1)

mcorbe
mcorbe

Reputation: 175

I don't believe it is safe to do so and what you need is two buffers.

  • The first would allow whatever library you want to use to write you recorded video to your local file system.
  • The later would allow your video to be streamed through your network.

Both should share the same context therefore the same data which would manage the synchronization of the two buffers.

Upvotes: 1

Related Questions