No sound from raspi3 3.5jack, using QtMediaPlayer
-
Is there any error coming from the QMediaPlayer? Anything being output to the console on the pi? Anything in the
dmesg
log that would help figure this out?Without further information my guess and it's a complete guess but something I see in linux a lot .. I'm thinking that your mixer for that audio source is set to a low or muted volume. Check that and see if it's muted or off. Without know what sound back end you are using I don't know which mixer to have you check, I'll just start with
amixer
oralsamixer
due to lack of info. :) -
Thanks for your response ambershark. There is no error message from QMediaPlayer. as I have mentioned the app works perfect on a linux machine, but when ported to raspberry pi 3 it does not work.
I have checked the volume levels and other general reasons, but to no avail. -
Hi,
Try to run your application with the
QT_DEBUG_PLUGINS
environment variable set to one, just to see if there's any hint coming from it. -
I have solved the problem. the culprit is pulseaudio. you have to disable pulseaudio for user or globally and then everything works perfectly.
Do not uninstall pulseaudio, because a lot of other stuff depends on it. I tried to remove pulseaudio and all hell broke loose.
I disabled pulseaudio according to the instructions here https://kodi.wiki/view/PulseAudio/HOW-TO:Disable_PulseAudio_and_use_ALSA(without_removing_PulseAudio)_for_Ubuntu -
I have solved the problem. the culprit is pulseaudio. you have to disable pulseaudio for user or globally and then everything works perfectly.
Do not uninstall pulseaudio, because a lot of other stuff depends on it. I tried to remove pulseaudio and all hell broke loose.
I disabled pulseaudio according to the instructions here https://kodi.wiki/view/PulseAudio/HOW-TO:Disable_PulseAudio_and_use_ALSA(without_removing_PulseAudio)_for_Ubuntu@Kachoraza thank you for sharing the solution. Please don't forget to mark your post as solved!
-
Dear Kachoraza,
I met a same problem. I can't solve it but I turned off PulseAudio as you said.
I am used QT3.7.1 on RPI 3.
Now I am just testing using a meida player example of QT(http://doc.qt.io/qt-5.6/qtmultimedia-multimediawidgets-player-example.html).Would you open more information for solving it?
-
I hope you have figured it out by now. But in case not, please follow the instructions in this article explaining the method.
-
Dear Kachoraza,
I met a same problem. I can't solve it but I turned off PulseAudio as you said.
I am used QT3.7.1 on RPI 3.
Now I am just testing using a meida player example of QT(http://doc.qt.io/qt-5.6/qtmultimedia-multimediawidgets-player-example.html).Would you open more information for solving it?
@Kernel-KIM You need to install pulseaudio and enable it
sudo apt-get install pulseaudio
-
I have solved the problem. the culprit is pulseaudio. you have to disable pulseaudio for user or globally and then everything works perfectly.
Do not uninstall pulseaudio, because a lot of other stuff depends on it. I tried to remove pulseaudio and all hell broke loose.
I disabled pulseaudio according to the instructions here https://kodi.wiki/view/PulseAudio/HOW-TO:Disable_PulseAudio_and_use_ALSA(without_removing_PulseAudio)_for_Ubuntu@Kachoraza Hi!
I got the same issue, but when I disabled pulseaudio as you did, I got an other error: PulseAudioService: pa_context_connect() failed. And when I enabled pulseaudio again, that error's gone but I couldn't get qtmediaplayer working (no sound from anysource). So I am in the loop now. Do you have any other suggestions? Thanks a lot! -
Hi, just found something that worked for me : https://raspberrypi.stackexchange.com/a/98952
Installing
gstreamer1.0-pulseaudio
did the trick.