<?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: Using the AIR 2.0 Native Process API to control MPlayer</title>
	<atom:link href="http://mchristoff.com/2009/12/using-the-air-2-0-nativeprocess-api-to-control-mplayer/feed/" rel="self" type="application/rss+xml" />
	<link>http://mchristoff.com/2009/12/using-the-air-2-0-nativeprocess-api-to-control-mplayer/</link>
	<description>Participating in Life.</description>
	<lastBuildDate>Thu, 24 Jun 2010 18:27:34 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Michael Christoff</title>
		<link>http://mchristoff.com/2009/12/using-the-air-2-0-nativeprocess-api-to-control-mplayer/comment-page-1/#comment-1534</link>
		<dc:creator>Michael Christoff</dc:creator>
		<pubDate>Thu, 24 Jun 2010 18:27:34 +0000</pubDate>
		<guid isPermaLink="false">http://mchristoff.com/?p=111#comment-1534</guid>
		<description>No worries, at least I learned something =)&lt;br&gt;&lt;br&gt;Btw, it looks like Visa and above do things without an overlay according to&lt;br&gt;the wikipedia article.</description>
		<content:encoded><![CDATA[<p>No worries, at least I learned something =)</p>
<p>Btw, it looks like Visa and above do things without an overlay according to<br />the wikipedia article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane Doolan</title>
		<link>http://mchristoff.com/2009/12/using-the-air-2-0-nativeprocess-api-to-control-mplayer/comment-page-1/#comment-1533</link>
		<dc:creator>Shane Doolan</dc:creator>
		<pubDate>Wed, 23 Jun 2010 00:48:30 +0000</pubDate>
		<guid isPermaLink="false">http://mchristoff.com/?p=111#comment-1533</guid>
		<description>No you are not missing anything, I must be wrong in presuming os x would work in a similar way to windows. It would appear that os x does not use a color key and/or also takes into account if the window is clipped when determining which pixels to replace with video when performing the overlay.&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Hardware_overlay&quot; rel=&quot;nofollow&quot;&gt;http://en.wikipedia.org/wiki/Hardware_overlay&lt;/a&gt;&lt;br&gt;&lt;br&gt;I tried it on my machine running xp and can confirm it works, but I cant supply you a screenshot as the screenshot fails as expected when using video overlays... &lt;br&gt;&lt;br&gt;Sorry for leading you up the garden path!</description>
		<content:encoded><![CDATA[<p>No you are not missing anything, I must be wrong in presuming os x would work in a similar way to windows. It would appear that os x does not use a color key and/or also takes into account if the window is clipped when determining which pixels to replace with video when performing the overlay.</p>
<p><a href="http://en.wikipedia.org/wiki/Hardware_overlay" rel="nofollow">http://en.wikipedia.org/wiki/Hardware_overlay</a></p>
<p>I tried it on my machine running xp and can confirm it works, but I cant supply you a screenshot as the screenshot fails as expected when using video overlays&#8230; </p>
<p>Sorry for leading you up the garden path!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Christoff</title>
		<link>http://mchristoff.com/2009/12/using-the-air-2-0-nativeprocess-api-to-control-mplayer/comment-page-1/#comment-1532</link>
		<dc:creator>Michael Christoff</dc:creator>
		<pubDate>Wed, 23 Jun 2010 00:12:51 +0000</pubDate>
		<guid isPermaLink="false">http://mchristoff.com/?p=111#comment-1532</guid>
		<description>Not sure, I&#039;m missing something, but I gave it a try on os x and it didn&#039;t&lt;br&gt;seem to work. Checkout this screenshot:&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://img.skitch.com/20100623-1m6t852ww8r6hjjdjas9yf6umf.jpg&quot; rel=&quot;nofollow&quot;&gt;http://img.skitch.com/20100623-1m6t852ww8r6hjjd...&lt;/a&gt;&lt;br&gt;&lt;br&gt;I didn&#039;t size the AIR window to be exactly the size of the mplayer window...&lt;br&gt;is that a requirement? I figured I would get a cut off picture, but it would&lt;br&gt;at least prove or disprove the theory. Maybe I&#039;m still misunderstanding how&lt;br&gt;the overlay works.</description>
		<content:encoded><![CDATA[<p>Not sure, I&#39;m missing something, but I gave it a try on os x and it didn&#39;t<br />seem to work. Checkout this screenshot:</p>
<p><a href="http://img.skitch.com/20100623-1m6t852ww8r6hjjdjas9yf6umf.jpg" rel="nofollow"></a><a href="http://img.skitch.com/20100623-1m6t852ww8r6hjjd.." rel="nofollow">http://img.skitch.com/20100623-1m6t852ww8r6hjjd..</a>.</p>
<p>I didn&#39;t size the AIR window to be exactly the size of the mplayer window&#8230;<br />is that a requirement? I figured I would get a cut off picture, but it would<br />at least prove or disprove the theory. Maybe I&#39;m still misunderstanding how<br />the overlay works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane Doolan</title>
		<link>http://mchristoff.com/2009/12/using-the-air-2-0-nativeprocess-api-to-control-mplayer/comment-page-1/#comment-1531</link>
		<dc:creator>Shane Doolan</dc:creator>
		<pubDate>Wed, 23 Jun 2010 00:02:01 +0000</pubDate>
		<guid isPermaLink="false">http://mchristoff.com/?p=111#comment-1531</guid>
		<description>thats exactly what I am saying, except that mplayer uses a key color of #020202. &lt;br&gt;&lt;br&gt;And again thats only tested in xp but I since the overlay is done by the graphics hardware I presume it would work the same in any operating system.&lt;br&gt;&lt;br&gt;Let me know if you try it.</description>
		<content:encoded><![CDATA[<p>thats exactly what I am saying, except that mplayer uses a key color of #020202. </p>
<p>And again thats only tested in xp but I since the overlay is done by the graphics hardware I presume it would work the same in any operating system.</p>
<p>Let me know if you try it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Christoff</title>
		<link>http://mchristoff.com/2009/12/using-the-air-2-0-nativeprocess-api-to-control-mplayer/comment-page-1/#comment-1530</link>
		<dc:creator>Michael Christoff</dc:creator>
		<pubDate>Tue, 22 Jun 2010 23:55:06 +0000</pubDate>
		<guid isPermaLink="false">http://mchristoff.com/?p=111#comment-1530</guid>
		<description>That is pretty interesting! I was unaware that video overlays worked like this.  So what your saying is that if I create an AIR window with the background color #000001, startup a video with mplayer, then position the AIR window in front of the video (keeping the size the same) the video will show in the AIR window?</description>
		<content:encoded><![CDATA[<p>That is pretty interesting! I was unaware that video overlays worked like this.  So what your saying is that if I create an AIR window with the background color #000001, startup a video with mplayer, then position the AIR window in front of the video (keeping the size the same) the video will show in the AIR window?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane Doolan</title>
		<link>http://mchristoff.com/2009/12/using-the-air-2-0-nativeprocess-api-to-control-mplayer/comment-page-1/#comment-1529</link>
		<dc:creator>Shane Doolan</dc:creator>
		<pubDate>Tue, 22 Jun 2010 23:23:28 +0000</pubDate>
		<guid isPermaLink="false">http://mchristoff.com/?p=111#comment-1529</guid>
		<description>The color #000001 is the key color VLC selects to be replaced when the graphics card performs a video overlay, MPlayer uses #020202. To see what I mean press print screen on a playing video, you will get an (almost) black box in your screenshot where the video was playing. Take the same screenshot and drag it infront of the playing video and you will see the playing video appear in the screenshot.&lt;br&gt;&lt;br&gt;In this way you could control the size and location of mplayer or vlc in the background. All clicks, mouse moves, hot keys would be captured and handled by the Air application as the Air app maintains focus.&lt;br&gt;&lt;br&gt;Like I said its not pretty, and I have not tried this on anything other than windows xp. Just thought it could be an interesting approach to try.</description>
		<content:encoded><![CDATA[<p>The color #000001 is the key color VLC selects to be replaced when the graphics card performs a video overlay, MPlayer uses #020202. To see what I mean press print screen on a playing video, you will get an (almost) black box in your screenshot where the video was playing. Take the same screenshot and drag it infront of the playing video and you will see the playing video appear in the screenshot.</p>
<p>In this way you could control the size and location of mplayer or vlc in the background. All clicks, mouse moves, hot keys would be captured and handled by the Air application as the Air app maintains focus.</p>
<p>Like I said its not pretty, and I have not tried this on anything other than windows xp. Just thought it could be an interesting approach to try.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Christoff</title>
		<link>http://mchristoff.com/2009/12/using-the-air-2-0-nativeprocess-api-to-control-mplayer/comment-page-1/#comment-1528</link>
		<dc:creator>Michael Christoff</dc:creator>
		<pubDate>Tue, 22 Jun 2010 21:46:34 +0000</pubDate>
		<guid isPermaLink="false">http://mchristoff.com/?p=111#comment-1528</guid>
		<description>I get what your saying Shane. From what I can see though it doesn&#039;t look like mplayer already has an API for controlling the  video rectangle so that would be something that definitely could be done but would require moderately extensive mplayer source digging and a pretty good understanding how the GUI layer works on all of the platforms (the part that AIR abstracts!). Also, like you mentioned, it could get messy for certain interaction cases in the window, for example double click for full screen, showing on screen controls when the mouse moves, capture hot keys properly.&lt;br&gt;&lt;br&gt;Also, what do you mean by #000001? Don&#039;t you mean #000000 (black)? What is the purpose of having a slightly non-black target?</description>
		<content:encoded><![CDATA[<p>I get what your saying Shane. From what I can see though it doesn&#39;t look like mplayer already has an API for controlling the  video rectangle so that would be something that definitely could be done but would require moderately extensive mplayer source digging and a pretty good understanding how the GUI layer works on all of the platforms (the part that AIR abstracts!). Also, like you mentioned, it could get messy for certain interaction cases in the window, for example double click for full screen, showing on screen controls when the mouse moves, capture hot keys properly.</p>
<p>Also, what do you mean by #000001? Don&#39;t you mean #000000 (black)? What is the purpose of having a slightly non-black target?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane Doolan</title>
		<link>http://mchristoff.com/2009/12/using-the-air-2-0-nativeprocess-api-to-control-mplayer/comment-page-1/#comment-1527</link>
		<dc:creator>Shane Doolan</dc:creator>
		<pubDate>Tue, 22 Jun 2010 07:07:40 +0000</pubDate>
		<guid isPermaLink="false">http://mchristoff.com/?p=111#comment-1527</guid>
		<description>I may be off target, but couldnt you position mplayer or vlc behind the Air app matching the size and location of a target rectange filled with the color #000001?&lt;br&gt;&lt;br&gt;As long as Video output is accelerated (therefore using an Overlay) the video should appear in place of the rectangle.&lt;br&gt;&lt;br&gt;Its not pretty, but as long as you could keep mplayer/vlc in the backgroud and the rectangles lined up it would appear as if the video was in the Air app.&lt;br&gt;&lt;br&gt;To try it out simply create an empty app or or open paint and give something a backgroud color of #000001 and drag it over a vlc/mplayer window...</description>
		<content:encoded><![CDATA[<p>I may be off target, but couldnt you position mplayer or vlc behind the Air app matching the size and location of a target rectange filled with the color #000001?</p>
<p>As long as Video output is accelerated (therefore using an Overlay) the video should appear in place of the rectangle.</p>
<p>Its not pretty, but as long as you could keep mplayer/vlc in the backgroud and the rectangles lined up it would appear as if the video was in the Air app.</p>
<p>To try it out simply create an empty app or or open paint and give something a backgroud color of #000001 and drag it over a vlc/mplayer window&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Christoff</title>
		<link>http://mchristoff.com/2009/12/using-the-air-2-0-nativeprocess-api-to-control-mplayer/comment-page-1/#comment-1526</link>
		<dc:creator>Michael Christoff</dc:creator>
		<pubDate>Tue, 01 Jun 2010 06:40:51 +0000</pubDate>
		<guid isPermaLink="false">http://mchristoff.com/?p=111#comment-1526</guid>
		<description>Intersting work Yuri! I&#039;d love to see your code so I encourage you to post.&lt;br&gt;&lt;br&gt;A few questions I have...&lt;br&gt;&lt;br&gt;Is the Quicktime Java API self-contained or do you need quicktime installed?&lt;br&gt;What&#039;s the licensing like?&lt;br&gt;What are you using for the GUI layer? Java swing?&lt;br&gt;&lt;br&gt;It would be great to even see a little screen cast.</description>
		<content:encoded><![CDATA[<p>Intersting work Yuri! I&#39;d love to see your code so I encourage you to post.</p>
<p>A few questions I have&#8230;</p>
<p>Is the Quicktime Java API self-contained or do you need quicktime installed?<br />What&#39;s the licensing like?<br />What are you using for the GUI layer? Java swing?</p>
<p>It would be great to even see a little screen cast.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yuri Cauwerts</title>
		<link>http://mchristoff.com/2009/12/using-the-air-2-0-nativeprocess-api-to-control-mplayer/comment-page-1/#comment-1525</link>
		<dc:creator>Yuri Cauwerts</dc:creator>
		<pubDate>Mon, 31 May 2010 15:43:51 +0000</pubDate>
		<guid isPermaLink="false">http://mchristoff.com/?p=111#comment-1525</guid>
		<description>Hi Michael,&lt;br&gt;&lt;br&gt;Very interesting article, I am doing the same kind of thing with video. &lt;br&gt;&lt;br&gt;My solution:&lt;br&gt;I wrote a Java borderless application that uses Quicktime for Java (which is deprecated since a few months :-( ). this java-app listens to stdin and outputs some useful information to stdout. By sending the right commands you can also make the video always stay on top. Sending setPosition and setSize calls the methods of the java-app, so it can be bound to the AIR-app.&lt;br&gt;&lt;br&gt;The Quicktime API is *very* powerfull, but it takes time to get the hang of it.&lt;br&gt;I can switch audiotracks on/off, change audio balance, add timetracks, add text on top of the video, change speed, ...&lt;br&gt;Quicktime gives me the possibility to scrub in realtime without any delays.&lt;br&gt;I have read that MPlayer is also very good at scrubbing in realtime, it also depends on the IPB-frame structure of the video probably... (anyone?)&lt;br&gt;&lt;br&gt;Maybe I should try adding MPlayer as a possible choice of videoplayers in my java-app... I suppose it has a better future...&lt;br&gt;&lt;br&gt;I&#039;ll post some more information about my java-app, someplace, somewhere sometime... If anyone is interested offcourse...&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Yuri Cauwerts</description>
		<content:encoded><![CDATA[<p>Hi Michael,</p>
<p>Very interesting article, I am doing the same kind of thing with video. </p>
<p>My solution:<br />I wrote a Java borderless application that uses Quicktime for Java (which is deprecated since a few months <img src='http://mchristoff.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  ). this java-app listens to stdin and outputs some useful information to stdout. By sending the right commands you can also make the video always stay on top. Sending setPosition and setSize calls the methods of the java-app, so it can be bound to the AIR-app.</p>
<p>The Quicktime API is *very* powerfull, but it takes time to get the hang of it.<br />I can switch audiotracks on/off, change audio balance, add timetracks, add text on top of the video, change speed, &#8230;<br />Quicktime gives me the possibility to scrub in realtime without any delays.<br />I have read that MPlayer is also very good at scrubbing in realtime, it also depends on the IPB-frame structure of the video probably&#8230; (anyone?)</p>
<p>Maybe I should try adding MPlayer as a possible choice of videoplayers in my java-app&#8230; I suppose it has a better future&#8230;</p>
<p>I&#39;ll post some more information about my java-app, someplace, somewhere sometime&#8230; If anyone is interested offcourse&#8230;</p>
<p>Regards,<br />Yuri Cauwerts</p>
]]></content:encoded>
	</item>
</channel>
</rss>
