The sorry state of Flash with 64-bit Debian

Vincent Bernat

Even with the avail­abil­ity of the <video> tag in HTML5, most web­sites still re­quire the use of the Adobe Flash plugin to ac­cess some con­tent. If you run a 64-bit (In­tel ar­chi­tec­ture) ver­sion of De­bian, you can still get this plugin through the flashplugin-nonfree pack­age. Un­for­tu­nately, Adobe never com­mit­ted to a de­cent sup­port for the 64-bit ver­sion of its plugin. The first 64-bit ver­sion was pro­vided as late as the fall of 2008. The sup­port was dis­con­tin­ued. Then, we re­cently got a new pre­view re­lease but it is still lag­ging be­hind the 32-bit version.

The 64-bit plugin has two ma­jor drawbacks:

  • it is not up-to-date and plagued by sev­eral se­cu­rity holes that are not planned to be cor­rected for the 64-bit version;
  • it ex­hibits some bugs of its own, like some sound ar­ti­facts that come from the use of memcpy() in place of memmove() and only hap­pen with re­cent GNU libc—where memcpy() has been op­ti­mized and is no longer equiv­a­lent to memmove(). Adobe has no plan to fix this. There are sev­eral ways doc­u­mented in the bug re­port to cir­cum­vent this bug.

Even if you fix the sec­ond point, you have no way to fix the first one. What are the al­ter­natives?

Up­date (2011-07)

Adobe re­leased, on July 13, ver­sion 11 of its Flash Player. Whether or not this ver­sion will be main­tained is a com­plete mys­tery. How­ever, it sup­ports Linux 64-bit.

Lightspark#

Lightspark is a mod­ern, free, open-source Flash player im­ple­men­ta­tion fea­tur­ing JIT com­pi­la­tion (with the help of LLVM) and hard­ware ac­cel­er­a­tion us­ing OpenGL. It only sup­ports ActionScript 3 (in­tro­duced in Flash 9) but it now falls back to Gnash if an older ver­sion is required.

The main prob­lem of Lightspark is that it is op­ti­mized for mod­ern hard­ware and uses OpenGL tex­tures to dis­play video frames. This al­lows you to achieve video com­posit­ing with the help of the graphic card. Un­for­tu­nately, if you use a video card with poor OpenGL per­for­mance, like an NVIDIA card with the Nou­veau driver, Lightspark is slow as hell. It works well with an In­tel card.

Cur­rently, Lightspark is only avail­able in ex­per­i­men­tal for De­bian. In­stall browser-plugin-lightspark.

Gnash#

Gnash is a more ma­ture project but does not sup­port ActionScript 3. Youtube works well with Gnash, as well as most other ap­pli­ca­tions un­less they use too re­cent fea­tures. If your use of Flash is lim­ited, it is a nice al­ter­na­tive. Un­for­tu­nately, more and more con­tent is de­liv­ered with an ap­pli­ca­tion re­quir­ing ActionScript 3 support.

On De­bian, you can get started by in­stalling browser-plugin-gnash.

32-bit Flash plugin on Debian#

Ubuntu pro­vides Flash as a 32-bit plugin with the help of nspluginwrapper which is a spe­cial plugin that will en­able the use of a 32-bit plugin in­side a 64-bit browser. This seems a sen­si­ble choice since Adobe only re­ally sup­ports the 32-bit ver­sion. You can also use nspluginwrapper with De­bian. You need to down­load the 32-bit ver­sion of Flash (not avail­able any­more), un­com­press it and put libflashplayer.so in ~/.​mozilla/​plugins.

# aptitude purge flashplugin-nonfree
# aptitude install nspluginwrapper lib32asound2-plugins
$ cd ~/.mozilla/plugins
$ nspluginwrapper -i $PWD/libflashplayer.so

Be­ware that you need to watch for up­dates your­self. Mozilla pro­vides a web­site check­ing if plug­ins are up-to-date. It works with other browsers than Firefox.

This is a pity to still need this kind of hack in 2011 but it seems that this is cur­rently the best solution.

Up­date (2011-06)

In a com­ment, Paul Ru­fous tells debian-multimedia.org repos­i­tory pro­vides flashplayer-mozilla pack­age which is the 32-bit plugin with nspluginwrapper.

HTML5#

Thanks to the <video> tag avail­able in HTML5, most videos should be avail­able with­out the need of a spe­cial plugin. Un­for­tu­nately, HTML5 does not de­fine a list of video codecs and con­tainer for­mats that should be sup­ported by any browser. There­fore, some browsers sup­port Ogg The­ora, some oth­ers H264 and some of them also sup­port WebM, the new roy­alty-free for­mat from Google. You can find a good sum­mary of the prob­lem from Mark Pilgrim.

With Chromium as found in De­bian, you have Ogg The­ora, WebM and H264. Youtube has an opt-in pro­gram to en­able HTML5 video but most other video con­tent is just un­avail­able with­out Flash. Web with­out Flash is not a re­ality yet.

Grab video with helper tools#

Up­date (2011-06)

Josh Triplett pointed out in a com­ment the ex­is­tence of sev­eral com­mand line tools that could be used to down­load Flash video from pop­u­lar web­sites. These tools in­clude: youtube-dl, get-flash-videos and clive. They can be use­ful even if you have in­stalled a Flash plugin since they al­low the use of the video player of your choice (bet­ter per­for­mance, work­ing fullscreen mode).

Up­date (2011-06)

An­other so­lu­tion pro­vided in a com­ment: the Video DownloadHelper ex­ten­sion al­lows one to ex­tract videos from the cur­rent web page.