<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>​Hi<br>
</p>
<p><br>
</p>
<p>Maybe try adding a queue in the pipeline, or setting "sync=false" for the xvimagesink.<br>
</p>
<p><br>
</p>
<p>Gary<br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> gstreamer-devel <gstreamer-devel-bounces@lists.freedesktop.org> on behalf of Pavel Myuller <pavel.myuller@gmail.com><br>
<b>Sent:</b> 21 August 2020 08:56<br>
<b>To:</b> gstreamer-devel@lists.freedesktop.org<br>
<b>Subject:</b> Slowly growing memory usage with H264 decoding</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Hi All,</div>
<div><br>
</div>
<div>I have a problem with this command:</div>
<div><br>
</div>
<div>gst-launch-1.0 filesrc location="file.mp4" ! qtdemux ! avdec_h264 ! xvimagesink</div>
<div><br>
</div>
<div>GStreamer version is 1.16.1 from Ubuntu 19.10 distribution (also reproduced on 1.16.2)<br>
</div>
<div><br>
</div>
<div>The memory usage of the gst-launch process is continuously growing while the file is being played. The rate of growth is very slow at ~1MB/7min.</div>
<div><br>
</div>
<div>If I replace xvimagesink with fakesink, the memory grows much faster until the file is successfully decoded. Steadily from ~140MB to ~170MB for 4 hour video.</div>
<div><br>
</div>
<div>This problem persists with playbin and decodebin elements.</div>
<div><br>
</div>
<div>If I replace source H264 video with the one encoded in VP9, the problem goes away. Any other H264 video exhibits this problem.<br>
</div>
<div><br>
</div>
<div>Anyone else experienced this? What can I do to diagnose the issue better?</div>
<div><br>
</div>
<div>Thanks you in advance,<br>
</div>
<div>
<div><br>
</div>
<div>Pavel Myuller.</div>
</div>
</div>
</div>
</div>
</body>
</html>