You are not logged in.

#1 2013-03-16 00:24:31

hotvic
Member
Registered: 2013-02-11
Posts: 109

[Solved] ALSA + Chromium HTML5 videos very lag on audio

HTML 5 videos in chromium are played with very lag in audio

It's occur when i'm using surround 5.1 (I need use it)

this lag is a incorrect buffer configuration, but i don't know what are correct values

here is my .asoundrc

pcm.!default {
    type plug
    slave.pcm "dout"
}

pcm.dmix6 {
    type dmix
    ipc_key 1024
    ipc_key_add_uid false
    ipc_perm 0660
    slave {
        pcm {
            type hw
            card 0
            device 0
        }
        period_time 0
        period_size 1024
        buffer_time 0
        buffer_size 4096
        channels 6
    }
}

pcm.dout {
    type plug
    slave.pcm "dmix6"
    slave.channels 6
    route_policy duplicate
}

pcm.asym51 {
    type asym
    playback.pcm "dout"
}

ctl.equal {
    type equal
}

pcm.plugequal {
    type equal
    # Modify the line below if you do not
    # want to use sound card 0.
    #slave.pcm "plughw:0,0";
    #by default we want to play from more sources at time:
    slave.pcm "asym51"
}

pcm.equal {
    # If you do not want the equalizer to be your
    # default soundcard comment the following
    # line and uncomment the above line. (You can
    # choose it as the output device by addressing
    # it with specific apps,eg mpg123 -a equal 06.Back_In_Black.mp3)
#pcm.!default {
    type plug
    slave.pcm plugequal
}

Thanks in advance wink

Last edited by hotvic (2013-04-26 14:45:40)

Offline

#2 2013-03-29 10:54:38

delcypher
Member
Registered: 2010-04-17
Posts: 42

Re: [Solved] ALSA + Chromium HTML5 videos very lag on audio

I noticed this problem yesterday when I upgraded to chromium  26.0.1410.43 (189671). As a temporary workaround I just launch chrome with an option that specifies a large audio buffer size

chromium --audio-buffer-size=4096

It would be nice to know to root cause of the problem though.

Offline

#3 2013-03-29 17:33:14

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: [Solved] ALSA + Chromium HTML5 videos very lag on audio

I also had this problem, but the upgrade this morning fixed it

Offline

#4 2013-04-26 14:45:22

hotvic
Member
Registered: 2013-02-11
Posts: 109

Re: [Solved] ALSA + Chromium HTML5 videos very lag on audio

Sorry for this delay to response...

@delcypher

I setting buffer of 2048 and now chromium run fine!

Thanks

Offline

Board footer

Powered by FluxBB