Check if RTSP Stream is still active

Hello @KevinKL @pammyleong @Kelvin_Huang -

I’ve been running some long-running tests on the AMB82, and one I issue I noticed is that sometimes, the RTSP stream from the camera gets frozen.

On my VLC viewer, I can still see the “last” stream from the camera, it is frozen - but my MQTT publish is still live (Still receiving messages on the mqtt broker) which means the device network is still working, but except, the camera stream is frozen. See the screenshot, the RTSP stream cannot connect but the MQTT messages from AMB82 are still coming in -

Is there some way we can check the status/health of the RTSP stream, and if it is stuck/not working can we restart or reset the stream ?

Thank you !

Hi @roq ,

You can view the RTSP streaming information on VLC: Go to Tools > Media Information > Statistics. Besides, you can print out streaming info by calling the printInfo() function in the loop(), you may refer to the StreamRTSP examples for further reference.
image

Yes, you can press the reset button on the board to restart the stream and play button on VLC to view the stream.

Thank you.

Thanks @KevinKL - will use this example.

Best Regards