Shmsink stream does not release memory

classic Classic list List threaded Threaded
1 message Options
LC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Shmsink stream does not release memory

LC
Hello,

I have a stream on shmsink: rtspsrc latency=100 location=rtsp://192.168.x.xx:xxx/H.264/media.smp ! rtph264depay ! h264parse ! avdec_h264 ! videorate ! videoscale ! videoconvert ! video/x-raw,width=1920,height=1080,framerate=50/1,format=BGR ! shmsink socket-path=/tmp/rtspfeed1 buffer-time=0 wait-for-connection=false.

When i open it i got 2GB Virtual Memory. When i close that stream,  unref pipeline pointer, flush the bus, unref, i still got very high virtual memory. About 1.7GB. I checked that shared memory socket by that name does not exists there anymore, so i think that virtual memory should decrease a lot.

When i open the same stream again, virtual memory grows from 1,7GB up to 2GB .

What may cause that Virtual memory is not freed ?
Maybe the way i release the pipeline and pipeline resources is wrong ?

Thanks!
Loading...