Does not play with Ubuntu 24.04
Description:
I've been using namp for a long time and I love it. However, I've switched from Ubuntu 22.04 to 24.04 and it does not work anymore.
The files appear in the playlist, but they do not play. The time counter stays at 0:00 and I cannot fast forward.
I have tried the binaries that I compiled on 22.04 and did a fresh compilation on 24.04. Same issue with both.
How to reproduce it:
- get clean code from github
- make.sh
- run
nampwith any mp3 file
Environment:
- OS / distro: Ubuntu 24.04
Hi @farindk - glad to hear you like namp! 🙂
Can I check if you are on Qt 5 or 6? One can use qmake --version to get the version.
I did a quick test on Ubuntu 24.04 here, first using Qt 5 and then Qt 6, both builds played my audio files fine.
If your Ubuntu 24.04 installation is a fresh one (not upgrade) maybe there is some runtime dependency missing. You could try run the below to ensure dependencies are installed.
For Qt 5:
sudo apt install libncursesw5-dev libtag1-dev qt5-default qt5-qmake qtmultimedia5-dev libqt5multimedia5-plugins ubuntu-restricted-extras
For Qt 6:
sudo apt install libncursesw5-dev libtag1-dev qt6-base-dev qt6-multimedia-dev gstreamer1.0-pulseaudio ubuntu-restricted-extras
Right. I was missing the libqt5multimedia5-plugins and consequently there was no matching decoding plugin.
Maybe it would be worthwhile to check whether a media format is supported (e.g. through QMediaFormat::supportedAudioCodecs()) and show a warning that we might miss the plugins if no codec was found.
Thanks for the quick help. I leave it to you whether you want to close this issue.
That is a very good idea, I will leave this issue open for now until I've added some type of warning. 👍
umm @d99kris despiste the winbuntu os, the problem i guess is the name of package in different distros.. i mean.. package, which provides not only the plugins but also other necessary ones due to dependencies, will have different names in other distributions
such message of warning if there are too generic so user will not know what the package is called in more specialized distributions, so i guess best is to show the warning about missing part of qt framework and then shows a link to the repo wiki with an index to solve the issue in different distributions.. and with a foot note about if such distro is not listed send a issue to this repo to add or contribute or help with---.