OpenCV 4.4 VideoCapture Memory Leak with Gstreamer #21435
Labels
category: videoio(camera)
category: videoio
incomplete
needs reproducer
Provide complete minimal reproducer with input data
platform: win32
System information (version)
Detailed description
When using OpenCV with gstreamer support, VideoCapture API appears to have a memory leak.
Observed behavior was a complete program shutdown after a long period of time.
Ran through Visual Studio debugger, and memory heap profiling shows consistent growth.
VideoCapture is initialized with a gstreamer pipeline, reading an encoded video stream over UDP.
Issue exists with H265, H264, UDP multicast, RTP or MPEGTS
Pipeline example:
"udpsrc address=225.1.1.1 port=5555 ! queue ! tsdemux ! h265parse ! video/x-h265, stream-format=byte-stream, alignment=au ! queue ! avdec_h265 ! videoconvert ! queue ! appsink"
Memory issue appears to go away if I switch the backend to using FFMPEG
Steps to reproduce
Issue submission checklist
forum.opencv.org, Stack Overflow, etc and have not found solution
The text was updated successfully, but these errors were encountered: