Getting Flash working on FreeBSD can be kind of a challenge, sometimes. This is because Adobe only offers narrowly targeted platform support for its Flash player plugins. There are up-to-date players for MS Windows and Apple MacOS X, of course, but the Linux player tends to lag a bit, tends to be more buggy, and is really Linux-only. This leaves many uses of Flash on the Web poorly, or un-, supported on Linux — and leaves other OSes such as the various BSD Unix systems entirely on their own.
There are a number of options that people have employed for working around the problem on FreeBSD. One is to install the MS Windows version of Firefox using Wine, and use the MS Windows Flash plugin with that.
Another is to install the
linux-firefox port, which uses FreeBSD’s Linux compatibility libraries, along with the
linux-flashplugin port. It’s sorta like the Wine solution, really, using a Linux version of Firefox with a Linux version of the Flash player plugin.
A third is to use the FreeBSD-native port for Firefox, and use the
nspluginwrapper port with the
There are also some other options for getting a Flash plugin working with a FreeBSD-native port of Firefox, or other browsers, but they tend to be buggier than using
Then, of course, there are open source Flash players, like swfdec and Gnash. The downside here is that they aren’t really up to the widespread Flash support level of the Adobe Flash player. It’s typical for swfdec and Gnash to fail to properly support Flash video, such as YouTube.
Personally, I have exactly two cases of needing Flash, generally speaking. One is the traffic graph in WordPress (it doesn’t need to be written in Flash, but some idiot in the WordPress development team apparently thought it should be — much the same way some idiot thought it should be written in PHP as a heap of spaghetti code in the first place). The other is YouTube.
I’ve discovered that swfdec supports the WordPress traffic graph just fine. It’s also open source, which is a plus. While it (like Gnash) is GPLed, it at least isn’t a GNU project the way Gnash is, so I feel like it might just marginally be a better choice for purposes of ethical boycott. Marginally. At best.
That leaves me unsatisfied with regard to YouTube, though. Thank goodness I’m not the only person in the world with Flash plugin support for YouTube problems. Someone — some several someones, actually — out there has (have) solved my problem. The solution looks like this:
- Install MPlayer.
- Install the
win32-codecsport (to get Flash video support in MPlayer).
- Install the
- Watch the video.
I’ve run across probably half a dozen FreeBSD users who are, in many ways, quite more knowledgeable than me about the OS and its common tools, who are entirely unaware of the youtube-dl + MPlayer option. I figured I should just post the specifics here so maybe a Google search for
freebsd flash youtube will help someone figure out how to solve this problem in the future.