Have you tried to remove any libmpv package? Run:
sudo apt-get purge libmpv-dev libmpv && sudo apt-get autoremove
Afterwards install the required packages for sound:
sudo apt-get install libmp3lame-dev libx246-dev libfbdc-aac-dev
Afterwards recompile with these steps:
cd mpv-build
echo --enable-libmpv-shared > mpv_options
# Enable sound on minitube videos
echo --enable-libx264 >> ffmpeg_options
echo --enable-libmp3lame >> ffmpeg_options
echo --enable-libfdk-aac >> ffmpeg_options
./use-mpv-custom v0.29.0
./update
./rebuild -j4
sudo ./install
Also let the LD_LIBRARY_PATH
to point into /usr/local/lib
via:
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
And for more permanent results use either one of these commands:
- For your local user only:
echo "export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH" >> ~/.profile
- For all users/global use:
echo "LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH" | sudo tee -a /etc/environment