Since libavresample was deprecated from ffmpeg, and something went wrong with the rate plugin's config parser, digital surround sound output has been broken.
There is a workaround, packaged herein.
You'll need to install libavresample and alsa-plugins built against it for the lavrate plugin, then alsa-lib-a52pcm to work with the well known configuration.
$ git clone https://aur.archlinux.org/libavresample
$ cd libavresample/
$ makechrootpkg -c -r $CHROOT
# pacman -U --asdeps libavresample-4.3.1-1-x86_64.pkg.tar.zst
$ cd ../
$ git clone git://git.archlinux.org/svntogit/packages.git --{single-,}branch {packages/,}alsa-plugins
$ cd alsa-plugins/trunk/
$ makechrootpkg -c -r $CHROOT -I ../../libavresample/libavresample-4.3.1-1-x86_64.pkg.tar.zst
# pacman -U alsa-plugins-1\:1.2.2-2-x86_64.pkg.tar.zst
$ cd ../../
$ git clone https://aur.archlinux.org/alsa-lib-a52pcm
$ cd alsa-lib-a52pcm/
$ makechrootpkg -c -r $CHROOT
# pacman -U --asdeps alsa-lib-a52pcm-1.2.4-1-x86_64.pkg.tar.zst
Note: If audio is again lost after an upgrade, repeat.
One more thing, to save your sanity, you may want to prevent pacman from automatically upgrading alsa-plugins
and alsa-lib
:
in /etc/pacman.conf
IgnorePkg = alsa-plugins alsa-lib
Pinned Comments
quequotion commented on 2020-03-28 16:03
Since libavresample was deprecated from ffmpeg, and something went wrong with the rate plugin's config parser, digital surround sound output has been broken.
There is a workaround, packaged herein.
You'll need to install libavresample and alsa-plugins built against it for the lavrate plugin, then alsa-lib-a52pcm to work with the well known configuration.
Note: If audio is again lost after an upgrade, repeat.
One more thing, to save your sanity, you may want to prevent pacman from automatically upgrading
alsa-plugins
andalsa-lib
:in /etc/pacman.conf