You are not logged in.

#1 2015-03-22 14:01:00

Xelvet
Member
Registered: 2014-02-20
Posts: 82

After pacman -Su >>mpv: [ao] Failed to initialize audio driver 'alsa'

No sound in mpv or mpv-git.
mplayer works fine though.

Offline

#2 2015-03-22 14:16:24

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: After pacman -Su >>mpv: [ao] Failed to initialize audio driver 'alsa'

Are you using alsa in mplayer?
Tell us more about your setup, post some configs, relevant command output.

Does downgrading mpv help?

Edit: You should use 'pacman -Syu', not just 'pacman -Su'. Did you run 'pacman -Sy' first? Why?

Last edited by karol (2015-03-22 14:17:14)

Offline

#3 2015-03-22 14:24:16

Xelvet
Member
Registered: 2014-02-20
Posts: 82

Re: After pacman -Su >>mpv: [ao] Failed to initialize audio driver 'alsa'

karol wrote:

Edit: You should use 'pacman -Syu', not just 'pacman -Su'. Did you run 'pacman -Sy' first? Why?

Yes i did run -Sy first.

% mplayer Sample.mkv
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] Format floatle is not supported by hardware, trying default.
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
% mpv Sample.mkv
[ao/alsa] Format float is not supported by hardware, trying default.
[ao] Failed to initialize audio driver 'alsa'
Could not open/initialize audio device -> no sound.
Audio: no audio
~/.mpv
vo=vdpau
ao=alsa
volume=10%
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Audigy2 [SB Audigy 2 ZS [SB0350]], device 0: emu10k1 [ADC Capture/Standard PCM Playback]
  Subdevices: 32/32
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
  Subdevice #8: subdevice #8
  Subdevice #9: subdevice #9
  Subdevice #10: subdevice #10
  Subdevice #11: subdevice #11
  Subdevice #12: subdevice #12
  Subdevice #13: subdevice #13
  Subdevice #14: subdevice #14
  Subdevice #15: subdevice #15
  Subdevice #16: subdevice #16
  Subdevice #17: subdevice #17
  Subdevice #18: subdevice #18
  Subdevice #19: subdevice #19
  Subdevice #20: subdevice #20
  Subdevice #21: subdevice #21
  Subdevice #22: subdevice #22
  Subdevice #23: subdevice #23
  Subdevice #24: subdevice #24
  Subdevice #25: subdevice #25
  Subdevice #26: subdevice #26
  Subdevice #27: subdevice #27
  Subdevice #28: subdevice #28
  Subdevice #29: subdevice #29
  Subdevice #30: subdevice #30
  Subdevice #31: subdevice #31
card 0: Audigy2 [SB Audigy 2 ZS [SB0350]], device 2: emu10k1 efx [Multichannel Capture/PT Playback]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 0: Audigy2 [SB Audigy 2 ZS [SB0350]], device 3: emu10k1 [Multichannel Playback]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Audigy2 [SB Audigy 2 ZS [SB0350]], device 4: p16v [p16v]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
/etc/asound.conf
defaults.pcm.rate_converter "samplerate_best"

ctl.!default {
        type hw           
        card 0
}


pcm.snd {
    slave.pcm surround51
    slave.channels 6
    type route
    ttable.0.0 1
    ttable.1.1 1
    ttable.0.2 0.5
    ttable.1.3 0.5
    ttable.4.4 0.75
    ttable.5.5 1
}


pcm.!default {
type asym
playback.pcm "snd"
}

Last edited by Xelvet (2015-03-22 14:25:46)

Offline

#4 2015-03-22 14:31:23

Xelvet
Member
Registered: 2014-02-20
Posts: 82

Re: After pacman -Su >>mpv: [ao] Failed to initialize audio driver 'alsa'

sudo downgrade mpv
1) mpv-0.8.3-1-x86_64.pkg.tar.xz (local)
2) mpv-0.7.1-1-x86_64.pkg.tar.xz (remote)
3) mpv-0.7.0-1-x86_64.pkg.tar.xz (remote)
select a package by number: 2 

Dowgrading to 0.7.1.1 helped. Sound has returned.
What has gone wrong with the latest repo and git versions
remains an open question, i guess.

Last edited by Xelvet (2015-03-22 14:34:01)

Offline

#5 2015-03-22 15:21:43

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: After pacman -Su >>mpv: [ao] Failed to initialize audio driver 'alsa'

What version of mpv-git were you using?
Both mpv and mplayer complain about hardware. Are you using e.g. a RaspberyrPi?
Post the output of

uname -a

Offline

#6 2015-03-22 15:58:12

Xelvet
Member
Registered: 2014-02-20
Posts: 82

Re: After pacman -Su >>mpv: [ao] Failed to initialize audio driver 'alsa'

karol wrote:

What version of mpv-git were you using?
Both mpv and mplayer complain about hardware. Are you using e.g. a RaspberyrPi?
Post the output of

uname -a

mplayer complains only about floating points but recognizes alsa
aur/mpv-git 0.8.2_267_g90adf29-1 (124)
My arch is x86_64.
Linux MAINFRAME 3.19.2-1-ARCH #1 SMP PREEMPT Wed Mar 18 19:21:02 ... 2015 x86_64 GNU/Linux

Last edited by Xelvet (2015-03-22 15:59:59)

Offline

#7 2015-03-22 16:02:37

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: After pacman -Su >>mpv: [ao] Failed to initialize audio driver 'alsa'

Did you rebuild it against the new libs?

Not a Pacman Issue, moving to AUR Issues...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2015-03-22 16:12:01

Xelvet
Member
Registered: 2014-02-20
Posts: 82

Re: After pacman -Su >>mpv: [ao] Failed to initialize audio driver 'alsa'

jasonwryan wrote:

Did you rebuild it against the new libs?

I believe so. Because having updated the sys when community/mpv
had failed i compiled and tried aur/mpv-git. The result was the same.

Offline

#9 2015-03-22 16:18:16

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: After pacman -Su >>mpv: [ao] Failed to initialize audio driver 'alsa'

How did you get that output of mpv-git version? I know what version is in the PKGBUILD in the AUR, but I'm asking what version have you tried. As it's a -git PKGBUILD, I have no way of knowing that.
Please build it and try again.
On my system it says

$ pacman -Q mpv-git
mpv-git 0.8.3_104_g3f3d71b-1

I've built it moments ago, everything seems to work.

Offline

#10 2015-03-22 16:22:47

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: After pacman -Su >>mpv: [ao] Failed to initialize audio driver 'alsa'

It's for sure your asound.conf, mpv recently overhauled their alsa device handling. What is the purpose of that config? Anyway, maybe you'll find something useful here.

Offline

#11 2015-03-22 16:41:58

Xelvet
Member
Registered: 2014-02-20
Posts: 82

Re: After pacman -Su >>mpv: [ao] Failed to initialize audio driver 'alsa'

% pacman -Qs mpv
local/mpv-git 0.8.3_104_g3f3d71b-1
Gusar wrote:

It's for sure your asound.conf, mpv recently overhauled their alsa device handling. What is the purpose of that config? Anyway, maybe you'll find something useful here.

My config copies front channels from 3.1 to headphones.
Hmm thanks! It seems this is very much related.
The link says:
"Also, the configuration below will not work with sound cards that the kernel exposes as several stereo subdevices instead of one true multichannel card. This restriction applies e.g. to everything based on the EMU10K1 chip."

And I do have emu10k1 chipset.

Having removed my slave pcm rerouting from asound.conf
i managed to get mpv-git working finaly.

But i'm not sure how can i get now
my rerouting working again.

Last edited by Xelvet (2015-03-22 16:49:18)

Offline

#12 2015-03-22 16:51:22

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: After pacman -Su >>mpv: [ao] Failed to initialize audio driver 'alsa'

You might be able to keep your routing by using something like mpv --audio-device=alsa/surround51. Use =help to get a list of devices.

Offline

Board footer

Powered by FluxBB