Write data to an HTTP or RTSP stream from MATLAB

11 visualizaciones (últimos 30 días)
Ellie Joffe
Ellie Joffe el 24 de Nov. de 2022
Comentada: Ellie Joffe el 29 de Nov. de 2022
Hi
I have a video stream that I read into MATLAB from an IP camera. I perform object detection in MATLAB and produce bounding boxes. I want to write the current video frame with the overlayed bounding box to another http or rtsp stream so that the result can be viewed remotely with an RTSP/HTTP viewer application.
It was reccomended that I could use GStreamer for this although I have not found any examples of this integration. Is there a better way to do this. Perhaps using VLC media player or perhaps I can just use the MATLAB function webwrite?

Respuestas (1)

Sakshay
Sakshay el 29 de Nov. de 2022
Hello Ellie,
As per my understanding, you are trying to send image data (single frame of a video) through HTTP using MATLAB.
Currently, MATLAB does not support GStreamer for Image Acquisition.
Instead, you can use the "webwrite" function in MATLAB to send the image data through HTTP. Please refer to the following documentation for more information:
You can also control the VLC player using MATLAB, if you want to stream using that. Please refer to the following code on File Exchange:
  1 comentario
Ellie Joffe
Ellie Joffe el 29 de Nov. de 2022
Thank you very much for your quick response.
I like both options that you suggested. If I use the webwrite function in a loop, will I be able to create a continuous video? In other words, I process a frame, use webwrite to post the output frame to the http server and loop back to process the 2nd frame and call webwrite again. Would this give me a continuous video on the http server?
Thank you very much for your help.

Iniciar sesión para comentar.

Categorías

Más información sobre MATLAB Support Package for IP Cameras en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by