kanotix.com

Software - howto get firefox audio in sync

Swynndla - 09.08.2006, 23:26 Uhr
Titel: howto get firefox audio in sync
A friend (Fran) found a way to keep flash video and audio in sync in firefox ... the method was taken from:
http://blogs.adobe.com/penguin.swf/
(in the comments for the entry August 08, 2006)

... ie without the fix, when I played:
http://www.youtube.com/watch?v=WQ-Q3vy0MoA
... the audio would start in sync ok, but then get more and more out of sync. After the fix, the audio stayed in sync.

Here is the method my friend got me to do:

Install the package - alsa-oss:
apt-get install alsa-oss
(mine was already the newest version)
then in to the file:
.asoundrc
in your home account (I didn't have a file "~/.asoundrc" so I created one) include the following.

Code:
pcm.card0 {
type hw
card 0
mmap_emulation true
}
pcm.!output {
type dmix
ipc_key 1234
ipc_key_add_uid 1
slave {
pcm "card0"
period_time 0
period_size 1024
buffer_size 8192
rate 44100
}
bindings {
0 0
1 1
}
}
pcm.!input {
type dsnoop
ipc_key 4321
ipc_key_add_uid 1
slave {
pcm "card0"
period_time 0
period_size 1024
rate 44100
}
}
pcm.!duplex {
type asym
playback.pcm "output"
capture.pcm "input"
}
pcm.!default {
type plug
slave.pcm "duplex"
}
pcm.!dsp0 {
type plug
slave.pcm "duplex"
}
ctl.!mixer0 {
type hw
card 0
}

Then in the /etc/firefox/firefoxrc file, change:
FIREFOX_DSP="none"
to:
FIREFOX_DSP="aoss"

Then restart alsa-utils:
/etc/init.d/alsa-utils force-reload

restart firefox

Now the play flash video again, and the audio should stay in sync!
Coma - 11.08.2006, 15:50 Uhr
Titel: RE: howto get firefox audio in sync
Hi there,
Have been following these instructions step by step, but still got a problem, i think the main issue is the code since i got this error:

ALSA lib conf.c:2827:(snd_config_hook_load) /etc/asound.conf may be old or corrupted: consider to remove or fix it

maybe i missed out something Traurig.

Anyone has idea how this might go?.
hubi - 11.08.2006, 18:09 Uhr
Titel: RE: howto get firefox audio in sync
Did not need to do anything in .asoundrc here, the change in firefoxrc did the trick perfectly.

hubi
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007