Gentoo Archives: gentoo-user

From: tuxic@××××××.de
To: Gentoo <gentoo-user@l.g.o>
Subject: [gentoo-user] mpv: no sound anymore...?
Date: Sat, 20 Jan 2018 07:12:13
Message-Id: 20180120071152.flge3wxb6rsg74dy@solfire
1 Hi,
2
3 either by one of the last updates or by me while un-pulseaudio-fy
4 firefox (and removing pulseaudio afterwards) mpv is no longer willing
5 to play any sound.
6
7
8 Some informations:
9
10 [I] media-video/mpv
11 Available versions: 0.18.0-r1 0.25.0-r2 (~)0.26.0 (~)0.27.0-r1 [M](~)0.28.0 **9999 {+X +alsa aqua archive bluray cdda +cli coreaudio cplugins cuda doc drm dvb dvd +egl +enca encode gbm +iconv jack javascript jpeg lcms +libass libav libcaca libguess libmpv (+)lua luajit openal +opengl oss pulseaudio raspberry-pi rubberband samba sdl selinux test tools (+)uchardet v4l vaapi vdpau vf-dlopen wayland xinerama +xscreensaver +xv zlib zsh-completion CPU_FLAGS_X86="sse4_1" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6"}
12 Installed versions: 0.27.0-r1(06:53:23 AM 01/04/2018)(X alsa archive cdda cli cplugins cuda doc drm dvb dvd egl encode iconv jack jpeg libass lua luajit opengl tools uchardet v4l vdpau xv zlib zsh-completion -aqua -bluray -coreaudio -gbm -javascript -lcms -libav -libcaca -libmpv -openal -oss -pulseaudio -raspberry-pi -rubberband -samba -sdl -selinux -test -vaapi -wayland PYTHON_TARGETS="python2_7 python3_5 python3_6 -python3_4")
13 Homepage: https://mpv.io/
14 Description: Media player based on MPlayer and mplayer2
15
16
17 Output on the console while playing a video:
18 mpv the_best_GPU_for_Blender-720p.mp4
19 Playing: the_best_GPU_for_Blender-720p.mp4
20 (+) Video --vid=1 (*) (h264 1280x720 29.970fps)
21 (+) Audio --aid=1 --alang=und (*) (aac 2ch 44100Hz)
22 ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.1.5/work/alsa-lib-1.1.5/src/pcm/pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
23 [ao/alsa] Playback open error: Device or resource busy
24 [ao] Failed to initialize audio driver 'alsa'
25 Could not open/initialize audio device -> no sound.
26 Audio: no audio
27 VO: [opengl] 1280x720 yuv420p
28 V: 00:00:01 / 00:12:38 (0%)
29
30
31 Exiting... (Quit)
32
33
34 Or with jack:
35
36 (replaced my username by 'user')
37
38 ps -ef | grep jack
39 user 4299 1 0 02:47 ? 00:01:34 jackd -t5000 -dalsa -dhw:0 -r48000 -p1024 -n2 -H -M -Xseq
40 user 24837 24766 0 08:05 pts/3 00:00:00 grep -E --color jack
41
42 id
43 uid=1001(user) gid=100(users) groups=100(users),10(wheel),12(mail),14(uucp),18(audio),19(cdrom),27(video),35(games),80(cdrw),85(usb),103(docker),237(wireshark),244(vboxusers),245(vlock),246(realtime)
44
45 [I] media-sound/jack-audio-connection-kit
46 Available versions: 0.121.3-r1 (~)0.124.1-r1 (~)0.125.0 {alsa altivec coreaudio cpudetection debug doc examples oss pam ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" CPU_FLAGS_X86="3dnow mmx sse"}
47 Installed versions: 0.125.0(07:33:45 AM 12/05/2017)(alsa pam -altivec -coreaudio -debug -doc -examples -oss ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" CPU_FLAGS_X86="3dnow sse")
48 Homepage: http://www.jackaudio.org
49 Description: A low-latency audio server
50
51 (using zsh):
52 l /dev/**/*jack*
53 srwxr-xr-x 1 user users 0 2018-01-20 02:47 /dev/shm/jack-1001/default/jack_0
54 srwxr-xr-x 1 user users 0 2018-01-20 02:47 /dev/shm/jack-1001/default/jack_ack_0
55 prw-r--r-- 1 user users 0 2018-01-20 08:07 /dev/shm/jack-1001/default/jack-ack-fifo-4299-0
56 prw-r--r-- 1 user users 0 2018-01-20 08:07 /dev/shm/jack-1001/default/jack-ack-fifo-4299-1
57 prw-r--r-- 1 user users 0 2018-01-20 02:47 /dev/shm/jack-1001/default/jack-ack-fifo-4299-2
58 prw-r--r-- 1 user users 0 2018-01-20 02:49 /dev/shm/jack-1001/default/jack-ack-fifo-4299-3
59
60 /dev/shm/jack-1001:
61 total 0
62
63 mpv --audio-device=jack the_best_GPU_for_Blender-720p.mp4
64 Playing: the_best_GPU_for_Blender-720p.mp4
65 (+) Video --vid=1 (*) (h264 1280x720 29.970fps)
66 (+) Audio --aid=1 --alang=und (*) (aac 2ch 44100Hz)
67 ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.1.5/work/alsa-lib-1.1.5/src/pcm/pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
68 [ao/alsa] Playback open error: Device or resource busy
69 [ao] Failed to initialize audio driver 'alsa'
70 Could not open/initialize audio device -> no sound.
71 Audio: no audio
72 VO: [opengl] 1280x720 yuv420p
73 V: 00:00:01 / 00:12:38 (0%)
74
75 (why it is accessing alsa here???)
76
77
78 Using for example zynaddsubfx (softsynth) via qjackctrl/jack I can
79 play sound.
80 Mpv does not show up in qjackctrl....
81
82 The situation does not change if doing anything of the above as root.
83
84 Mplayer plays sound...but fails to play the video instead.
85
86 Currently I dont know what the problem here.
87
88 If anyone has any idea...heartly welcome... :)
89
90 Cheers
91 Meino

Replies

Subject Author
Re: [gentoo-user] mpv: no sound anymore...? Mick <michaelkintzios@×××××.com>
Re: [gentoo-user] mpv: no sound anymore...? Simon Thelen <gentoo-user@××××.de>