Hi,
I've developed a QML app on an iMX93 platform (Yocto + Qt6.4) and I'm experiencing an issue when trying to play videos.
Whether I use MediaPlayer + VideoOutput or Video components, I'm not able to view anything on the screen. Audio plays ok though
This is a snippet of my code, but video QML examples also doesn't work.
Video {
id: video
anchors.fill: parent
source: "file:///home/root/turning_pages.avi"
fillMode: Image.Stretch
muted: false
Component.onCompleted: play()
onErrorOccurred: error => console.log('Error occurred:', errorString, error)
onPlaying: console.log('playing stream', source)
onStopped: console.log('stream stopped')
onBufferProgressChanged: console.log('buffering:', bufferProgress)
}And this is the console output -no warnings nor errors-
====== AIUR: 4.7.3 build on Feb 3 2023 05:14:46. ======
Core: AVI_PARSER_03.06.08 build on Sep 26 2022 08:17:20
file: /usr/lib/imx-mm/parser/lib_avi_parser_arm_elinux.so.3.1
------------------------
Track 00 [video_0] Enabled
Duration: 0:00:15.533178000
Language: und
Mime:
image/jpeg, width=(int)160, height=(int)120, framerate=(fraction)500000/33333
------------------------
------------------------
Track 01 [audio_0] Enabled
Duration: 0:00:15.533381000
Language: und
Mime:
audio/x-raw, format=(string)U8, channels=(int)1, layout=(string)interleaved, rate=(int)11024, bitrate=(int)88192 I'm able to play the video using gst-launch
gst-launch-1.0 playbin uri=file:///home/root/turning_pages.avi video-sink="waylandsink sync=false"
So it seems it's not a codec related issue, but these are the gstreamer plugins installed:
CORE_IMAGE_EXTRA_INSTALL += "gstreamer1.0-plugins-ugly-meta packagegroup-fsl-gstreamer1.0-commercial"
LICENSE_FLAGS_ACCEPTED += "commercial"
CORE_IMAGE_EXTRA_INSTALL += " \
packagegroup-fsl-tools-gpu \
packagegroup-fsl-gstreamer1.0 \
packagegroup-fsl-gstreamer1.0-full \
"
Running Qt widgets examples does works and both video and audio works fine, so it seems only related to the QML side
When building Yocto I've also added the following lines:
IMAGE_INSTALL:append = " qtmultimedia qtmultimedia-plugins qtmultimedia-qmlplugins"
PACKAGECONFIG:append_pn-qtmultimedia = " gstreamer gstreamer010"
"
Thks in advance