<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for 6581 Useful Things</title>
	<atom:link href="http://sid6581.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://sid6581.wordpress.com</link>
	<description>Random tech stuff</description>
	<lastBuildDate>Tue, 10 Feb 2009 09:29:55 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Minimizing audio capture latency in DirectShow by Angel G</title>
		<link>http://sid6581.wordpress.com/2006/10/09/minimizing-audio-capture-latency-in-directshow/#comment-86</link>
		<dc:creator>Angel G</dc:creator>
		<pubDate>Tue, 10 Feb 2009 09:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://sid6581.wordpress.com/2006/10/09/minimizing-audio-capture-latency-in-directshow/#comment-86</guid>
		<description>Thank you! I`ll try that :)</description>
		<content:encoded><![CDATA[<p>Thank you! I`ll try that <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Minimizing audio capture latency in DirectShow by Synchronized preview of Composite and Line in &#124; keyongtech</title>
		<link>http://sid6581.wordpress.com/2006/10/09/minimizing-audio-capture-latency-in-directshow/#comment-85</link>
		<dc:creator>Synchronized preview of Composite and Line in &#124; keyongtech</dc:creator>
		<pubDate>Sun, 18 Jan 2009 16:42:18 +0000</pubDate>
		<guid isPermaLink="false">http://sid6581.wordpress.com/2006/10/09/minimizing-audio-capture-latency-in-directshow/#comment-85</guid>
		<description>[...] ? &gt;Can you refer me to a relevant sample with IAMBufferNegotiation usage?  Here you go:  http://sid6581.wordpress.com/2006/10...in-directshow/  -- Be seeing [...]</description>
		<content:encoded><![CDATA[<p>[...] ? &gt;Can you refer me to a relevant sample with IAMBufferNegotiation usage?  Here you go:  <a href="http://sid6581.wordpress.com/2006/10...in-directshow/" rel="nofollow">http://sid6581.wordpress.com/2006/10&#8230;in-directshow/</a>  &#8212; Be seeing [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Instantiating Directshow filters by name by 1</title>
		<link>http://sid6581.wordpress.com/2006/10/12/finding-directshow-filters-by-name/#comment-78</link>
		<dc:creator>1</dc:creator>
		<pubDate>Tue, 01 Apr 2008 01:26:34 +0000</pubDate>
		<guid isPermaLink="false">http://sid6581.wordpress.com/2006/10/12/finding-directshow-filters-by-name/#comment-78</guid>
		<description>Thanks for the code!</description>
		<content:encoded><![CDATA[<p>Thanks for the code!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Instantiating Directshow filters by name by Pekka</title>
		<link>http://sid6581.wordpress.com/2006/10/12/finding-directshow-filters-by-name/#comment-77</link>
		<dc:creator>Pekka</dc:creator>
		<pubDate>Wed, 26 Mar 2008 08:37:04 +0000</pubDate>
		<guid isPermaLink="false">http://sid6581.wordpress.com/2006/10/12/finding-directshow-filters-by-name/#comment-77</guid>
		<description>Very usefull thing indeed :-)

I wasted a lot of time until I found this. 
Earlier I thought that the filter GUID is unique but it is not. 
For example many filters use CLSID_AVIco as GUID. 

Even GrapheditPlus generates non working code when it relies on GUIDs. 
This is also a DirectShow filter problem 
- it is not very good practice to use friendly name as a unique identifier of a filter - 
but we seem to have no choice.

One thing I noticed when playing with filters is that many video and audio compressors 
register themselves into CLSID_LegacyAmFilterCategory instead CLSID_VideoCompressorCategory 
or CLSID_AudioCompressorCategory, so I made it like this:

HRESULT hr = CreateFilter(Name, Filter, FilterCategory);
// If not found from specified category use legacy category
if (!SUCCEEDED(hr))
{
  hr = CreateFilter(Name, Filter, CLSID_LegacyAmFilterCategory);
  if (!SUCCEEDED(hr))
  {
	  return hr;
  }
}</description>
		<content:encoded><![CDATA[<p>Very usefull thing indeed <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I wasted a lot of time until I found this.<br />
Earlier I thought that the filter GUID is unique but it is not.<br />
For example many filters use CLSID_AVIco as GUID. </p>
<p>Even GrapheditPlus generates non working code when it relies on GUIDs.<br />
This is also a DirectShow filter problem<br />
- it is not very good practice to use friendly name as a unique identifier of a filter &#8211;<br />
but we seem to have no choice.</p>
<p>One thing I noticed when playing with filters is that many video and audio compressors<br />
register themselves into CLSID_LegacyAmFilterCategory instead CLSID_VideoCompressorCategory<br />
or CLSID_AudioCompressorCategory, so I made it like this:</p>
<p>HRESULT hr = CreateFilter(Name, Filter, FilterCategory);<br />
// If not found from specified category use legacy category<br />
if (!SUCCEEDED(hr))<br />
{<br />
  hr = CreateFilter(Name, Filter, CLSID_LegacyAmFilterCategory);<br />
  if (!SUCCEEDED(hr))<br />
  {<br />
	  return hr;<br />
  }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Minimizing audio capture latency in DirectShow by Gerwin</title>
		<link>http://sid6581.wordpress.com/2006/10/09/minimizing-audio-capture-latency-in-directshow/#comment-75</link>
		<dc:creator>Gerwin</dc:creator>
		<pubDate>Sat, 22 Mar 2008 14:56:20 +0000</pubDate>
		<guid isPermaLink="false">http://sid6581.wordpress.com/2006/10/09/minimizing-audio-capture-latency-in-directshow/#comment-75</guid>
		<description>I am using the DirectShowLib.Net for a tv viewer application (C#). So I&#039;m using preview for watching the video and I couldn&#039;t figure out the reason of the audio latency. Your post solved the issue. Thanks!</description>
		<content:encoded><![CDATA[<p>I am using the DirectShowLib.Net for a tv viewer application (C#). So I&#8217;m using preview for watching the video and I couldn&#8217;t figure out the reason of the audio latency. Your post solved the issue. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Minimizing audio capture latency in DirectShow by sid6581</title>
		<link>http://sid6581.wordpress.com/2006/10/09/minimizing-audio-capture-latency-in-directshow/#comment-11</link>
		<dc:creator>sid6581</dc:creator>
		<pubDate>Sun, 17 Jun 2007 03:24:38 +0000</pubDate>
		<guid isPermaLink="false">http://sid6581.wordpress.com/2006/10/09/minimizing-audio-capture-latency-in-directshow/#comment-11</guid>
		<description>Try including atlbase.h before you include any DirectShow header files. If that doesn&#039;t work, try including tchar.h before you include anything else. Without knowing which header files you include, and in which order, I&#039;m not sure what else to try.</description>
		<content:encoded><![CDATA[<p>Try including atlbase.h before you include any DirectShow header files. If that doesn&#8217;t work, try including tchar.h before you include anything else. Without knowing which header files you include, and in which order, I&#8217;m not sure what else to try.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Minimizing audio capture latency in DirectShow by charlie</title>
		<link>http://sid6581.wordpress.com/2006/10/09/minimizing-audio-capture-latency-in-directshow/#comment-10</link>
		<dc:creator>charlie</dc:creator>
		<pubDate>Thu, 14 Jun 2007 15:10:05 +0000</pubDate>
		<guid isPermaLink="false">http://sid6581.wordpress.com/2006/10/09/minimizing-audio-capture-latency-in-directshow/#comment-10</guid>
		<description>Any sugestion?
 I&#039;m in the same situatuion , my include directory have this order:

C:\Archivos de programa\Microsoft Visual Studio 8\VC\atlmfc\include
C:\Archivos de programa\Microsoft Visual Studio 8\VC\include
$(VCInstallDir)include
C:\Archivos de programa\Microsoft DirectX 9.0 SDK (February 2005)\Include
C:\Archivos de programa\Microsoft DirectX 9.0 SDK (February 2005)\Extras\DirectShow\Include
C:\Archivos de programa\Microsoft DirectX 9.0 SDK (February 2005)\Extras\DirectShow\Samples\C++\DirectShow\BaseClasses
$(VCInstallDir)PlatformSDK\include
$(FrameworkSDKDir)include

************** In my computer ************
 in C:\Archivos de programa\Microsoft DirectX 9.0 SDK (February 2005)\Include

and

 in C:\Archivos de programa\Microsoft Visual Studio 8\VC\include

*******************************************

first :
C:\Archivos de programa\Microsoft Visual Studio 8\VC\include

second :
C:\Archivos de programa\Microsoft DirectX 9.0 SDK (February 2005)\Include</description>
		<content:encoded><![CDATA[<p>Any sugestion?<br />
 I&#8217;m in the same situatuion , my include directory have this order:</p>
<p>C:\Archivos de programa\Microsoft Visual Studio 8\VC\atlmfc\include<br />
C:\Archivos de programa\Microsoft Visual Studio 8\VC\include<br />
$(VCInstallDir)include<br />
C:\Archivos de programa\Microsoft DirectX 9.0 SDK (February 2005)\Include<br />
C:\Archivos de programa\Microsoft DirectX 9.0 SDK (February 2005)\Extras\DirectShow\Include<br />
C:\Archivos de programa\Microsoft DirectX 9.0 SDK (February 2005)\Extras\DirectShow\Samples\C++\DirectShow\BaseClasses<br />
$(VCInstallDir)PlatformSDK\include<br />
$(FrameworkSDKDir)include</p>
<p>************** In my computer ************<br />
 in C:\Archivos de programa\Microsoft DirectX 9.0 SDK (February 2005)\Include</p>
<p>and</p>
<p> in C:\Archivos de programa\Microsoft Visual Studio 8\VC\include</p>
<p>*******************************************</p>
<p>first :<br />
C:\Archivos de programa\Microsoft Visual Studio 8\VC\include</p>
<p>second :<br />
C:\Archivos de programa\Microsoft DirectX 9.0 SDK (February 2005)\Include</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Minimizing audio capture latency in DirectShow by Vinay Agarwal</title>
		<link>http://sid6581.wordpress.com/2006/10/09/minimizing-audio-capture-latency-in-directshow/#comment-3</link>
		<dc:creator>Vinay Agarwal</dc:creator>
		<pubDate>Fri, 16 Mar 2007 01:54:54 +0000</pubDate>
		<guid isPermaLink="false">http://sid6581.wordpress.com/2006/10/09/minimizing-audio-capture-latency-in-directshow/#comment-3</guid>
		<description>Hello,

I am having difficulty compiling this example using Visual Studio 2005. As soon as I include any header that declares CComQIPtr, I get error &quot;C1189: Need to include strsafe.h after tchar.h&quot;.	I would appreciate if you can provide exact headers included in your example. Thanks in advance.

Regards,
Vinay Agarwal</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I am having difficulty compiling this example using Visual Studio 2005. As soon as I include any header that declares CComQIPtr, I get error &#8220;C1189: Need to include strsafe.h after tchar.h&#8221;.	I would appreciate if you can provide exact headers included in your example. Thanks in advance.</p>
<p>Regards,<br />
Vinay Agarwal</p>
]]></content:encoded>
	</item>
</channel>
</rss>
