Re: [gentoo-user] mpv: no sound anymore...?
Hello, On 18-01-20 at 08:11, tu...@posteo.de wrote: > Hi, > > either by one of the last updates or by me while un-pulseaudio-fy > firefox (and removing pulseaudio afterwards) mpv is no longer willing > to play any sound. I don't have any particularly concrete ideas because the error log isn't very descriptive, but I have several things you can try that will give us more info/may help pinpoint the issue. You might want to post the contents of your /etc/asound.conf and your ~/.asoundrc as well as maybe checking the contents of /usr/share/alsa if there's anything still referencing pulseaudio in there. Maybe also a qcheck media-libs/alsa-lib to check if any of the default config files have any changes in them (you can also diff the output of qlist alsa-lib and find /usr/share/alsa). You might also want to check your mpv.conf if you have change any of the audio settings there. [..] > Output on the console while playing a video: > mpv the_best_GPU_for_Blender-720p.mp4 > Playing: the_best_GPU_for_Blender-720p.mp4 > (+) Video --vid=1 (*) (h264 1280x720 29.970fps) > (+) Audio --aid=1 --alang=und (*) (aac 2ch 44100Hz) > 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 > [ao/alsa] Playback open error: Device or resource busy > [ao] Failed to initialize audio driver 'alsa' > Could not open/initialize audio device -> no sound. > Audio: no audio > VO: [opengl] 1280x720 yuv420p > V: 00:00:01 / 00:12:38 (0%) You can try running mpv in verbose mode (-v) to see if that prints any more relevant information and also try using any of the other (alsa) audio-devices listed by --audio-device=help. You could also try setting --audio-samplerate=48k and try enabling/disabling alsa resampling with --alsa-resample=yes/no. [..] > mpv --audio-device=jack the_best_GPU_for_Blender-720p.mp4 > Playing: the_best_GPU_for_Blender-720p.mp4 > (+) Video --vid=1 (*) (h264 1280x720 29.970fps) > (+) Audio --aid=1 --alang=und (*) (aac 2ch 44100Hz) > 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 > [ao/alsa] Playback open error: Device or resource busy > [ao] Failed to initialize audio driver 'alsa' > Could not open/initialize audio device -> no sound. > Audio: no audio > VO: [opengl] 1280x720 yuv420p > V: 00:00:01 / 00:12:38 (0%) > > (why it is accessing alsa here???) mpv's verbose mode will probably give more info as to why it's trying to open alsa, but I don't know enough about jack to give any useful ideas here. > Using for example zynaddsubfx (softsynth) via qjackctrl/jack I can > play sound. > Mpv does not show up in qjackctrl What samplerate does that generate sound at? 48k or 44.1k? -- Simon Thelen
Re: [gentoo-user] mpv: no sound anymore...?
On Saturday, 20 January 2018 07:11:52 GMT tu...@posteo.de wrote: > Hi, > > either by one of the last updates or by me while un-pulseaudio-fy > firefox (and removing pulseaudio afterwards) mpv is no longer willing > to play any sound. > > > Some informations: > > [I] media-video/mpv > Available versions: 0.18.0-r1 0.25.0-r2 (~)0.26.0 (~)0.27.0-r1 > [M](~)0.28.0 ** {+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"} 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") Homepage:https://mpv.io/ > Description: Media player based on MPlayer and mplayer2 > > > Output on the console while playing a video: > mpv the_best_GPU_for_Blender-720p.mp4 > Playing: the_best_GPU_for_Blender-720p.mp4 > (+) Video --vid=1 (*) (h264 1280x720 29.970fps) > (+) Audio --aid=1 --alang=und (*) (aac 2ch 44100Hz) > 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 [ao/alsa] Playback open > error: Device or resource busy > [ao] Failed to initialize audio driver 'alsa' > Could not open/initialize audio device -> no sound. > Audio: no audio > VO: [opengl] 1280x720 yuv420p > V: 00:00:01 / 00:12:38 (0%) > > > Exiting... (Quit) > > > Or with jack: > > (replaced my username by 'user') > > ps -ef | grep jack > user 4299 1 0 02:47 ?00:01:34 jackd -t5000 -dalsa -dhw:0 > -r48000 -p1024 -n2 -H -M -Xseq user 24837 24766 0 08:05 pts/300:00:00 > grep -E --color jack > > id > 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(vl > ock),246(realtime) > > [I] media-sound/jack-audio-connection-kit > 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"} 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") Homepage:http://www.jackaudio.org > Description: A low-latency audio server > > (using zsh): > l /dev/**/*jack* > srwxr-xr-x 1 user users 0 2018-01-20 02:47 > /dev/shm/jack-1001/default/jack_0 srwxr-xr-x 1 user users 0 2018-01-20 > 02:47 /dev/shm/jack-1001/default/jack_ack_0 prw-r--r-- 1 user users 0 > 2018-01-20 08:07 /dev/shm/jack-1001/default/jack-ack-fifo-4299-0 prw-r--r-- > 1 user users 0 2018-01-20 08:07 > /dev/shm/jack-1001/default/jack-ack-fifo-4299-1 prw-r--r-- 1 user users 0 > 2018-01-20 02:47 /dev/shm/jack-1001/default/jack-ack-fifo-4299-2 prw-r--r-- > 1 user users 0 2018-01-20 02:49 > /dev/shm/jack-1001/default/jack-ack-fifo-4299-3 > > /dev/shm/jack-1001: > total 0 > > mpv --audio-device=jack the_best_GPU_for_Blender-720p.mp4 > Playing: the_best_GPU_for_Blender-720p.mp4 > (+) Video --vid=1 (*) (h264 1280x720 29.970fps) > (+) Audio --aid=1 --alang=und (*) (aac 2ch 44100Hz) > 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 [ao/alsa] Playback open > error: Device or resource busy > [ao] Failed to initialize audio driver 'alsa' > Could not open/initialize audio device -> no sound. > Audio: no audio > VO: [opengl] 1280x720 yuv420p > V: 00:00:01 / 00:12:38 (0%) > > (why it is accessing alsa here???) > > > Using for example zynaddsubfx (softsynth) via qjackctrl/jack I can > play sound. > Mpv does not show up in qjackctrl > > The situation does not change if doing anything of the above as root. > > Mplayer plays sound...but fails to play the video instead. > > Currently I dont know what the problem here. > > If anyone has any idea...heartly welcome... :) > > Cheers > Meino I'd start by running 'alsactl init' to (re)initialise alsa and see if it reports any errors. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
[gentoo-user] mpv: no sound anymore...?
Hi, either by one of the last updates or by me while un-pulseaudio-fy firefox (and removing pulseaudio afterwards) mpv is no longer willing to play any sound. Some informations: [I] media-video/mpv Available versions: 0.18.0-r1 0.25.0-r2 (~)0.26.0 (~)0.27.0-r1 [M](~)0.28.0 ** {+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"} 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") Homepage:https://mpv.io/ Description: Media player based on MPlayer and mplayer2 Output on the console while playing a video: mpv the_best_GPU_for_Blender-720p.mp4 Playing: the_best_GPU_for_Blender-720p.mp4 (+) Video --vid=1 (*) (h264 1280x720 29.970fps) (+) Audio --aid=1 --alang=und (*) (aac 2ch 44100Hz) 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 [ao/alsa] Playback open error: Device or resource busy [ao] Failed to initialize audio driver 'alsa' Could not open/initialize audio device -> no sound. Audio: no audio VO: [opengl] 1280x720 yuv420p V: 00:00:01 / 00:12:38 (0%) Exiting... (Quit) Or with jack: (replaced my username by 'user') ps -ef | grep jack user 4299 1 0 02:47 ?00:01:34 jackd -t5000 -dalsa -dhw:0 -r48000 -p1024 -n2 -H -M -Xseq user 24837 24766 0 08:05 pts/300:00:00 grep -E --color jack id 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) [I] media-sound/jack-audio-connection-kit 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"} 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") Homepage:http://www.jackaudio.org Description: A low-latency audio server (using zsh): l /dev/**/*jack* srwxr-xr-x 1 user users 0 2018-01-20 02:47 /dev/shm/jack-1001/default/jack_0 srwxr-xr-x 1 user users 0 2018-01-20 02:47 /dev/shm/jack-1001/default/jack_ack_0 prw-r--r-- 1 user users 0 2018-01-20 08:07 /dev/shm/jack-1001/default/jack-ack-fifo-4299-0 prw-r--r-- 1 user users 0 2018-01-20 08:07 /dev/shm/jack-1001/default/jack-ack-fifo-4299-1 prw-r--r-- 1 user users 0 2018-01-20 02:47 /dev/shm/jack-1001/default/jack-ack-fifo-4299-2 prw-r--r-- 1 user users 0 2018-01-20 02:49 /dev/shm/jack-1001/default/jack-ack-fifo-4299-3 /dev/shm/jack-1001: total 0 mpv --audio-device=jack the_best_GPU_for_Blender-720p.mp4 Playing: the_best_GPU_for_Blender-720p.mp4 (+) Video --vid=1 (*) (h264 1280x720 29.970fps) (+) Audio --aid=1 --alang=und (*) (aac 2ch 44100Hz) 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 [ao/alsa] Playback open error: Device or resource busy [ao] Failed to initialize audio driver 'alsa' Could not open/initialize audio device -> no sound. Audio: no audio VO: [opengl] 1280x720 yuv420p V: 00:00:01 / 00:12:38 (0%) (why it is accessing alsa here???) Using for example zynaddsubfx (softsynth) via qjackctrl/jack I can play sound. Mpv does not show up in qjackctrl The situation does not change if doing anything of the above as root. Mplayer plays sound...but fails to play the video instead. Currently I dont know what the problem here. If anyone has any idea...heartly welcome... :) Cheers Meino