Skip to content

Does not play with Ubuntu 24.04 #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
farindk opened this issue Feb 11, 2025 · 4 comments
Open

Does not play with Ubuntu 24.04 #6

farindk opened this issue Feb 11, 2025 · 4 comments
Assignees
Labels

Comments

@farindk
Copy link

farindk commented Feb 11, 2025

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 namp with any mp3 file

Environment:

  • OS / distro: Ubuntu 24.04
@d99kris
Copy link
Owner

d99kris commented Feb 12, 2025

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

@farindk
Copy link
Author

farindk commented Feb 12, 2025

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.

@d99kris
Copy link
Owner

d99kris commented Feb 12, 2025

That is a very good idea, I will leave this issue open for now until I've added some type of warning. 👍

@mckaygerhard
Copy link

mckaygerhard commented Feb 12, 2025

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---.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants