<?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: Webcam control with WPF or how to create high framerate player with DirectShow by using InteropBitmap in WPF application</title>
	<atom:link href="http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/feed/" rel="self" type="application/rss+xml" />
	<link>http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/</link>
	<description>Take care of the sense, and the sounds will take care of themselves.</description>
	<lastBuildDate>Fri, 18 May 2012 08:56:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: John Roach</title>
		<link>http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/comment-page-1/#comment-5141</link>
		<dc:creator>John Roach</dc:creator>
		<pubDate>Fri, 20 Apr 2012 15:47:06 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/#comment-5141</guid>
		<description>Hi,
I know it has been a long time since you have posted this post. I found the article very helpful with my own project which I had some performance issues.

I just have one question... I am using a c920 Logitech camera. I have noticed that some programs such as skype allow HD Video play (1080p) however when I use the code you have provided 

capGrabber.Width = header.BmiHeader.Width; 
capGrabber.Height = header.BmiHeader.Height; 

gives me at best a 640x480 image... and not 1080p at all....

Why is this so?
Does skype send a secret command to the webcam so it can work with bigger images?

Thank you for your time and help in advance.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I know it has been a long time since you have posted this post. I found the article very helpful with my own project which I had some performance issues.</p>
<p>I just have one question&#8230; I am using a c920 Logitech camera. I have noticed that some programs such as skype allow HD Video play (1080p) however when I use the code you have provided </p>
<p>capGrabber.Width = header.BmiHeader.Width;<br />
capGrabber.Height = header.BmiHeader.Height; </p>
<p>gives me at best a 640&#215;480 image&#8230; and not 1080p at all&#8230;.</p>
<p>Why is this so?<br />
Does skype send a secret command to the webcam so it can work with bigger images?</p>
<p>Thank you for your time and help in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dominic Mertz</title>
		<link>http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/comment-page-1/#comment-4881</link>
		<dc:creator>Dominic Mertz</dc:creator>
		<pubDate>Wed, 18 Jan 2012 21:21:35 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/#comment-4881</guid>
		<description>some really    excellent  info  ,  Gladiolus  I found  this.</description>
		<content:encoded><![CDATA[<p>some really    excellent  info  ,  Gladiolus  I found  this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Free graphics, 3d, code snippets, PHP, HTML, JavaScript and more!</title>
		<link>http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/comment-page-1/#comment-4738</link>
		<dc:creator>Free graphics, 3d, code snippets, PHP, HTML, JavaScript and more!</dc:creator>
		<pubDate>Sun, 20 Nov 2011 15:11:23 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/#comment-4738</guid>
		<description>You actually make it seem so easy together with your presentation however I to find this topic to be really something that I feel I&#039;d never understand. It seems too complex and extremely huge for me. I am looking ahead in your next submit, I?ll try to get the dangle of it!</description>
		<content:encoded><![CDATA[<p>You actually make it seem so easy together with your presentation however I to find this topic to be really something that I feel I&#8217;d never understand. It seems too complex and extremely huge for me. I am looking ahead in your next submit, I?ll try to get the dangle of it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan</title>
		<link>http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/comment-page-1/#comment-4381</link>
		<dc:creator>Ivan</dc:creator>
		<pubDate>Mon, 30 May 2011 13:08:01 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/#comment-4381</guid>
		<description>Anybody, know answer to next question:
How I can fix in C# code problem: the video being upside down?</description>
		<content:encoded><![CDATA[<p>Anybody, know answer to next question:<br />
How I can fix in C# code problem: the video being upside down?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tosin</title>
		<link>http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/comment-page-1/#comment-4376</link>
		<dc:creator>Tosin</dc:creator>
		<pubDate>Tue, 24 May 2011 06:38:05 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/#comment-4376</guid>
		<description>in case this can help someone.
On the problem of the camera not being disposed properly, the problem is that the worker thread  
 is not properly receiving the stop signal I tried Holy&#039;s post and it did not work for me. What worked for me if by replacing the thread abort logic in Runworker()   // Wait for the stop signal
                    while (!_stopSignal.WaitOne(10, true))
                    {
                        Thread.Sleep(10);
                    }

with                     while (!_stopSignal.WaitOne(10, true))
                    {
                        //Thread.Sleep(10);
                    }
This way it waits for the stop signal at least 10mil secs before aborting. I hope this helps</description>
		<content:encoded><![CDATA[<p>in case this can help someone.<br />
On the problem of the camera not being disposed properly, the problem is that the worker thread<br />
 is not properly receiving the stop signal I tried Holy&#8217;s post and it did not work for me. What worked for me if by replacing the thread abort logic in Runworker()   // Wait for the stop signal<br />
                    while (!_stopSignal.WaitOne(10, true))<br />
                    {<br />
                        Thread.Sleep(10);<br />
                    }</p>
<p>with                     while (!_stopSignal.WaitOne(10, true))<br />
                    {<br />
                        //Thread.Sleep(10);<br />
                    }<br />
This way it waits for the stop signal at least 10mil secs before aborting. I hope this helps</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan</title>
		<link>http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/comment-page-1/#comment-4358</link>
		<dc:creator>Ivan</dc:creator>
		<pubDate>Fri, 06 May 2011 05:27:47 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/#comment-4358</guid>
		<description>How I can fix in C# code problem: the video being upside down?</description>
		<content:encoded><![CDATA[<p>How I can fix in C# code problem: the video being upside down?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maven</title>
		<link>http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/comment-page-1/#comment-4352</link>
		<dc:creator>maven</dc:creator>
		<pubDate>Thu, 05 May 2011 00:25:31 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/#comment-4352</guid>
		<description>Hi, 
Can this hook up to Kinect Camera?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Can this hook up to Kinect Camera?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Holy</title>
		<link>http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/comment-page-1/#comment-3920</link>
		<dc:creator>Holy</dc:creator>
		<pubDate>Fri, 27 Aug 2010 09:35:39 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/#comment-3920</guid>
		<description>For the problem of cindex (the camera lamp is not turned off when window is closed), I solved by replacing the code (thanks Peter) code of stop routine in capdevice.cs

I know for cindex it&#039;s too late but can be helpful to someone.

HTH,
Holy

        public void Stop()
        {
            if (IsRunning)
            {
                stopSignal.Set();
                try
                {
                    worker.Abort();

                }
                catch (ThreadAbortException) { }
                finally
                {
                    if (worker != null)
                    {
                        //worker.Join();
                        Release();
                    }
                }



            }
        }</description>
		<content:encoded><![CDATA[<p>For the problem of cindex (the camera lamp is not turned off when window is closed), I solved by replacing the code (thanks Peter) code of stop routine in capdevice.cs</p>
<p>I know for cindex it&#8217;s too late but can be helpful to someone.</p>
<p>HTH,<br />
Holy</p>
<p>        public void Stop()<br />
        {<br />
            if (IsRunning)<br />
            {<br />
                stopSignal.Set();<br />
                try<br />
                {<br />
                    worker.Abort();</p>
<p>                }<br />
                catch (ThreadAbortException) { }<br />
                finally<br />
                {<br />
                    if (worker != null)<br />
                    {<br />
                        //worker.Join();<br />
                        Release();<br />
                    }<br />
                }</p>
<p>            }<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: edwin</title>
		<link>http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/comment-page-1/#comment-3694</link>
		<dc:creator>edwin</dc:creator>
		<pubDate>Tue, 23 Mar 2010 22:30:15 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/#comment-3694</guid>
		<description>Hi, I&#039;ve been testing and I still see 12%CPU usage. Which is a lot higher than 2%. I would like to know why this is so much higher than with your example? Any thoughts?
Ps.
I&#039;m looking to implement IP cameras on a WPF control. Why: WPF gives a lot of new features which would take forever to program in winform.
Ps2.
Process explorer indicates that ksproxy.ax is using 10% CPU.</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;ve been testing and I still see 12%CPU usage. Which is a lot higher than 2%. I would like to know why this is so much higher than with your example? Any thoughts?<br />
Ps.<br />
I&#8217;m looking to implement IP cameras on a WPF control. Why: WPF gives a lot of new features which would take forever to program in winform.<br />
Ps2.<br />
Process explorer indicates that ksproxy.ax is using 10% CPU.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Federico</title>
		<link>http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/comment-page-1/#comment-3646</link>
		<dc:creator>Federico</dc:creator>
		<pubDate>Fri, 05 Mar 2010 14:22:01 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/#comment-3646</guid>
		<description>Hello.
Can anybody send me more information about:
- Config Image Resolution
- Use Zoom
Thanks.</description>
		<content:encoded><![CDATA[<p>Hello.<br />
Can anybody send me more information about:<br />
- Config Image Resolution<br />
- Use Zoom<br />
Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

