Flash/Youtube videos on FreeBSD

To be able to watch Adobe Flash animations and videos on BSD systems, has been not too easy so far. This is caused by Adobe not releasing a (Free)BSD version of Flash, but only a (closed source) version for Windows and Linux. In order to watch Flash content on BSD one has to install the Linux Flash version along with the Linux Compatibility layer and tweak the system (sym-links).

However, there’s a Flash PBI available for PC-BSD users that installs Flash with a few mouse-clicks. Installing this manually is not necessary anymore as version 1.4 will come with Flash pre-installed, thanks to a redistribution agreement between iXsystems, the company behind the PC-BSD project, and Adobe.

There are a few open-source Flash players in development currently, of which Gnash and swfdec are the most promising projects, but they’re not perfect yet. Gnash for example is quite good at playing Flash animations (though a bit “grainy”), but it can’t play YouTube videos, whereas swfdec is better at playing YouTube videos, but it’s not very good with animations.

Matteo from the FreeSBIE project has now found a way to watch YouTube videos with Gnash on FreeBSD, but without using the Linux compatibility layer. Please note, that the steps he’s taken are the same for PC-BSD and DesktopBSD. Matteo installed the following ports:

  • graphics/gnash
  • www/firefox (uncheck “GSTREAMER” on the ncurses window)
  • multimedia/mplayer [MAKE WITH_GUI]
  • www/mplayer-plugin

He then installed the Greasemonkey plugin for Firefox and this Greasemonkey script. Note: select the “mini” GUI for mplayer because it is needed for the plugin.

If you have followed these steps and installed the port successfully, surf now to YouTube.com and give it a whirl.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>