dusty-nv / jetson-utils

C++/CUDA/Python multimedia utilities for NVIDIA Jetson

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

read rtsp camera error

kankanjiuzou123 opened this issue · comments

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

[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