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

Reply via email to