I am working on a project that involves live streaming video content from a source to a webpage/player (source can be camera, webcam, external server).
The trouble I'm having is that I give that address of the streaming device to the user and the user creates a connection directly to the streamer.
What i will like to to is to buffer the video content in a central place (some server) and have a the end user create he connection to the server rather to the actual streaming device.
An optional feature will be to edit the video as it collects at the server coming in so the end user will get a finished video (kinda like streaming raw video from a new studio, adding on the channel logo, sub-titles, time and so on)
The video will be displayed on a page that is generated with php and will have a player and a video player that will use HTTP streaming from some source (after editing).
How will I go about this "double buffering" process? I was thinking of something on the lines of a python task running and doing the video editing on the fly and outputting it to a file, and then HTTP stream the file/ But this will cause the video to play from the beginning and not from the current position (Is would be nice to collect the video in a file for future access).
I have had no real results for searching this topic so anything will help. Thanks for reading :)