Memory leak of videoscale & videoconvert
Hi, the speed of memory increase is about 40MB per hour,when i use these two pipeline in my app to transfer video by rtmp:
···
GstElement *pipeline0 = gst_parse_launch("v4l2src device=/dev/video0 io-mode=dmabuf ! video/x-raw,format=(string)YUY2,width=1280,height=720 ! videoscale! video/x-raw,width=640,height=360,framerate=(fraction)25/1 ! videoconvert ! v4l2h264enc output-io-mode=dmabuf ! rtph264pay ! udpsink port=26369 buffer-size=5000000
", NULL);
GstElement *pipeline1 = gst_parse_launch("udpsrc address=localhost buffer-size=5000000 port=26369 ! application/x-rtp,encoding-name=H264 ! rtph264depay ! flvmux streamable=true ! rtmpsink location=rtmp://192.168.1.100:6012/livertmp", NULL);
···
I think the reason of memory increasing is videoscale&videoconvert because i have done some test. For example, the memory will be very stable when i remove videoscale and videoconvert, using “queue” to connect v4l2src and v4l2h264enc, and "h264parse" to connect v4l2h264enc and rtph264pay. Like this:
GstElement *pipeline0 = gst_parse_launch("v4l2src device=/dev/video0 io-mode=dmabuf ! video/x-raw,format=(string)YUY2,width=1280,height=720 ! queue ! v4l2h264enc output-io-mode=dmabuf ! h264parse ! rtph264pay ! udpsink port=26369 buffer-size=5000000", NULL);
Can it proves that the reason for memory growth is the using of videoscale&videoconvert in the pipeline? What can i do to fix this?