<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Mplayer-vdpau: Matroska (.mkv) and AVCHD (.mts) now both working</title>
	<atom:link href="http://blog.mymediasystem.net/avchd/mplayer-vdpau-with-working-matroska/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mymediasystem.net/avchd/mplayer-vdpau-with-working-matroska/</link>
	<description>MyMediaSystem - 1080p - AVCHD - H.264 - Linux - 3D - GPS &#38; GPX</description>
	<lastBuildDate>Sun, 22 Aug 2010 21:29:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: acmelab68</title>
		<link>http://blog.mymediasystem.net/avchd/mplayer-vdpau-with-working-matroska/comment-page-1/#comment-1608</link>
		<dc:creator>acmelab68</dc:creator>
		<pubDate>Sun, 04 Jan 2009 22:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mymediasystem.net/?p=1573#comment-1608</guid>
		<description>&lt;strong&gt;[UPDATE]&lt;/strong&gt;the changes below and &lt;strong&gt;additionally&lt;/strong&gt; running Gnome (metacity) and not KDE4.1 (KWin) made all Matroska (.mkv) videos work.
I&#039;ve noticed this, the moment I went back to the KDE4.1 Plasma desktop, and ran the last tested Video again. It gave me again the &quot;Error 23&quot;. I went back to Gnome and it was fine, back again to KDE resulted in &quot;Error 23&quot;. So it was reproducible every time. 
I wasn&#039;t using either in Gnome nor in KDE compositing (no Gnome&#039;s built-in, not the one of KWin and not Compiz)

It seams KWin preallocate (wild guess) too much video ram, so mplayer-vdpau can&#039;t to the same anymore.

With the solution described below, and using Gnome I&#039;ve been able to play all approx. 20 .mkv flawlessly.
I still had tearing, and turning on TwinView resulted also under Gnome in an &quot;Error 23&quot; again.
-------------------------------------------

&lt;a href=&quot;#comment-1596&quot; rel=&quot;nofollow&quot;&gt;@Kyle Brandt&lt;/a&gt; 
Hi,
I didn&#039;t touch line 94 

&lt;blockquote&gt;&lt;code&gt;NUM_VIDEO_SURFACE_H264 = 17&lt;/code&gt;&lt;/blockquote&gt;


but set also in &lt;code&gt;libvo/vo_vdpau.c&lt;/code&gt; in line 704


&lt;blockquote&gt;&lt;code&gt;max_references = ((12 * 1024 * 1024) / surf_size) + 11;&lt;/code&gt;&lt;/blockquote&gt;


to 11.
I&#039;ve tested this constellation with approximately 20 1080p movies, and found only one which keeps giving me the &quot;&lt;em&gt;Error 23&lt;/em&gt;&quot; thing.

The solution above is a dirty hack, since the allocation of the memory isn&#039;t calculated, but guessed, and this on a by far too high basis. 
Card with less than 512MB memory and running additional X applications and also using Compiz may run into trouble again.

Well - I&#039;m going it to use it this way, knowing it&#039;s a workaround and waiting for the next version of mplayer-vdpau.</description>
		<content:encoded><![CDATA[<p><strong>[UPDATE]</strong>the changes below and <strong>additionally</strong> running Gnome (metacity) and not KDE4.1 (KWin) made all Matroska (.mkv) videos work.<br />
I&#8217;ve noticed this, the moment I went back to the KDE4.1 Plasma desktop, and ran the last tested Video again. It gave me again the &#8220;Error 23&#8243;. I went back to Gnome and it was fine, back again to KDE resulted in &#8220;Error 23&#8243;. So it was reproducible every time.<br />
I wasn&#8217;t using either in Gnome nor in KDE compositing (no Gnome&#8217;s built-in, not the one of KWin and not Compiz)</p>
<p>It seams KWin preallocate (wild guess) too much video ram, so mplayer-vdpau can&#8217;t to the same anymore.</p>
<p>With the solution described below, and using Gnome I&#8217;ve been able to play all approx. 20 .mkv flawlessly.<br />
I still had tearing, and turning on TwinView resulted also under Gnome in an &#8220;Error 23&#8243; again.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p><a href="#comment-1596" rel="nofollow">@Kyle Brandt</a><br />
Hi,<br />
I didn&#8217;t touch line 94 </p>
<blockquote><p><code>NUM_VIDEO_SURFACE_H264 = 17</code></p></blockquote>
<p>but set also in <code>libvo/vo_vdpau.c</code> in line 704</p>
<blockquote><p><code>max_references = ((12 * 1024 * 1024) / surf_size) + 11;</code></p></blockquote>
<p>to 11.<br />
I&#8217;ve tested this constellation with approximately 20 1080p movies, and found only one which keeps giving me the &#8220;<em>Error 23</em>&#8221; thing.</p>
<p>The solution above is a dirty hack, since the allocation of the memory isn&#8217;t calculated, but guessed, and this on a by far too high basis.<br />
Card with less than 512MB memory and running additional X applications and also using Compiz may run into trouble again.</p>
<p>Well &#8211; I&#8217;m going it to use it this way, knowing it&#8217;s a workaround and waiting for the next version of mplayer-vdpau.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle Brandt</title>
		<link>http://blog.mymediasystem.net/avchd/mplayer-vdpau-with-working-matroska/comment-page-1/#comment-1596</link>
		<dc:creator>Kyle Brandt</dc:creator>
		<pubDate>Sun, 04 Jan 2009 19:12:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mymediasystem.net/?p=1573#comment-1596</guid>
		<description>&lt;a href=&quot;#comment-1500&quot; rel=&quot;nofollow&quot;&gt;@acmelab68&lt;/a&gt; 
I have a 512mb card, and haven&#039;t got that error yet -- I have tested at least 10 different 1080p files (full length films). 

This might help: http://www.nvnews.net/vbulletin/showpost.php?p=1877372&amp;postcount=12
Which I think means you would want to edit the following line:
#define NUM_VIDEO_SURFACES_H264            17 // (1 frame being decoded, up to 16 references)

Did you keep the suggested change at + 2 or set it to something higher? The highest I have had to set it is 8...</description>
		<content:encoded><![CDATA[<p><a href="#comment-1500" rel="nofollow">@acmelab68</a><br />
I have a 512mb card, and haven&#8217;t got that error yet &#8212; I have tested at least 10 different 1080p files (full length films). </p>
<p>This might help: <a href="http://www.nvnews.net/vbulletin/showpost.php?p=1877372&amp;postcount=12" rel="nofollow">http://www.nvnews.net/vbulletin/showpost.php?p=1877372&amp;postcount=12</a><br />
Which I think means you would want to edit the following line:<br />
#define NUM_VIDEO_SURFACES_H264            17 // (1 frame being decoded, up to 16 references)</p>
<p>Did you keep the suggested change at + 2 or set it to something higher? The highest I have had to set it is 8&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: acmelab68</title>
		<link>http://blog.mymediasystem.net/avchd/mplayer-vdpau-with-working-matroska/comment-page-1/#comment-1500</link>
		<dc:creator>acmelab68</dc:creator>
		<pubDate>Sat, 03 Jan 2009 14:44:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mymediasystem.net/?p=1573#comment-1500</guid>
		<description>&lt;a href=&quot;#comment-1297&quot; rel=&quot;nofollow&quot;&gt;@Kyle Brandt&lt;/a&gt; 
I&#039;ve got &quot;Error 25&quot; when trying to play one video, and your suggested solution worked fine. But now I&#039;m getting Error &quot;23 at libvo/vo_vdpau.c:791&quot;, what means there is not enough video memory. Closing all X applications didn&#039;t help, neither did a fresh KDE restart.
Shouldn&#039;t 512MB video RAM  be enough to play a 1080p movie? Strange.

Regards,
Andreas</description>
		<content:encoded><![CDATA[<p><a href="#comment-1297" rel="nofollow">@Kyle Brandt</a><br />
I&#8217;ve got &#8220;Error 25&#8243; when trying to play one video, and your suggested solution worked fine. But now I&#8217;m getting Error &#8220;23 at libvo/vo_vdpau.c:791&#8243;, what means there is not enough video memory. Closing all X applications didn&#8217;t help, neither did a fresh KDE restart.<br />
Shouldn&#8217;t 512MB video RAM  be enough to play a 1080p movie? Strange.</p>
<p>Regards,<br />
Andreas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: acmelab68</title>
		<link>http://blog.mymediasystem.net/avchd/mplayer-vdpau-with-working-matroska/comment-page-1/#comment-1319</link>
		<dc:creator>acmelab68</dc:creator>
		<pubDate>Thu, 01 Jan 2009 03:40:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mymediasystem.net/?p=1573#comment-1319</guid>
		<description>Wow, this is what I call a constructive comment!
Thanks a lot!

Regards,
Andreas</description>
		<content:encoded><![CDATA[<p>Wow, this is what I call a constructive comment!<br />
Thanks a lot!</p>
<p>Regards,<br />
Andreas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle Brandt</title>
		<link>http://blog.mymediasystem.net/avchd/mplayer-vdpau-with-working-matroska/comment-page-1/#comment-1297</link>
		<dc:creator>Kyle Brandt</dc:creator>
		<pubDate>Wed, 31 Dec 2008 19:54:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mymediasystem.net/?p=1573#comment-1297</guid>
		<description>With this build I was getting the following error with 1080p H.264 mkv files:
&quot;Error 25 at libvo/vo_vdpau.c:992&quot;

To fixed this I change line 704 in libvo/vo_vdpau to:
max_references = ((12 * 1024 * 1024) / surf_size) + 2; //2 more (ugly hack)

as suggested here: http://www.nvnews.net/vbulletin/showpost.php?p=1882910&amp;postcount=352

After making the change I ran &#039;make&#039; in the mplayer-vdpau folder ( no need to run checkout-patch-build.sh )

You may need to increase &#039;+ 2&#039; to something higher depending on the video. 

Thanks acmelab for this blog!</description>
		<content:encoded><![CDATA[<p>With this build I was getting the following error with 1080p H.264 mkv files:<br />
&#8220;Error 25 at libvo/vo_vdpau.c:992&#8243;</p>
<p>To fixed this I change line 704 in libvo/vo_vdpau to:<br />
max_references = ((12 * 1024 * 1024) / surf_size) + 2; //2 more (ugly hack)</p>
<p>as suggested here: <a href="http://www.nvnews.net/vbulletin/showpost.php?p=1882910&amp;postcount=352" rel="nofollow">http://www.nvnews.net/vbulletin/showpost.php?p=1882910&amp;postcount=352</a></p>
<p>After making the change I ran &#8216;make&#8217; in the mplayer-vdpau folder ( no need to run checkout-patch-build.sh )</p>
<p>You may need to increase &#8216;+ 2&#8242; to something higher depending on the video. </p>
<p>Thanks acmelab for this blog!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
