dusty-nv / jetson-utils

C++/CUDA/Python multimedia utilities for NVIDIA Jetson
MIT License
732 stars 287 forks source link

read rtsp camera error #157

Open kankanjiuzou123 opened 1 year ago

kankanjiuzou123 commented 1 year ago

when I use jetson-util read rtsp camera,a few minutes after acquiring the camera image, the following error message will appear, how should I solve it? [gstreamer] gstDecoder::Capture() -- an error occurred retrieving the next image buffer

dusty-nv commented 1 year ago

[gstreamer] gstDecoder::Capture() -- an error occurred retrieving the next image buffer

If there are repeated timeouts (videoSource.Capture() will return None in Python or set a timeout error code in C++) then you could try doing videoSource.Close() followed by videoSource.Open(), or just delete and re-create the videoSource to re-establish the RTSP connection.

EDIT: it would seem the pipeline needs to be recreated - https://forums.developer.nvidia.com/t/restarting-reconnecting-rtsp-source-on-eos/177034/9