Open junjuew opened 7 years ago
Current candidates include:
libvlc
We should update this thread as we discuss and weigh the trade-offs of each option.
I think you should actually use GStreamer, which is extremely well supported and used very ubiquitously. It is built on top of RTSP - the protocol itself is RESTful for the requests to play, stop, rewind, etc. but the video streaming itself is not sent over HTTP.
Here's a simple python example of a streaming server:
https://github.com/superdump/pyrtsp/blob/e005130332f7f4cfd60940f1e3fa5e324a143c38/pyrtsp.py
You would need to replace this line in order to reconfigure the library to use your video source.
There's examples all over the place showing how to do this. We can consume and modify the frames from the RTSP stream easily too, there are plenty examples around for how to do that.
Such video streaming library can be used both for collecting videos from cameras and multi-casting the denatured video streams.