出现 GStreamer; Unable to pause - “file:///content/Video/testvideo.mp4” Error: "
则安装 gstreamer0.10-ffmpeg
一、安装gstreamer
https://www.cnblogs.com/walker-lin/p/11520064.html
测试安装是否正常:
https://blog.csdn.net/ccccxq/article/details/88090263
https://blog.csdn.net/tiger99111/article/details/22196957
应该会有异常,根据提示,按下面方法解决:
二、安装 gstreamer0.10-ffmpeg
安装步骤:
1、sudo add-apt-repository ppa:mc3man/trusty-media
2、sudo apt-get update
遇到下列问题:
出现错误:解决方法如下
https://www.cnblogs.com/wenzheshen/p/6599636.html
3、sudo apt-get install gstreamer0.10-ffmpeg
三、安装完以后
出现与JACK服务器有关的错误:
解决方法:
https://wangzk.github.io/linux/2018/05/27/install-jack-audio-in-deepin.html
至此
MediaPlayer{
id: mediaPlayer
// source: "file:home/lzm/work/testvideo.mp4"
source: "file:../Video/testvideo.mp4"
autoPlay: true
}
VideoOutput{
id: video
anchors.fill: parent
source: mediaPlayer
}
此段代码皆可以在QT中运行了