<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
   <channel>
      <title>Penguin.SWF</title>
      <link>http://blogs.adobe.com/penguin.swf/</link>
      <description>Penguin.SWF tracks development status and issues regarding the Linux version of Adobe’s Flash Player.</description>
      <language>en</language>
      <copyright>Copyright 2009</copyright>
      <lastBuildDate>Fri, 08 May 2009 16:00:00 -0800</lastBuildDate>
      <generator>http://www.sixapart.com/movabletype/?v=3.38</generator>
      <docs>http://blogs.law.harvard.edu/tech/rss</docs> 

            <item>
         <title>Serving Two Master Libraries</title>
         <description><![CDATA[<p>I don't mind telling you that I'm a little nervous about this <a href="http://blog.aurel32.net/?p=47">business of Debian switching to EGLIBC</a>. I know, it's supposed to be binary compatible and it shouldn't matter to application developers. Does that include developers of closed source binaries? In developing the Flash Player, we've seen problems with C library compatibility before, and that was just in trying to support a single C library across multiple distributions. So now I'm worried about subtle API or binary incompatibilities that may arise between the 2 C libraries.</p>

<p>So far, this is a Debian move. But that may influence other distributions. From reading various sources and bug trackers, it looks like more distributions are evaluating the idea (or perhaps just fielding questions from users who are not up to speed on the issues but who have read the headlines).</p>

<p>There are already enough challenges in trying to produce a single binary that runs across as many Linux distributions as possible. But who knows? Maybe this will whole episode blow over like <a href="http://blogs.adobe.com/penguin.swf/2007/05/welcome_to_the_jungle.html">so many audio APIs</a>.</p>]]></description>
         <link>http://blogs.adobe.com/penguin.swf/2009/05/glibc_fork.html</link>
         <guid>http://blogs.adobe.com/penguin.swf/2009/05/glibc_fork.html</guid>
         <category></category>
         <pubDate>Fri, 08 May 2009 16:00:00 -0800</pubDate>
      </item>
            <item>
         <title>Now Supporting 16 Exabytes</title>
         <description><![CDATA[<p>We are pleased to announce that there is now a version of the Flash Player for Linux that supports <a href="http://linuxhaters.blogspot.com/2008/07/my-browser-needs-16-exabytes.html">16 theoretical exabytes</a> of physical memory. This technological feat is accomplished using a bleeding edge type of processor known as a 64-bit CPU.</p>

<center>
<a href="http://commons.wikimedia.org/wiki/Image:Zilog_Z80.jpg"><img alt="Zilog_Z80.jpg" src="http://blogs.adobe.com/penguin.swf/Zilog_Z80.jpg" width="300" />
<br />
<em>Pictured: the next big thing-- an <strong>80-bit</strong> CPU</em></a><em>; but 64 bits will have to do for now</em>
</center>

<p>So we have this x86-64 version of the Linux Flash Player available for those Linux users who have moved on to fully 64-bit computing environments. <a href="http://labs.adobe.com/technologies/flashplayer10/"><strong>Go get it now on Labs.</strong></a> Be advised that this is pre-release quality. We hope to receive useful feedback about what areas need to be improved. <em>You can help.</em> You can <a href="https://bugs.adobe.com/flashplayer/">report bugs at the Flash Player bug tracker</a>. Hey, it gets results-- the 64-bit issue is approaching resolution. Or you can try the customary drive-by bug report in the comments section (<em>"I tried it on XYZ distro and it didn't work!"</em>) which is almost guaranteed to help no one.</p>

<p>I feel a bit sentimental about it all. It's weird, but I think I'm going to miss the hundreds of comments on every post gently requesting a 64-bit version. So don't be afraid to pop in with a <strong>"64-BIT NOW!!!1!!"</strong> comment every so often, you know, just for old time's sake.</p>]]></description>
         <link>http://blogs.adobe.com/penguin.swf/2008/11/now_supporting_16_exabytes.html</link>
         <guid>http://blogs.adobe.com/penguin.swf/2008/11/now_supporting_16_exabytes.html</guid>
         <category></category>
         <pubDate>Mon, 17 Nov 2008 00:02:00 -0800</pubDate>
      </item>
            <item>
         <title>SWF And FLV 10 Specs</title>
         <description><![CDATA[<p>The version 10 updates of both the SWF and FLV specs are available for your inspection:</p>

<ul>
<li><a href="http://www.adobe.com/devnet/swf/">SWF spec</a></li>
<li><a href="http://www.adobe.com/devnet/flv/">FLV spec</a></li>
</ul>

<p>Here are some of the things added, changed, or corrected:<br />
<ul><br />
<li>new DefineBitsJPEG4 tag (90), with deblocking filter</li><br />
<li>new DefineFont4 tag (91)</li><br />
<li>described how to embed <a href="http://speex.org/">Speex</a> into SWF and FLV</li><br />
<li>described how to embed <a href="http://www.adobe.com/products/xmp/">XMP metadata</a> in FLV</li><br />
<li>new flags in the FileAttributes tag describe whether a SWF requires the <a href="http://www.kaourantin.net/2008/05/what-does-gpu-acceleration-mean.html">new 'gpu' or 'direct' WMODEs</a> (only useful when running a SWF in a standalone player where there is no encompassing HTML to specify WMODE)</li><br />
<li>new flag in DefineShape4 describes whether the shape uses fill winding rule</li><br />
<li>rearranged some chapters to (hopefully) make the SWF spec flow better</li><br />
<li>revised DefineBitsJPEG2 and DefineBitsJPEG3 to mention how they can be used to store GIF and PNG data as well as JPEG (as can the new DefineBitsJPEG4 tag; yes, the tag names are a bit misleading, but they're a bit too entrenched to be changed now)</li><br />
<li>revised description of the Flash Screen Video v2 codec format</li><br />
<li>in F4V, several signed values were incorrectly marked as unsigned</li><br />
<li>fixed description of Flash ADPCM (initial predictors are signed, not unsigned; block size was off by 1)</li><br />
<li>both documents now thoroughly describe which parameters (channels, bit resolution, sample rate) are fixed or flexible depending on the audio codec</li><br />
<li>the FileAttributes tag came about in SWF 8 rather than SWF 1</li><br />
<li>fixed the FileAttributes tag, which specifies a Metadata data structure -- not a SymbolClass -- with the hasMetadata flag</li><br />
<li>in  ButtonRecord and PlaceObject3, list the correct codes for the difference, add, and subtract blend modes</li><br />
<li>PlaceObject3 tag description was missing a bitmap caching byte (should have been there since SWF 8 spec)</li><br />
<li>in FillStyle, a GradientMatrix is also present for fill style 0x13</li><br />
<li>SWF spec now uses "opacity" instead of "transparency" in many places in order to more accurately describe blending behavior</li><br />
<li>clarified the maximum length of a SWF file</li><br />
<li>fixed several examples</li><br />
<li>fixed numerous inconsistencies in the Actions chapter</li><br />
</ul></p>

<p>Thanks to Michael, Baptiste, both Benjamins, Bobby, Amol, Cody, Matthew, Romi, and anyone else I might have missed who also offered corrections and suggestions for improvements.</p>]]></description>
         <link>http://blogs.adobe.com/penguin.swf/2008/11/swf_and_flv_10_specs.html</link>
         <guid>http://blogs.adobe.com/penguin.swf/2008/11/swf_and_flv_10_specs.html</guid>
         <category></category>
         <pubDate>Mon, 17 Nov 2008 00:01:00 -0800</pubDate>
      </item>
            <item>
         <title>Flash Player 10 Is Live</title>
         <description><![CDATA[<p>The release version of Flash Player 10 is out there and <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&P2_Platform=Linux">available for download</a>. Hopefully, it will soon be available from your favorite automated update repository since such package management should resolve the <a href="http://blogs.adobe.com/penguin.swf/2008/08/library_expansion.html">new dependencies needed for Flash Player 10</a>.</p>

<p>Well, that's really all I have to say at the moment. Release announcements for final Player versions are always a tad anticlimactic since we have already been doing beta and prerelease work for months. Though it should be noted that <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&P2_Platform=Linux">the Linux download page</a> now hosts .deb packages in addition to .tar.gz and .rpm.</p>]]></description>
         <link>http://blogs.adobe.com/penguin.swf/2008/10/flash_player_10_is_live.html</link>
         <guid>http://blogs.adobe.com/penguin.swf/2008/10/flash_player_10_is_live.html</guid>
         <category></category>
         <pubDate>Wed, 15 Oct 2008 00:01:00 -0800</pubDate>
      </item>
            <item>
         <title>Firefox 3.0.2: The Wmode Fix</title>
         <description><![CDATA[<p>Firefox 3.0.2 is now out. Lots of security fixes. But for Linux users, the most interesting item that slipped through is "the wmode fix"-- Firefox 3.0.2 fixes the problem of instant, repeatable crashes on a number of windowless-enabled websites. Upgrade quickly, at least for that reason. It's probably most readily available through your package manager.</p>

<p>Also, I neglected to mention that a new Flash Player release candidate (designated 10.0.12.10) is available for download. You shouldn't notice much difference with this RC vs. the previous RC. Of course, I expect there will be users for whom this RC changes everything, whether for better or worse. That's just how it is in this Linux game.</p>

<p><strong>Links:</strong><br />
<ul><br />
<li><a href="http://labs.adobe.com/technologies/flashplayer10/">Flash Player Release Candidate (10.0.12.10)</a></li><br />
<li><a href="http://www.mozilla.com/">Mozilla.com</a> -- download the Firefox 3.0.2 Linux browser for your preferred language</li><br />
</ul></p>]]></description>
         <link>http://blogs.adobe.com/penguin.swf/2008/09/firefox_302_get_it.html</link>
         <guid>http://blogs.adobe.com/penguin.swf/2008/09/firefox_302_get_it.html</guid>
         <category></category>
         <pubDate>Wed, 24 Sep 2008 10:51:44 -0800</pubDate>
      </item>
            <item>
         <title>Random Blog Post</title>
         <description><![CDATA[<p>I found this <a href="http://thebackbutton.com/blog/73/64-bit-linux-freebsd-flash-player-exists/">random blog post</a> just now. What has my coworker <a href="http://www.kaourantin.net/">Tinic</a> been up to?</p>]]></description>
         <link>http://blogs.adobe.com/penguin.swf/2008/08/random_blog_post.html</link>
         <guid>http://blogs.adobe.com/penguin.swf/2008/08/random_blog_post.html</guid>
         <category></category>
         <pubDate>Thu, 21 Aug 2008 21:01:08 -0800</pubDate>
      </item>
            <item>
         <title>cURL Tradeoffs</title>
         <description><![CDATA[<p>Sometimes, the Flash Player needs to do HTTP stuff. Most of the time, it's enough for the Flash Player to use plugin/browser functions (<a href="http://en.wikipedia.org/wiki/NPAPI">NPAPI</a>) to achieve this. However, it is occasionally necessary to go above and beyond what NPAPI provides. While the Windows and Mac versions have standard platform APIs to call upon for that little something extra in the HTTP department, the closest thing that Linux has to a standard is the longstanding <a href="http://curl.haxx.se/">cURL library</a>.</p>

<p>We started using cURL during the Flash Player 9 development cycle. At the time, we did not assess that cURL was widespread enough to link to it dynamically. So we included it in the binary, as <a href="http://curl.haxx.se/docs/copyright.html">permitted by the cURL license</a>.</p>

<p>During the Flash Player 10 development cycle, we decided to make cURL the end user's responsibility, i.e., dynamically link to cURL, just as we do with a <a href="http://blogs.adobe.com/penguin.swf/2006/09/librarian.html">number of other libraries</a>. In doing so, it's one less thing for us to manage internally. Plus, end users can manage cURL-related updates and bug fixes themselves. But wouldn't you know, there are problems with this approach. There are 2 versions of libcurl.so floating about in the wild: libcurl.so.3 (corresponding to cURL < 7.16) and libcurl.so.4 (corresponding to cURL >= 7.16). Most modern distributions come with the latter. But a few stragglers (that we are still committed to support) are still using the former.</p>

<p>A few possible solutions:</p>

<ol>
<li>Build and distribute 2 separate binaries, one for libcurl.so.3 and one for libcurl.so.4, thus doubling our own internal testing efforts. Heh, naw, I don't think so.</li>
<li>Place a hard requirement in the binary to link to libcurl.so.3. Many distros that have libcurl.so.4 have a symlink from libcurl.so.3.</li>
<li>Place a hard requirement in the binary to link to libcurl.so.4, thereby freezing out any distros that still use libcurl.so.3.</li>
<li>Manually load the required cURL functions at runtime.</li>
<li>Sprinkle magic open source pixie dust on the Flash Player (<em>solves all problems, don't ya know</em>). Can you say "nonstarter"?</li>
</ol>

<p>For the most recent release candidate of Flash Player 10, we opted for choice 2. This seemed to work for most distros except, most notably, Fedora systems which did not feature the symlink from .so.3 -> .so.4. Apparently, there's another reason not to rely on this method, though. The cURL functions are reportedly version-checked so that if the Flash Player links to libcurl.so.3, we are not certain we will actually be getting the most recent code present in libcurl.so.4.</p>

<p>The next thing we are going to try is option 4-- manually load the library, the same as we already do with ALSA and OpenGL. <strong>We will use dlopen() and dlsym() to load required functions from libcurl.so.4. If that library is not there, fall back to libcurl.so.3.</strong> Look for this behavior in the next release. If that library is not there... why not? Oh, and refuse to load the Flash Player in that circumstance.</p>

<p>I know many users are frustrated that we seem to be spending time on what might be perceived as minor issues when there are certain <a href="http://blogs.adobe.com/penguin.swf/2006/10/whats_so_difficult_64bit_editi.html">"bigger picture" items</a> that are a little more visible. Believe me, we share that sentiment. Maybe one day, more of these little items will be <a href="http://www.linuxfoundation.org/en/LSB">standardized</a> so we don't have to use so much developer time making sure 1% of the Flash feature set works correctly on Linux.</p>]]></description>
         <link>http://blogs.adobe.com/penguin.swf/2008/08/curl_tradeoffs.html</link>
         <guid>http://blogs.adobe.com/penguin.swf/2008/08/curl_tradeoffs.html</guid>
         <category></category>
         <pubDate>Thu, 21 Aug 2008 17:00:35 -0800</pubDate>
      </item>
            <item>
         <title>Windowless Mode Fix</title>
         <description><![CDATA[<p>As a reminder, Firefox 3.0.1 has a known crash problem with a wide variety of windowless mode SWFs. This has already been fixed in the Mozilla code tree and <a href="http://blogs.adobe.com/penguin.swf/2008/07/addessing_wmode_crashes.html">alpha builds are available for download</a>. However, if you would prefer to wait until a new official Firefox release, you may wish to disable windowless mode in the Flash Player. You can do this (on any platform) by setting WindowlessDisable=true in the mms.cfg (which <a href="http://blogs.adobe.com/penguin.swf/2008/08/secrets_of_the_mmscfg_file_1.html">lives in /etc/adobe</a> on Unix platforms).</p>]]></description>
         <link>http://blogs.adobe.com/penguin.swf/2008/08/windowless_mode_fix.html</link>
         <guid>http://blogs.adobe.com/penguin.swf/2008/08/windowless_mode_fix.html</guid>
         <category></category>
         <pubDate>Wed, 13 Aug 2008 01:42:15 -0800</pubDate>
      </item>
            <item>
         <title>Secrets Of The mms.cfg File</title>
         <description><![CDATA[<p>Did you know that the Adobe Flash Player honors a few configuration files on the user's local file system? There are 2 such files:</p>

<ol>
<li>mm.cfg: user-local configuration file; lives in user's home directory on Unix systems and is largely only useful when using content debugger versions of the Player</li>
<li>mms.cfg: system-wide configuration file, designed to allow administrators to set policy for all users on a system; lives in /etc/adobe on Unix systems</li>
</ol>

<p>There is a <a href="http://www.adobe.com/devnet/flashplayer/articles/flash_player_admin_guide.html">lengthy guide</a> available that describes all of the various administration features and what the mms.cfg can do for you.</p>

<p>The reason I bring this up is that there is a new option in mms.cfg that will be of use to Linux users: "OverrideGPUValidation". Pursuant to the need to have such <a href="http://blogs.adobe.com/penguin.swf/2008/05/flash_uses_the_gpu.html">stringent rules for validating whether the Linux Flash Player can use the GPU</a>. If you wish to force the Flash Player to bypass its GPU validity checks, add "OverrideGPUValidation=true" (without the quotes) to your mms.cfg.</p>

<p>But please don't expect the option to be a magical speed boost option for the Flash Player as a whole. <a href="http://blogs.adobe.com/penguin.swf/2008/05/flash_uses_the_gpu.html">Reread the original post on the matter</a> to understand where GPU acceleration helps and where it doesn't. And if you are planning to ask about Xv support, read the post <em>again</em> until the message clicks.</p>]]></description>
         <link>http://blogs.adobe.com/penguin.swf/2008/08/secrets_of_the_mmscfg_file_1.html</link>
         <guid>http://blogs.adobe.com/penguin.swf/2008/08/secrets_of_the_mmscfg_file_1.html</guid>
         <category></category>
         <pubDate>Tue, 12 Aug 2008 12:12:19 -0800</pubDate>
      </item>
            <item>
         <title>10rc</title>
         <description><![CDATA[<p>Adobe Flash Player version 10rc (designated build 569) is live. <a href="http://labs.adobe.com/technologies/flashplayer10/">Go get it.</a> Items to observe about this build:</p>

<ul>
<li>Camera input works a whole lot better (V4L1 and V4L2 cameras both work; V4L2 cameras don't peg the CPU anymore)</li>
<li>Software fullscreen performance is vastly improved</li>
<li>Faster, more stable windowless mode (but be sure to use very recent browser builds)</li>
<li>SSL now handled through NSS instead of flashsupport-OpenSSL alliance</li>
<li>White speckles are gone from video playback</li>
<li>Important stability fixes (fewer crashes)</li>
<li>Still not 64-bit native, just to get that out of the way</li>
</ul>

<p>We tested the new NSS stuff on various popular [32-bit] Linux distributions and found that all the necessary libraries are present. If the NSS and cURL libraries are not present (as described in the <a href="http://blogs.adobe.com/penguin.swf/2008/08/library_expansion.html">previous post</a>), Flash Player will refuse to load.</p>]]></description>
         <link>http://blogs.adobe.com/penguin.swf/2008/08/10rc1.html</link>
         <guid>http://blogs.adobe.com/penguin.swf/2008/08/10rc1.html</guid>
         <category></category>
         <pubDate>Mon, 11 Aug 2008 12:27:44 -0800</pubDate>
      </item>
            <item>
         <title>Library Expansion</title>
         <description><![CDATA[<p>Be forewarned: Flash Player 10 for Linux will have more external library dependencies. These are very new requirements that were not required in either of the 2 released FP10 beta builds publicly released so far.</p>

<ul>
<li><a href="http://curl.haxx.se/">cURL</a></li>
<li><a href="http://www.mozilla.org/projects/security/pki/nss/">Mozilla's Network Security Services (NSS)</a></li>
<li>Further, glibc >= 2.4</li>
</ul>

<p>To what end? Most notably, the Linux Flash Player binary will no longer need to rely on a separate module called <a href="http://sourceforge.net/projects/flashsupport">flashsupport</a> in order to support secure connections. Supporting <a href="http://openssl.org/">OpenSSL</a> was the original motivation for creating the flashsupport library. We are moving to Mozilla's NSS which ought to be installed alongside Mozilla.</p>

<p>Will libflashsupport continue to be supported? Partially. Flash Player 10 will no longer care what libflashsupport.so has to say about SSL. However, it will still pay attention to the sound output functions (fpx_soundoutput_*) so that end users can continue to implement support for an <a href="http://blogs.adobe.com/penguin.swf/2007/05/welcome_to_the_jungle.html">ever-growing number of Linux audio APIs</a>. The camera input functions (fpx_videoinput_*) were never implemented and that will not change now. Hopefully, the revised Video4Linux camera support in Flash Player 10 will solve many  Linux camera problems (V4L1 will be supported in the final and V4L2 will no longer chew up all the CPU time).</p>

<p>Thanks to the many people who reported camera information in my last blog post. I guess YUYV is the most important colorspace out there. Here's another end user query: What glibc version do you have on your current Linux system(s)? And what distro is it? And how on earth did you figure out what glibc version you have? For such an important part of the system, it sure is hard to find a consistent method to query this information. A little searching has revealed these 2 methods:</p>

<ul>
<li>DEB-based systems: 'dpkg -l | grep libc6'</li>
<li>RPM-based systems: 'rpm -q glibc'</li>
</ul>]]></description>
         <link>http://blogs.adobe.com/penguin.swf/2008/08/library_expansion.html</link>
         <guid>http://blogs.adobe.com/penguin.swf/2008/08/library_expansion.html</guid>
         <category></category>
         <pubDate>Fri, 08 Aug 2008 11:59:51 -0800</pubDate>
      </item>
            <item>
         <title>Paparazzi v2</title>
         <description><![CDATA[<p>This is my monitor at work:</p>

<center>
<img alt="Penguin Paparazzi" src="http://blogs.adobe.com/penguin.swf/penguin-paparazzi-small.jpg" width="350" height="215" />
</center>

<p>Coworkers passing by are beginning to think I'm somewhat vain. Don't ask about that sumo camera. Just... nevermind.</p>

<p>Anyway, the second beta of Flash Player 10/Astro includes native support for cameras conforming to the Video4Linux v2 API (V4L2). The support is not complete, however, owing to the fact that there are dozens of different colorspaces that a V4L2 camera can provide to a user application. I suspect that this is a manifestation of the do-it-yourself spirit of Linux, i.e., if you need support for a particular format, you need to code it yourself.</p>

<p>So the first pass at V4L2 support in the Linux Flash Player contains handlers for quite a few different pixel formats. Only 2 of them have been tested so far. (I should point out that, of all the cameras in the picture above, only 2 work in V4L2 and also output a usable format.) The rest of the formats were just implemented blindly.</p>

<p><strong>So I'm hoping to get your help in testing these formats.</strong></p>

<p>My corporate masters have authorized me to release the source code for a small utility to gather basic data about a V4L2 camera:</p>

<ul>
<li><a href="http://blogs.adobe.com/penguin.swf/v4l2-formats.c">Source code, build instructions included</a>; or if you're not comfortable with building...</li>
<li><a href="http://blogs.adobe.com/penguin.swf/v4l2-formats">Pre-compiled x86_32 binary</a></li>
</ul>

<p>An example run:<br />
<pre><br />
$ ./v4l2-formats /dev/video0<br />
/dev/video0 is a V4L2 device named 'VF0410 Live! Cam Video IM Pro'<br />
/dev/video0 is capable of video capture<br />
/dev/video0 is capable of streaming capture<br />
/dev/video0 supports 'YUV 4:2:2 (YUYV)' (raw format, V4L2_PIX_FMT_YUYV)<br />
/dev/video0 supports 'MJPEG' (compressed format, V4L2_PIX_FMT_MJPEG)<br />
</pre></p>

<p>Please download the utility and run it on each /dev/videoN device you have on your system. You will ideally have one such device for each camera attached to your system: /dev/video0, /dev/video1, etc. Then, go ahead and post the results in a comment below.</p>

<p>Also, it would help if you could test out the V4L2 capabilities of the current Flash Player 10 beta and let me know, along with the foregoing technical data, whether or not your camera gives you a picture through Flash, without crashing, and if it looks correct. <a href="http://www.gskinner.com/blog/archives/2005/08/flash_8_webcam.html">Check out this snowfall SWF for a good example.</a></p>

<p>One more thing: If you include your email address in the form's email field (not in the actual message content), and you report that your camera does not work correctly, I may contact you directly if I deem that you could be useful for collecting more data.</p>

<p>Technical notes: <a href="http://www.linuxtv.org/downloads/video4linux/API/V4L2_API/spec-single/v4l2.html">The official documentation</a> recommends VIDIOC_TRY_FMT in order to determine camera capabilities. In my experience, VIDIOC_TRY_FMT lies. I have a camera that claims to support every format in V4L2. I found VIDIOC_ENUM_FMT to be more reliable.</p>]]></description>
         <link>http://blogs.adobe.com/penguin.swf/2008/07/paparazzi_v2_1.html</link>
         <guid>http://blogs.adobe.com/penguin.swf/2008/07/paparazzi_v2_1.html</guid>
         <category></category>
         <pubDate>Mon, 14 Jul 2008 12:00:00 -0800</pubDate>
      </item>
            <item>
         <title>Addessing Wmode Crashes</title>
         <description><![CDATA[<p>Firefox 3 is the first Firefox release for Linux that includes windowless mode (wmode) support. Unfortunately, there was <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=435764">a crashing issue related to wmode</a> that a lot of people testing <a href="http://blogs.adobe.com/penguin.swf/2008/07/turkish_localization_also_wmod.html">Flash Player 10 beta 2</a> have encountered, and on fairly major sites.</p>

<p>Great news: Thanks to the Firefox team, this issue has been solved. The fix has made its way into the Firefox nightly builds. You can download them at <a href="http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/">http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/</a>. </p>

<p>The first build I know of that contains the fix is for <a href="http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2008-07-08-02-mozilla-central/">2008-07-08</a>. So start with that one or later, until the next formal Firefox release. Ideally, wmode-related crashes should now be entirely Flash's fault. But please, before reporting such crashes, be sure (using the About Firefox dialog) that you actually are using one of the very recent builds. And it wouldn't hurt to be certain that you're using the latest beta of the Flash Player by checking the "about:plugins" URL in the browser.<br />
</p>]]></description>
         <link>http://blogs.adobe.com/penguin.swf/2008/07/addessing_wmode_crashes.html</link>
         <guid>http://blogs.adobe.com/penguin.swf/2008/07/addessing_wmode_crashes.html</guid>
         <category></category>
         <pubDate>Thu, 10 Jul 2008 09:38:04 -0800</pubDate>
      </item>
            <item>
         <title>Turkish Localization! ... also Wmode, V4L2</title>
         <description><![CDATA[<p>There's a new beta for Flash Player 10 (Astro) available for Windows, Mac, and -- you guessed it -- Linux. <a href="http://labs.adobe.com/technologies/flashplayer10/">Go get it in the lab</a>. This beta is a big deal since it finally contains an important, oft-requested feature. I refer of course to <strong>Turkish localization</strong>.</p>

<center>
<img alt="Adobe Flash Player - Turkish Localization" src="http://blogs.adobe.com/penguin.swf/turkish-flash-localization.png" width="438" height="200" />
</center>

<p>I'd like to give a shout out to my Turkish open source pal, İsmail. We didn't forget about you!</p>

<h3>Windowless Mode</h3>

<p>Oh yeah, this beta also introduces some other features that may be of interest to some people. There's this thing called windowless mode, a.k.a. wmode, a.k.a. transparency, a.k.a. proper stacking order, a.k.a. DHTML/JS menus unroll <em>over</em> a SWF vs. under, such as on the <a href="http://www.adobe.com/">main Adobe website</a>:</p>

<center>
<a href="http://www.adobe.com/"><img alt="Adobe Flash Player - Windowless mode" src="http://blogs.adobe.com/penguin.swf/wmode-menu-adobe.png" width="373" height="290" border="0" /></a>
</center>

<p>A.k.a. fullscreen Flash overlay ads! Yes! They're on Linux now. Let me tell you, I have <em>never</em> been so happy to see one as when I first got one to work in Linux. I suspect the novelty will wear off rather soon.</p>

<p>To be clear, there are 3 major modes for SWFs embedded in webpages: 1) Windowed mode, which is the only one supported by the Linux Flash Player up to this point; 2) windowless/transparent mode; 3) windowless/opaque mode. <a href="http://www.communitymx.com/content/source/E5141/wmodetrans.htm">CommunityMX has this great, simple page that illustrates the differences between the 3 modes.</a> (There are also 2 new wmodes introduced in Astro -- direct and gpu -- that are already supported in Linux where allowed by hardware.)</p>

<p>Thanks to both the <a href="http://www.mozilla.com/firefox/">Firefox</a> and <a href="http://www.opera.com/">Opera</a> teams for their support in implementing wmode. That's right-- this feature will work on both Firefox and Opera on Linux. For Firefox, you must have version 3. For Opera (as of this writing), you will need <strike>the latest beta of 9.50</strike> Opera 9.50 release. Thanks also to <a href="http://swfdec.freedesktop.org/wiki/">Swfdec</a> for implementing this feature concurrently, helping to attack wmode from many angles and bring Linux web browsing up to ~2002 standards.</p>

<p>Be advised that there are still some wmode-related problems, most notably <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=435764">this crash issue</a>. Please report any other consistently crashing URLs.</p>

<h3>Updated Camera Support (V4L2)</h3>
This Linux beta includes native support for the Video4Linux v2 (V4L2) camera API. When <a href="http://blogs.adobe.com/penguin.swf/2006/06/penguin_eyes_1.html">I started this journey 2 years ago</a>, V4L2 was supposed to be the standard, but V4L1 still seemed to be used everywhere. The last 2 years have seen significant change in this regard and now V4L1 distros are nearly impossible to come by which, by extension, has made Flash's camera support nigh useless on Linux. No more, since V4L2 is now supported. In fact, it is supported concurrently along with V4L1.

<p>There is still some work to do on V4L2 and I will need some help with it. <strong>You</strong> might be able to help me with it, too. Details to come in a separate post.</p>

<p>Bonus! You can finally select from among multiple cameras installed on the system:</p>

<center>
<img alt="Flash camera select, localized in Swedish" src="http://blogs.adobe.com/penguin.swf/v4l2-select-swedish.png" width="220" height="147" />

</center>

<p>Oh hey, the dialog is localized in another new language: Swedish. Which brings me to...</p>

<h3>Extended Language Support</h3>
In addition to Turkish, there are other new languages supported too. The complete list is (alphabetically by language code): Czech, German, English, Spanish, French, Italian, Japanese, Korean, Dutch, Polish, Portuguese, Russian, Swedish, Turkish, and Chinese.

<h3>Speed and Stability</h3>
Additionally, we are also working hard on speed (using a number of quality Linux profiling tools to identify and optimize hot spots) and stability (boom). To that latter point, do you know my favorite kind of crash bugs? The ones that occur consistently on a particular URL. Please let me know about those. The less useful reports are the ones about purely random crashes. While those are definitely irritating, any programmer will tell you that such reports are not especially helpful. Identifying consistent crashes goes a long way towards addressing the more random crashes as well.

<p>Go. Get testing.</p>]]></description>
         <link>http://blogs.adobe.com/penguin.swf/2008/07/turkish_localization_also_wmod.html</link>
         <guid>http://blogs.adobe.com/penguin.swf/2008/07/turkish_localization_also_wmod.html</guid>
         <category></category>
         <pubDate>Wed, 02 Jul 2008 11:01:00 -0800</pubDate>
      </item>
            <item>
         <title>Flash Uses The GPU</title>
         <description><![CDATA[<p>A much clamored-for feature (right after native 64-bit, wmode/transparency, and V4L2) is Flash GPU (graphical processing unit) acceleration, sometimes founded in a belief that it's a magic solution for making things fast without any side effects or ill consequences. I just wanted to make it known that <em>the Adobe Flash Player is GPU accelerated</em>, <strong>even on Linux</strong>. However, this comes with some qualifications.</p>

<p>Starting in <a href="http://blogs.adobe.com/penguin.swf/2007/12/flash_player_9_update_3_final.html">version 9.0.115.0</a>, the Flash Player was able to display fullscreen content with GPU assistance. This is done via OpenGL facilities.</p>

<p>Starting in the most recent <a href="http://blogs.adobe.com/penguin.swf/2008/05/astro_beta.html">Astro Beta</a>, Flash Player supports new GPU acceleration modes. This acceleration doesn't automatically speed up legacy content. Instead, new SWF content has to be authored specifically to take advantage of this. Tinic Uro has an excellent overview of the capabilities and limitations of this new feature in his blog post, <a href="http://www.kaourantin.net/2008/05/what-does-gpu-acceleration-mean.html"><strong>"What does GPU acceleration mean?"</strong></a></p>

<p>Tinic's post mentions the lofty GPU requirements for Windows: <em>"You will need at least a DirectX 9 class card. We essentially have the exact same hardware requirements as Windows Vista with Aero Glass enabled."</em> Obviously, the Linux version isn't going the DirectX route. It uses OpenGL and we require the following features before we consider honoring the new SWF GPU features:</p>

<ul>
<li>GL_ARB_multitexture</li>
<li>GL_EXT_framebuffer_object</li>
<li>GL_ARB_shader_objects</li>
<li>GL_ARB_shading_language_100</li>
<li>GL_ARB_fragment_shader</li>
</ul>

<p>Also, for fullscreen OpenGL acceleration, the Flash Player requires that the client glx vendor string be something besides "SGI". Official drivers from, e.g., ATI and Nvidia hopefully do not have "SGI" in this field (check the 'glxinfo' command, for this string and for the extensions listed above). We have this logic in place to detect whether software rendering is in place and fall back on our own software fullscreen in that case. There are more robust ways to detect software rendering but we have seen crash problems on a number of distributions, possibly with outdated libraries.</p>

<p>Another important note: <em>Compiz and GPU-accelerated Flash on Linux do not mix.</em> The Flash Player still works if you have Compiz as your window manager; you just won't be able to make use of GPU-accelerated features. This is a shame since Compiz is coming with the basic installation of various Linux distributions. Unfortunately, things get unstable when trying to do GPU acceleration in SWFs running under Compiz.</p>

<ul>
<li>FAQ regarding hardware acceleration: Why doesn't the Flash Player on Linux user the <a href="http://en.wikipedia.org/wiki/X_video_extension">X video extension (Xv)</a>?</li>
<li>Answer: Because Xv scales <a href="http://en.wikipedia.org/wiki/Y%27UV">YUV</a> data. Flash Player operates on <a href="http://en.wikipedia.org/wiki/RGB_color_model">RGB</a> data.</li>
</ul>

<p>For the uninitiated, many video codecs operate in a YUV colorspace. Unix/X11 has an extension called X video that allows hardware scaling of YUV images. This is a very mature system on Linux which has allowed seamless, low CPU usage, fullscreen video playback on Linux for many years. Unfortunately, the Flash Player can not easily make use of this since Sorenson, On2, or H.264 video data -- even though it is decoded as YUV -- has to be converted to RGB and possibly combined with other graphical elements. This is why RGB scaling via OpenGL is the future of Flash.</p>

<p>Except if Compiz is acting as window manager.</p>]]></description>
         <link>http://blogs.adobe.com/penguin.swf/2008/05/flash_uses_the_gpu.html</link>
         <guid>http://blogs.adobe.com/penguin.swf/2008/05/flash_uses_the_gpu.html</guid>
         <category></category>
         <pubDate>Fri, 30 May 2008 17:10:06 -0800</pubDate>
      </item>
      
   </channel>
</rss>
