Hello nxp,
In imx8qm, we apply gstreamer for Video streaming.
We found there is memory leak with below two pipelines, and after remove red part(imxvideoconvert_g2d ! 'video/x-raw,width=640,height=368,framerate=(fraction)25/1'), memory leak issue gone.
Could you give some advice for this imxvideoconvert_g2d memory leak issue?
There is two pipelines,
gst-launch-1.0 v4l2src device=/dev/video2 io-mode=dmabuf ! 'video/x-raw,format=(string)YUY2,width=1280,height=720,framerate=(fraction)25/1' ! imxvideoconvert_g2d ! 'video/x-raw,width=640,height=368,framerate=(fraction)25/1' ! videoconvert ! v4l2h264enc output-io-mode=dmabuf ! rtph264pay ! udpsink port=26369 buffer-size=5000000
gst-launch-1.0 udpsrc address=localhost buffer-size=9000000 port=26369 ! 'application/x-rtp,encoding-name=H264' ! rtph264depay ! flvmux streamable=true ! rtmpsink location=rtmp://170.255.0.6:6012/livertmp/HIRAIN0DT0TEST001-1
Thanks
yuchao
hello nxp expert,
is there any update?
BR
yuchao
Hello,
I can not reproduced the issue are you using an EVK board? try to change the GPU memory size, with gpumem
Regards
Hello yochao,
Which device is this? I tested with MX8MP with L515 and no memory leak happens.
Regards
hello nxp expert,
we use imx8qm board, it happend 1.6MB/h memory leak.
Could you help try to use imx8qm mek board?
And when use width/height = 16:9,memory leak issue gone, seems memory leak happen when width/height != 16:9, so please use exact "width=640,height=368"
thanks
yuchao