Gsteamer capture use too much RAM

Hello, I use the Gstreamer pipeline to capture my camera from Udp
Like that:

cap("udpsrc uri=//myCameraUri  auto-multicast=true ! application/x-rtp, media=video, encoding-name=H264 ! rtpjitterbuffer latency=10 ! rtph264depay ! decodebin ! videoconvert ! video/x-raw, format=BGR ! appsink sync=false ", cv::CAP_GSTREAMER);

It’s working perfectly on my PC but when I moved it to Tablet (i5-8365U, Intel UHD Graphics 620, Windows 10 Pro) it’s working only for a few seconds (thru which it gain RAM) until it starts to lag, to break after exhausting it. Using VLC it’s not accumulating.

On any different device, it’s working fine.

What if you remove sync=false this?

Then delay appear, and it’s unusable :confused:

It will not work on tablet.

nonsense. it being a tablet form factor has nothing to do with the issue.

@Legion_PL please present all relevant code. this looks like you aren’t reading and processing frames quickly enough, so they queue up.

Try to use max-buffers=10 after appsink

2 Likes