Raspberry pi 4 qmediaplayer

Heads up! You've already completed this tutorial.

Stefan_Segers | 2021-05-07 06:36:04 UTC | #1

Hi, I used qmediaplayer (pyqt5) to play video and audiofiles on the raspberry pi 4. This works perfectly if the sound goes through the HDMI port. But for this particular project I'm doing the sound has to come from the analog jack. Is this possible and does anyone have a solution for this?

Den_Vars | 2021-05-27 11:32:31 UTC | #2

Hi, I had the same problem. I just tried this command and it "works": sudo apt install gstreamer1.0-pulseaudio

I hope that works for you.

Stefan_Segers | 2021-05-27 11:32:30 UTC | #3

Thanks a lot, works indeed. Because I had not found the solution i used a hardware workaround for the problem (a hdmi splitter audio extractor)

Well done, you've finished this tutorial! Mark As Complete
[[ user.completed.length ]] completed [[ user.streak+1 ]] day streak

Raspberry pi 4 qmediaplayer was written by Martin Fitzpatrick .

Martin Fitzpatrick has been developing Python/Qt apps for 8 years. Building desktop applications to make data-analysis tools more user-friendly, Python was the obvious choice. Starting with Tk, later moving to wxWidgets and finally adopting PyQt.