Black screen using QML code to play a video
Hi all.
I'm developing a QT/QML application for my embedded openSTLinux project. This application has to play some videos with relative audio. I'm trying to play a mp4 file. If I use the following
gst-launch-1.0 playbin uri=file:///home/root/media/my_video.mp4 video-sink="waylandsink sync=false"audio and video are played correctly. Instead, if I use QML code, for example this
Item {
id: idVideo
visible: true
width: 1024
height: 600
Video {
id: videoExample
anchors.fill: parent
source: "file:///home/root/media/my_video.mp4"
autoPlay: true
focus: true
}
}or this
Item {
id: idVideo
visible: true
width: 1024
height: 600
MediaPlayer {
id: mdpExample
source: "file:///home/root/media/my_video.mp4"
autoPlay: true
}
VideoOutput {
id: videoExample
anchors.fill: parent
source: mdpExample
}
}the display shows nothing (black screen) but the audio is played correctly.
Below the "gstreamer" plugins I have installed in my openSTLinux image
gstreamer1.0 \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly \
gstreamer1.0-rtsp-server \
gstreamer1.0-omx \
gstreamer1.0-libav \
gstreamer1.0-dev \
gst-validate \
gst-examples \How can I solve the problem?
Thanks
Regards
