AnsweredAssumed Answered

Memory leak  when gstreamer playing RTSP with libgstvpu

Question asked by Liang JiaXing on Jan 28, 2019
Latest reply on Jul 5, 2019 by Qiang Li - Mpu Se


gst-launch-1.0 playbin uri=rtsp://


The memory of gst-launch-1.0 will increase more than 30M every hour, then the video stop, but audio soud ok。


 Delete the , use the same commad. memory will not increase,  but play the high resolution (1920x1080) not smooth.


Anybody  has faced the same problem and resolved? Please help



Karina Valencia Aguilar


I do more test.

Compare playing local video file and RTSP:

1)  play 1920x1080 (MPEG4\AVC_H_L3local files, that seems not has memory leak.  (log file : gplay-test-AVC_H_L3_Schindlers.log、gplay-test-MPEG4_Schindlers.log)

2) play 1920x1080 (AVC_H) RTSP, memory increase about 16M. (log file: gplay-test-AVC_H_RTSP.log)


Compare playing RTSP(960x540 AVC_H)  with vpudec and avdec_h264 lib:

a) use vpudec , memory increase about 10M in 20 mins.( log file: gplay-test-AVC_H_RTSP_with_VPU.log)

b) use avdec_h264(delete /usr/lib/gstreamer-1.0/ , memory not increase. (log file: gplay-test-AVC_H_RTSP_with_avdec_h264.log)





Kernel: 4.1.15

BSP: 2.0.1 GA

vpudec: imx-gst1.0-plugin-4.1.4