error while trying to play mov file using QtMultimedia
Solved
QML and Qt Quick
-
Video {
id: video
width : 800
height : 600
source: "file:///home/user/test.mov"MouseArea { anchors.fill: parent onClicked: { video.play() } } focus: true Keys.onSpacePressed: video.playbackState == MediaPlayer.PlayingState ? video.pause() : video.play() Keys.onLeftPressed: video.position = video.position - 5000 Keys.onRightPressed: video.position = video.position + 5000 }
when trying to run this piece of code I am getting an error of
qt.multimedia.player: Warning: "No decoder available for type 'video/x-rle, layout=(string)quicktime, depth=(int)32, width=(int)3840, height=(int)2160, framerate=(fraction)24000/1001, pixel-aspect-ratio=(fraction)1/1'."
can anyone shed tell me what is the reason?
-
@JoeCFD it's linux and thanks for the replay,
I used :
$ sudo apt install ubuntu-restricted-extras
and
$ sudo apt install libdvdnav4 libdvd-pkg gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly
to install the decoders and now it's working fine -