Gentoo Archives: gentoo-user

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

Attachments

File name MIME type
signature.asc application/pgp-signature