<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[SmoothVideo Project — High memory usage with dynamic subtitles]]></title>
		<link>https://www.svp-team.com/forum/viewtopic.php?id=1086</link>
		<atom:link href="https://www.svp-team.com/forum/extern.php?action=feed&amp;tid=1086&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in High memory usage with dynamic subtitles.]]></description>
		<lastBuildDate>Mon, 17 Dec 2012 05:30:22 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: High memory usage with dynamic subtitles]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=28140#p28140</link>
			<description><![CDATA[<p><strong>Solinus</strong><br />as practice shown xy-VSFilter bring some instability and memory overuses<br />FFDShow subtitle mechanism is normal, stability and as I know works fine with all type of subtitles</p>]]></description>
			<author><![CDATA[null@example.com (%username%)]]></author>
			<pubDate>Mon, 17 Dec 2012 05:30:22 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=28140#p28140</guid>
		</item>
		<item>
			<title><![CDATA[Re: High memory usage with dynamic subtitles]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=28139#p28139</link>
			<description><![CDATA[<p>If you&#039;re not going to be rendering subtitles at 1920x1080, there&#039;s no point in using MPC-HC&#039;s internal subtitle renderer. xy-VSFilter is significantly faster and better.</p>]]></description>
			<author><![CDATA[null@example.com (Solinus)]]></author>
			<pubDate>Mon, 17 Dec 2012 05:26:54 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=28139#p28139</guid>
		</item>
		<item>
			<title><![CDATA[Re: High memory usage with dynamic subtitles]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=28128#p28128</link>
			<description><![CDATA[<p><strong>PsykoTenshi</strong><br /><em>I got to this performance graph and a stable framerate all along (on a 1280x720 window). Maximum memory usage was 906 Mb</em><br />It is good news! Congratulations!</p><p><em>I played the same bit of video like 20 times in a row, that music is going to resonate in my head for days.</em><br />Yeah <img src="https://www.svp-team.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /> I think soon I will can sing this song by heart <img src="https://www.svp-team.com/forum/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[null@example.com (MAG79)]]></author>
			<pubDate>Sun, 16 Dec 2012 23:22:15 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=28128#p28128</guid>
		</item>
		<item>
			<title><![CDATA[Re: High memory usage with dynamic subtitles]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=28127#p28127</link>
			<description><![CDATA[<p>Thanks <img src="https://www.svp-team.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /> <br />For some reason I didn&#039;t even consider subtitles as a cause for the problem, so I didn&#039;t disable them to confirm. I will edit the first post title to more accurately tell what causes this issue.</p><p>Edit:<br />For science! I tried changing the renderer in MPC output settings as well as subtitles settings. I got some interesting results.<br />I quickly found out that I could get stable framerate (almost, it dropped to 59, 58 fps a couple times) on these troublesome dynamic subtitles by using these settings:<br /><span class="postimg"><img src="http://imageshack.us/a/img823/1244/subtitlesettings1.png" alt="http://imageshack.us/a/img823/1244/subtitlesettings1.png" /></span></p><p>Instead of the default ones:<br /><span class="postimg"><img src="http://imageshack.us/a/img577/2819/subtitlesettings2.png" alt="http://imageshack.us/a/img577/2819/subtitlesettings2.png" /></span></p><p>The texture size at 720p did not represent a noticeable loss on fullscreen (and I have a 1080p display).<br />I could not find a fix to the high memory usage, but I did notice that different output renderers had slightly different memory performance. I did not make enough runs to call this a truly reliable &quot;scientific&quot; test, but (always on a 720p window):<br />-VMR-9 (renderless) peaks to about 900 Mb.<br />-EVR Custom Presenter peaks <em>barely</em> over 900 Mb, and not always gets over 900.<br />-Haali has the lowest memory usage of all, doesn&#039;t reach 600 Mb, but it also had flashing subtitles on my settings <img src="https://www.svp-team.com/forum/img/smilies/sad.png" width="15" height="15" alt="sad" /> <br />-madVR seems to hit a &quot;limit&quot; at 910 Mb, but always reaches that level.</p><p>Something noteworthy: Disabling &quot;Allow animation when buffering&quot; on MPC Subtitles options allows to free up memory <strong>much</strong> quicker.<br />I recalled one of these had a higher memory usage so I played the ending with all renderers again but with subtitle textures set to 1920x1080. It would seem Haali uses a lot more memory (even when the window size was 1280x720) with higher subtitle textures. I tried getting to an optimal setting with the Haali renderer with no avail, as it requires &quot;Allow animation when buffering&quot; enabled so subtitles are constantly visible. </p><p>Using EVR Custom Presenter and the subtitle settings I posted before I got to this performance graph and a stable framerate all along (on a 1280x720 window). Maximum memory usage was 906 Mb.<br /><span class="postimg"><img src="http://img405.imageshack.us/img405/9008/performancegraphbetter.png" alt="http://img405.imageshack.us/img405/9008/performancegraphbetter.png" /></span></p><p>Yes, I played the same bit of video like 20 times in a row, that music is going to resonate in my head for days.</p>]]></description>
			<author><![CDATA[null@example.com (PsykoTenshi)]]></author>
			<pubDate>Sun, 16 Dec 2012 21:28:10 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=28127#p28127</guid>
		</item>
		<item>
			<title><![CDATA[Re: High memory usage with dynamic subtitles]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=28119#p28119</link>
			<description><![CDATA[<p><strong>PsykoTenshi</strong><br />Thank you. I saw the same picture with &quot;hill&quot; at memory use graphic. It is dynamic subtitles. It was not enough time to make some tests with it.<br />I will compare different subtitle filters and renderers to find better.</p>]]></description>
			<author><![CDATA[null@example.com (MAG79)]]></author>
			<pubDate>Sun, 16 Dec 2012 13:07:32 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=28119#p28119</guid>
		</item>
		<item>
			<title><![CDATA[Re: High memory usage with dynamic subtitles]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=28077#p28077</link>
			<description><![CDATA[<p>I just went ahead and uploaded it while I was out for a while.<br /><a href="http://filesmelt.com/dl/Motion_interpolation_test.mkv">http://filesmelt.com/dl/Motion_interpolation_test.mkv</a><br />It&#039;s a whole episode. I didn&#039;t check closely but apparently the whole thing plays ok, with the exception of the ending credits (starting around 22:20) that refuse to play at 60 fps.</p>]]></description>
			<author><![CDATA[null@example.com (PsykoTenshi)]]></author>
			<pubDate>Thu, 13 Dec 2012 18:36:49 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=28077#p28077</guid>
		</item>
		<item>
			<title><![CDATA[Re: High memory usage with dynamic subtitles]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=28076#p28076</link>
			<description><![CDATA[<p><strong>PsykoTenshi</strong><br />I downloaded 720p MP4 version from YouTube by your link.<br />It played to me nice. With good memory use line.</p><p><span class="postimg"><img src="http://www.svp-team.com/forum/misc.php?item=2056" alt="http://www.svp-team.com/forum/misc.php?item=2056" /></span></p><p>You are right. To reproduce memory use bug I need right this &quot;problem&quot; file what you have.</p>]]></description>
			<author><![CDATA[null@example.com (MAG79)]]></author>
			<pubDate>Thu, 13 Dec 2012 14:55:19 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=28076#p28076</guid>
		</item>
		<item>
			<title><![CDATA[Re: High memory usage with dynamic subtitles]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=28075#p28075</link>
			<description><![CDATA[<p>After some testing, I have determined it&#039;s the particular encoding of some particular episodes, <strong>plus</strong> my 1.5Tb Seagate hard drive (ST31500341AS) acting up as I moved the videos to my other drive, a 640Gb WD (WD6400AAKS-00E4A0) and things performed <em>slightly</em>... less bad.</p><p>Putting it on clearer terms: I have this video sequence <a href="https://www.youtube.com/watch?v=tUS7gSv2ZxE">https://www.youtube.com/watch?v=tUS7gSv2ZxE</a><br />On &quot;encoding A&quot; and &quot;encoding B&quot;.<br />Encoding A performs excellently on both hard drives.<br />Encoding B has very poor performance on Seagate hard drive, slightly less bad on WD hard drive.</p><p>My internet connection isn not exactly fast for uploads, so uploading a ~300Mb video file for the final 1:30 minutes isn not exactly profitable, and if I re-encoded the troublesome bit and sent it I would lose the particular encoding that triggers this issue.<br />As I obtained the video file on a &quot;t0rr3nt&quot; site, I&#039;m not entirely sure if I&#039;m allowed to post a such a link here, in addition to the fact I have yet to find a &quot;Forum Rules&quot; section xP<br />I would PM you but I have found no way of doing so either so... what to do?</p><p>I will try to upload the video later today, though.</p>]]></description>
			<author><![CDATA[null@example.com (PsykoTenshi)]]></author>
			<pubDate>Thu, 13 Dec 2012 12:54:18 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=28075#p28075</guid>
		</item>
		<item>
			<title><![CDATA[Re: High memory usage with dynamic subtitles]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=28069#p28069</link>
			<description><![CDATA[<p><strong>PsykoTenshi</strong><br />I have never seen such strange memory usage line. <img src="https://www.svp-team.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />Can you share this file to me or part of it what shows such behavior?<br />I will take a look</p>]]></description>
			<author><![CDATA[null@example.com (MAG79)]]></author>
			<pubDate>Thu, 13 Dec 2012 04:42:56 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=28069#p28069</guid>
		</item>
		<item>
			<title><![CDATA[Re: High memory usage with dynamic subtitles]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=28043#p28043</link>
			<description><![CDATA[<p>Well, just for the sake of science, I watched another episode of that particular anime where I experienced the &quot;memory leak&quot; (if it&#039;s fit to call it so).<br />I got a sign at the same spot where I got the memory leak ones before, I took a screenshot of it but I was so dumb of copying some text before pasting it on an image editor.<br />If my memory serves me right, it was something about an error when generating an errorlog (oh, the irony).<br />Afterwards I noticed the ending on that anime is rather merciless on motion interpolation. Here&#039;s a link to said ED <a href="https://www.youtube.com/watch?v=tUS7gSv2ZxE#t=0m17s">(Youtube link)</a>. Up to 0:57, it&#039;s like it was designed to not be &quot;SVP&#039;d&quot;. They&#039;ll have to try harder &gt;:3<br />SVP takes it like a boss and generates not only the frames needed for 60 fps but also <span class="bbu">no artifacts</span> <img src="https://www.svp-team.com/forum/img/smilies/cool.png" width="15" height="15" alt="cool" /> (well, no artifacts that I could see)<br />Then I did a quick test on that ending and watched it (on 720p) with the performance graphs running.<br /><span class="postimg"><img src="http://imageshack.us/a/img542/1307/performancegraphsanimee.png" alt="http://imageshack.us/a/img542/1307/performancegraphsanimee.png" /></span><br />Then, I did the same but on fullscreen (I have a 1080p display). That&#039;s when MPC&#039;s memory usage hit over 1100Mb, and in less than 1 minute! It peaks specifically on the part with a girl with a black dress. It&#039;s like a crazy motion interpolation test&nbsp; <img src="https://www.svp-team.com/forum/img/smilies/hmm.png" width="15" height="15" alt="hmm" />&nbsp; <br /><span class="postimg"><img src="http://imageshack.us/a/img254/1307/performancegraphsanimee.png" alt="http://imageshack.us/a/img254/1307/performancegraphsanimee.png" /></span><br />The 400-something Mb is me being a fool and not noticing MPC continues to use memory while on pause.<br />I think I should note that while I wasn&#039;t exactly noticeable due to a lack of a clear movement pattern, the first half of the video had very unstable framerates (even below 24) according to Fraps.</p>]]></description>
			<author><![CDATA[null@example.com (PsykoTenshi)]]></author>
			<pubDate>Tue, 11 Dec 2012 15:16:05 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=28043#p28043</guid>
		</item>
		<item>
			<title><![CDATA[Re: High memory usage with dynamic subtitles]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=28037#p28037</link>
			<description><![CDATA[<p><strong>PsykoTenshi</strong><br /><em>I think however, that the MemoryLeaksDetails mod.zip fixed the issue</em><br />No. It contain more detailed log when leak occurs. To easy understand what happend <img src="https://www.svp-team.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (MAG79)]]></author>
			<pubDate>Tue, 11 Dec 2012 10:46:59 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=28037#p28037</guid>
		</item>
		<item>
			<title><![CDATA[Re: High memory usage with dynamic subtitles]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=28035#p28035</link>
			<description><![CDATA[<div class="quotebox"><cite>MAG79 wrote:</cite><blockquote><p>What filter are you using for subtitles?</p></blockquote></div><p>Well, this is embarrassing. I have no idea. Overall, video decoding isn&#039;t my specialty, I usually fiddle with player settings until I get it working as I want to.</p><p>If I understood Media Player Classic&#039;s tooltip&#039;s correctly, I&#039;m using its internal subtitle renderer, and EVR Custom Pres. for Direct Show video.<br />I think however, that the MemoryLeaksDetails mod.zip fixed the issue, as I played both the proportionally biggest video I have (1.22Gb for 24 min! 1080p + 3 audio streams, 2 of them in flac lol) and a 51 min 720p video with no issues. Both had ASS (talk about an unlucky acronym) lossless compression subtitles.<br />Memory usage for Media Player Classic <a href="http://imageshack.us/a/img443/1919/witchcraftfrollo.jpg">didn&#039;t even reach 600 Mb when playing the 1080p video @ 60fps</a>.</p><p>P.S.: I should note that I&#039;ve set all 4 profiles to the same settings.</p>]]></description>
			<author><![CDATA[null@example.com (PsykoTenshi)]]></author>
			<pubDate>Tue, 11 Dec 2012 10:25:34 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=28035#p28035</guid>
		</item>
		<item>
			<title><![CDATA[Re: High memory usage with dynamic subtitles]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=28009#p28009</link>
			<description><![CDATA[<p>Or you can use this modification of SVP Manager. It contains details in log file about memory leaks.</p><p>Show your log file after error occurs again.</p><p>Download: <a href="http://www.svp-team.com/forum/misc.php?item=2051&amp;download=1">SVPMgr_MemoryLeaksDetails_mod.zip</a><br /><div class="offtop">1. Exit SVP Manager<br />2. Unpack to SVP folder with files replacing<br />3. Run SVP Manager</div></p>]]></description>
			<author><![CDATA[null@example.com (MAG79)]]></author>
			<pubDate>Tue, 11 Dec 2012 04:16:57 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=28009#p28009</guid>
		</item>
		<item>
			<title><![CDATA[Re: High memory usage with dynamic subtitles]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=28007#p28007</link>
			<description><![CDATA[<p><strong>PsykoTenshi</strong><br />Thank you for detailed description.</p><div class="quotebox"><blockquote><p>memory leak in the video player: 1170 MB</p></blockquote></div><p>It is high value of memory use at your settings.</p><p>From log I see it took 17 minutes from start playing after rewind to used memory grown to 1170 MB:<br /></p><div class="quotebox"><blockquote><p><div class="offtop">10:36:19.085; ===== rewind backward 00:05:24 / 00:23:38<br />10:53:44.726; Error: Warning: there&#039;s a memory leak in the video player: 1170 MB</div></p></blockquote></div><p>I met used memory growth when used wrong subtitle filter.<br />1. What filter are you using for subtitles?<br />2. Show please used memory graph from SVP performance graphs window while error appears again?</p>]]></description>
			<author><![CDATA[null@example.com (MAG79)]]></author>
			<pubDate>Tue, 11 Dec 2012 02:59:23 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=28007#p28007</guid>
		</item>
		<item>
			<title><![CDATA[High memory usage with dynamic subtitles]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=28002#p28002</link>
			<description><![CDATA[<p>Originally posted to report memory usage peaking, dynamic subtitles confirmed as the cause.<br />This bug seems to have been fixed on SVP 3.1.3! <img src="https://www.svp-team.com/forum/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>==============<br />Original Post below<br />==============<br />But first, bear with me while I attempt to put in words how grateful I am for this stunningly amazing piece of software. If you ask me, SVP is a prime example of hardworking independent developers pulling out <strong>freeware</strong> with capabilities commercial software can&#039;t even dream of.<br />Why such a difference? Because software such as <em>SVP is intended primarily to work</em>, not to sell. And that&#039;s why I love the thing. It&#039;s efficient, unlike most of everything you see out there.<br />What really moves me is all the effort the SVP developers put into it. I&#039;m not exactly trained on coding, I can barely do some kiddie-level scripting, but just using the UI, reading the documentation and logs, and most importantly: <strong>The results</strong>. Steady 60 fps on 720p and just 30% cpu load?! YES PLEASE.</p><p>Of course, no software is perfect. Yesterday, I got a warning sign while watching an anime episode. I didn&#039;t take note of what it said, mostly because of the shock I think, it was the first unexpected issue I ever had with SVP after all.<br />Fortunately the same message is on the attached errorlog, apparently it said this: &quot;Error: Warning: there&#039;s a memory leak in the video player: 1170 MB<br />To prevent the closing of the player due to lack of memory a script restarted improve smoothness.&quot;<br />Gotta love &quot;good guy SVP&quot; xD<br />&quot;Detects memory leak. Fixes, warns user and doesn&#039;t even break playback.&quot;</p><p>My 1280x720@24 profile is as follows:<br />Frames interpolation mode: &quot;2m&quot; (min artifacts)<br />SVP shader: 2. Sharp (for anime)<br />Motion vectors interpolation mode (grayed out for some reason): Bilinear<br />Target frame rate: To screen refresh rate (default)<br />Motion vectors grid: 32 px. Large 0<br />Decrease grid step: By two with global refinement<br />Search radius: Small and fast<br />Motion vectors precision: Two pixels<br />Wide search: Disable<br />Artifacts masking: Strongest<br />Processing of scene changes: Repeat frame (default)<br />Decrease frame size: Disable (default)<br />btw, I&#039;ve extensively tested these settings and I dare to say it works about perfectly with not just anime, but with live action videos as well.</p><p>My system specs:<br />AMD Phenom II 955 (x4 @ 3.2 Ghz)<br />Gigabyte 870A-USB3<br />Sapphire Radeon HD 4890 Vapor-X<br />2x G-Skill F3-12800CL8-2GBTD (2x2Gb 1333Mhz)</p><p>Additionally, the video-related MediaInfo on the anime episode I was watching during the memory leak. Not sure if it&#039;ll be of any help but, best to be sure.<br />[container and general information]<br />Writing application: mkvmerge v5.0.1 (&#039;Es ist Sommer&#039;) built on Oct 9 2011 11:55:43<br />Writing library: libebml v1.2.2 + libmatroska 1.3.0<br />[first video stream]<br />ID: 1<br />Format: AVC<br />Format/Info: Advanced Video Codec<br />Format profile: High 10@L5.0<br />Format settings, CABAC : Yes<br />Format settings, ReFrames: 16 frames<br />Muxing mode: Header stripping<br />Codec ID: V_MPEG4/ISO/AVC<br />Duration: 23mn 39s<br />Width: 1 280 pixels<br />Height: 720 pixels<br />Display aspect ratio : 16:9<br />Frame rate mode: Constant<br />Frame rate: 23.976 fps<br />Color space: YUV<br />Chroma subsampling : 4:2:0<br />Bit depth: 10 bits<br />Scan type: Progressive<br />Title: H.264<br />Writing library: x264 core 125 r2200+677M 3a754e7<br />Encoding settings: cabac=1 / ref=16 / deblock=1:1:1 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / fade_compensate=0.80 / psy_rd=0.92:0.02 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / fgo=0 / bframes=10 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=17.2000 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / ip_ratio=1.40 / aq=3:0.92<br />Default: Yes<br />Forced: No<br />Matrix coefficients: BT.709</p><p>Apologies for the gigantic post, I didn&#039;t find a &quot;compacting spoiler tag&quot; so I couldn&#039;t do much about the wall of text.</p>]]></description>
			<author><![CDATA[null@example.com (PsykoTenshi)]]></author>
			<pubDate>Mon, 10 Dec 2012 20:24:07 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=28002#p28002</guid>
		</item>
	</channel>
</rss>
