cmusatyalab / rtface

Cloudlet-based Privacy Mediator
Apache License 2.0
1 stars 1 forks source link

Replace Gabriel with a mature video streaming library #7

Open junjuew opened 7 years ago

junjuew commented 7 years ago

Such video streaming library can be used both for collecting videos from cameras and multi-casting the denatured video streams.

drspangle commented 7 years ago

Current candidates include:

We should update this thread as we discuss and weigh the trade-offs of each option.

drspangle commented 7 years ago

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.