Jetson nano dual camera stop when play too long

I’m using jetson nano for face recognition 24/7. When my system was run about 4-5 hours, GStreamer can not read frames from the camera. I try to run again and have an error:
Error Timeout: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function openSocketConnection(), line 215)
I restart jetson nano, I don’t meet this system again. But when I run my system too long still have this error.
This is the function I used to get GStreamer and push to openCV to process this:

def get_jetson_gstreamer_source(capture_width, capture_height, display_width, display_height, framerate, flip_method,sensor_id) :

    """

    Return an OpenCV-compatible video source description that uses gstreamer to capture video from the camera on a Jetson Nano

    """

    return (

            f'nvarguscamerasrc sensor_id={sensor_id} ! video/x-raw(memory:NVMM), ' +

            f'width=(int){capture_width}, height=(int){capture_height}, ' +

            f'format=(string)NV12, framerate=(fraction){framerate}/1 ! ' +

            f'nvvidconv flip-method={flip_method} ! ' +

            f'video/x-raw, width=(int){display_width}, height=(int){display_height}, format=(string)BGRx ! ' +

            'videoconvert ! video/x-raw, format=(string)BGR ! appsink'

            )

Could you try the same pipeline with gst-launch-1.0 to check if can repoduce?

1 Like

Could you guide me how to use gst-launch-1.0 in my code ? many thanks

Have a reference to below document.

Hi, I just read the document you sent to me. I think it’s not my problem. Because when we use GStreamer too long with CSI camera, we still can not display video with GStreamer.

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Do you mean you can reproduce the issue with gst-launch-1.0? What the command line to reproduce the issue?