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

| 9 Comments

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.


9 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.

I have videos on Vimeo. Just sayin'.

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.

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. :-/

Duncan,
From command line type:
locate firefoxrc

and you'll be presented with:

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

Great! Works!

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.

Disable Adblocking and other addons.

Works now for me on Vista.

Adobe must not lie adblocking.

Adding Sounds - HTML Lessons
HTML MUSIC / MEDIA CODE - Sound
http://html-lesson.blogspot.com/2008/06/music-media-code-sound.html

Leave a comment

Twitter

Sponsors!

About this Entry

This page contains a single entry by dbs published on June 29, 2006 6:09 PM.

Cmon LJ, what's your problem? was the previous entry in this blog.

The real meaning of 'Ubuntu' is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.