June 29, 2006

Firefox, ALSA, Flash, YouTube, Google Video and SOUND!

Geekitude

This one's been bugging me for a while. I run Firefox on yawl and hunter pretty constantly, and occasionally would like to view some of the videos posted on YouTube or videos.google.com. While the videos have been playing just fine, sound has never worked.

Sound is always a tricky thing on Linux machines. Although ALSA has solved many of the audio problems that have traditionally plagued Linux boxes, many applications have not ported to the new interface, and therefore won't work on modern systems.

After finally getting frustrated enough to take the time to do some research, I found a post that described how to do it.

First, for all Debian based distributions, there's a very handy 'interface' package called alsa-oss, which, according to the description:

...contains a program loader, aoss, which wraps applications written for OSS in a compatibility library, thus allowing them to work with ALSA.

Sounds good to me! First, I had to install the package:
apt-get install alsa-oss

Next, a change to Firefox's configuration to tell it to use said interface:
cd /etc/firefox
edit 'firefoxrc' and change
FIREFOX_DSP="none"
to
FIREFOX_DSP="aoss"

Stop and restart Firefox.

That's it! Enjoy videos in full sound and motion like sharks being attacked and eaten by octupi.


Posted by dbs at June 29, 2006 6:09 PM

Trackback Pings

TrackBack URL for this entry:
http://mt.homeport.org/cgi-bin/mt-tb.cgi/2930

Comments

My out-of-the-box ubuntu installation has sound for movies working if (and only if) nothing else (like xmms) is using sound at the time that browser window first loads that page. Although firefox can happily play multiple movies at once and mix the sound.

Posted by: Sandro at June 29, 2006 11:04 PM

I have videos on Vimeo. Just sayin'.

Posted by: sah at June 30, 2006 2:57 AM

Funnily enough, my Kubuntu install has FIREFOX_DSP="auto", and sound has always just worked. No extra packages needed.

The best answer for alsa btw, is an old SoundBlaster 32 bit, with a proper hardware mixer. The hardware handles all of the calls for mixing streams, and apps don't have to lock the dsp.

Posted by: Duncan [TypeKey Profile Page] at June 30, 2006 5:28 AM

Huh. My Firefox install at work doesn't have /etc/firefox, and I can't find a firefoxrc. But it's a tarball I downloaded from mozilla.com, not a Debian package (getting modern Firefox to work on Debian stable is a maze of twisty little dependencies, all incompatible).

However, this box's sound issues are not specific to Firefox. :-/

Posted by: ceo at June 30, 2006 11:13 AM

Duncan,
From command line type:
locate firefoxrc

and you'll be presented with:

/etc/mozilla-firefox/mozilla-firefoxrc
/etc/firefox/firefoxrc

Posted by: macewan at June 30, 2006 12:08 PM

Great! Works!

Posted by: Miki at August 19, 2006 3:38 AM

THANK YOU!!!
That is amazing. Thank you a lot for this. That is so simple, I'm surprised I didn't figure it out for myself, but if I could be bothered I would be in eternal debt to you. That's helped me a lot. I really appreciate this, thanks.

Posted by: James Stanley at August 21, 2006 7:19 AM

Post a comment


Note that comments here are moderated, and may not appear immediately.




Remember Me?

(you may use HTML tags for style)

Subscribe without leaving a comment

Email Address:


Linux // Mac Webgame Reviews
Space Worms!
A new 'Grow' game!
Review: Jake2
Planarity - the game!
Review: Tactics Arena

View all games...
Reviews (Most recent 5)
LDAP and Thunderbird
More gloom for Palm, and the X5 Bluetooth Headphones
QuickReview: Synergy2
The URL Game.. An Interview with Jonathan Whiting
Google Browser Sync

View all reviews...
Recent Geekitude
A successful geocache find!
I tried, I really tried.
Kids Programming?
Books on Treo? Sure, why not.
The Squee just keeps on comin...

View all geekery...