Bug 505338 - Background music and intro sound doesn't work with compris-qt-25.1-Raspberry64.sh on Raspberry Pi 4
Summary: Background music and intro sound doesn't work with compris-qt-25.1-Raspberry6...
Status: REPORTED
Alias: None
Product: gcompris
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Jazeix Johnny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-08 11:07 UTC by Mikael Bonnier
Modified: 2025-06-29 09:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael Bonnier 2025-06-08 11:07:11 UTC
SUMMARY
Background music and intro sound doesn't work with gcompris-qt-25.1-Raspberry64.sh on Raspberry Pi 4 running Debian from Raspberry Pi. This works in the old version from apt.

STEPS TO REPRODUCE
1. chmod u+x gcompris-qt-25.1-Raspberry64.sh
2. ./gcompris-qt-25.1-Raspberry64.sh
3. cd gcompris-qt-25.1-Linux/
4. sudo apt install qt5-image-formats-plugins
5. sudo apt install libxcb-cursor0 # This is needed for my setup
6. sudo apt install gcompris-qt
7. ./gcompris-qt.sh

OBSERVED RESULT
exeCount set to:  8
switch locale to "sv_FI.UTF-8"
Found box2d in  "/home/pi/Downloads/gcompris-qt-25.1-Linux/lib/qml"
could not load multimedia backend "ffmpeg"
QtMultimedia is not currently supported on this platform or compiler.
Failed to initialize QMediaPlayer "Not available"
Failed to initialize QMediaPlayer "Not available"
qml: enter main.qml (run #8, ratio=2.019230769230769, fontRatio=2.1283783783783785, dpi=98, userDataPath=/home/pi/.local/share/GCompris)
"" does not exist, cannot parse Contents for  "data3/Contents"

EXPECTED RESULT
QtMultimedia should be supported and no problems with ffmpeg.

SOFTWARE/OS VERSIONS
neofetch:
OS: Debian GNU/Linux 12 (bookworm) aarch64 
Host: Raspberry Pi 4 Model B Rev 1.4 
Kernel: 6.12.25+rpt-rpi-v8 
Uptime: 16 hours, 13 mins 
Packages: 2562 (dpkg) 
Shell: bash 5.2.15 
Resolution: 1680x1050, 1280x1024 
DE: LXDE 
WM: Openbox 
Theme: PiXflat [GTK3] 
Icons: PiXflat [GTK3] 
Terminal: lxterminal 
Terminal Font: Monospace 10 
CPU: Cortex-A72 (4) @ 1.800GHz 
GPU: V3D 4.2.14.0 
Memory: 3574MiB / 7821MiB

ADDITIONAL INFORMATION
gcompris-qt 3.1 from apt seems to work without problems, but I wanted to use the latast version.
Comment 1 Jazeix Johnny 2025-06-08 14:58:47 UTC
Hi,

thank you for the report and sorry for the inconvenience.

Can you check if ffmpeg is installed on your system?

With Qt6, the audio plugin changed from gstreamer to ffmpeg, so at least we need to check if ffmpeg is installed, and I'll check if we shipped correctly the plugin too.
Comment 2 Mikael Bonnier 2025-06-10 18:12:36 UTC
(In reply to Jazeix Johnny from comment #1)
> Hi,
> 
> thank you for the report and sorry for the inconvenience.
> 
> Can you check if ffmpeg is installed on your system?
> 
> With Qt6, the audio plugin changed from gstreamer to ffmpeg, so at least we
> need to check if ffmpeg is installed, and I'll check if we shipped correctly
> the plugin too.

I have ffmpeg installed since before I installed GCompris: 
i ffmpeg 8:5.1.6-0+deb1 8:5.1.6-0+deb1
according to aptitude.
Comment 3 Jazeix Johnny 2025-06-11 19:43:59 UTC
Thanks, we have a track that maybe we miss some plugins in the package.
I have to investigate more, hopefully I will have time this weekend.
Sorry for the inconvenience meanwhile, we have a version between the 3.1 and 25.1 that should work and contain more recent activities too: https://download.kde.org/stable/gcompris/qt/raspberrypi/gcompris-qt-4.3-Raspberry.sh
Comment 4 Jazeix Johnny 2025-06-29 09:01:50 UTC
Hi,

sorry for not replying earlier. I did not manage to reproduce on my side, can you please try the following to try to help fixing the issue:

* Can you please check that you have the following packages: libavcodec, libavformat, libavdevice, libavutil, libavfilter, swscale, libpostproc and libswresample?

* Can you please run: "export QT_DEBUG_PLUGINS=1" before running gcompris and paste here the output?

* Can you please try: "export LD_LIBRARY_PATH=${PWD}/bin && ldd ./bin/gcompris-qt" inside the folder and paste here the output?

Note: a potential workaround: "export QT_MEDIA_BACKEND=gstreamer" to run with gstreamer should work.