Hi there,
I have a sample qt app that plays an h264/mp4 video. But when i tried to play video, the app crashes throwing the following error:
root@dra7xx-evm:~/mplayer# ./mplayer
No such plugin for spec "Auto"
Using Wayland-EGL
wlpvr: PVR Services Initialised
(mplayer:2215): GStreamer-CRITICAL **: gst_buffer_peek_memory: assertion 'GST_IS_BUFFER (buffer)' failed
** (mplayer:2215): CRITICAL **: gst_fd_memory_get_fd: assertion 'mem != NULL' failed
Segmentation fault (core dumped)
Here is the code:
import QtQuick 2.3
import QtQuick.Window 2.2
import QtMultimedia 5.5
Window {
visible: true
height: 480
width: 640
MediaPlayer {
id: mediaplayer
source: "file:///Video/NonCritical/06082018/hi.mp4"
}
VideoOutput {
source: mediaplayer
}
MouseArea {
id: playArea
anchors.fill: parent
onPressed: mediaplayer.play();
}
}
Any solution?