does it is possible to live stream video in matlab with H.264 codec

16 visualizaciones (últimos 30 días)
Haris Elahi
Haris Elahi el 26 de Mzo. de 2018
Comentada: Lorenzo Giannini el 9 de Dic. de 2020
I have hikvision camera that has video encoding in H.264 I m wondering that if I could live stream that video in Matlab. Or it is possible to do with vlc video player.

Respuestas (3)

MathWorks MATLAB Hardware Team
MathWorks MATLAB Hardware Team el 27 de Ag. de 2020
Hi Haris,
MATLAB will be supporting H.264 encoded RTSP streams for IP Cameras through MATLAB Support Package for IPCameras in the upcoming release, MATLAB R2020b version. Hope it helps!
  3 comentarios
Walter Roberson
Walter Roberson el 22 de Sept. de 2020
tal mazor:
You cannot do that. R2020b is the first release that supports rtsp H.264 . Releases before that only support RTSP for Motion MPEG at most.

Iniciar sesión para comentar.


Walter Roberson
Walter Roberson el 26 de Mzo. de 2018
Historically it has not been possible to live stream h264, but I have not rechecked the latest two releases. I cannot presently rule out the possibility that a recent change to support for one of the boards such as arduino might perhaps have added the capability; it was not there in R2017a (not without running a custom adapter)
Devices such as gigabit cameras return entire frames in the mode supported by MATLAB, rather retuning h264 streams with some hypothetical function to decode the frames.
The historical support for h264 has only been from file, not streaming.
If you have Windows then you can use activexserver to talk to a COM object to do the decoding for you and to return the frames.
  5 comentarios
Haris Elahi
Haris Elahi el 26 de Mzo. de 2018
Editada: Walter Roberson el 7 de Dic. de 2020
Sir actually my camera is connected via ethernet cable. i use this cmd
cam = ipcam('rtsp://192.168.1.7:554/doc/page/preview.asp','admin','pass');

Iniciar sesión para comentar.


Astarag Chattopadhyay
Astarag Chattopadhyay el 22 de Sept. de 2020
The support for H.264 encoded RTSP streams in MATLAB Support Package for IPCameras is now available with MATLAB version R2020b.
  5 comentarios
Astarag Chattopadhyay
Astarag Chattopadhyay el 7 de Dic. de 2020
Hi Tal,
You can use the following documentation to troubleshoot the connection issue:
Ensure that the authorization is set to basic and not digest in the camera software settings. For further help please reach out to MathWorks Technical Support.

Iniciar sesión para comentar.

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by