However, that is not enough; ffplay still does not play any sound and prints:
ALSA lib dlmisc.c:339:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_pcm_pulse.so (/workspace/destdir/lib/alsa-lib/libasound_module_pcm_pulse.so: cannot open shared object file: No such file or directory)
Based on the /workspace/destdir/ prefix, I assume there's an issue with how we build alsa_jll. I noticed that the configure.ac script from alsa-lib provides --with-configdir and --with-plugindir. Would it help to set them to /usr/share/alsa/ and /usr/lib/alsa-lib/, respectively?
When using
FFplay_jll
to play audio files on linux as followsffplay
does not play any sound and prints these messages:That can be resolved by setting the
ALSA_CONFIG_PATH
variable:However, that is not enough;
ffplay
still does not play any sound and prints:That requires to set
ALSA_PLUGIN_DIR
:Based on the
/workspace/destdir/
prefix, I assume there's an issue with how we buildalsa_jll
. I noticed that theconfigure.ac
script fromalsa-lib
provides--with-configdir
and--with-plugindir
. Would it help to set them to/usr/share/alsa/
and/usr/lib/alsa-lib/
, respectively?I found a similar issue (https://github.com/homebridge/ffmpeg-for-homebridge/issues/9) with a corresponding fix (https://github.com/homebridge/ffmpeg-for-homebridge/pull/10).
Discovered on Discourse.