无法 运行 Raspberry Pi 上的 Qt5 视频播放器示例

Unable Run Qt5 Video player example on Raspberry Pi

我在 Raspberry pi 2 B 模型上安装了 Qt creator(Qt5) 及其示例。我是 运行 Raspbian Jessie。我尝试 运行 一个视频播放器示例,但最终出现如下错误:

Starting /usr/lib/arm-linux-gnueabihf/qt5/examples/multimediawidgets/build-player-Desktop-Debug/player... libEGL warning: GLX/DRI2 is not supported libEGL warning: DRI2: failed to authenticate

(player:841): GStreamer-CRITICAL **: gst_object_ref_sink: assertion 'GST_IS_OBJECT (object)' failed GStreamer; Unable to play - "file:///home/pi/Desktop/test_video.mp4" GStreamer; Unable to play - "file:///home/pi/Desktop/test_video.mp4" Warning: "No decoder available for type 'video/quicktime, variant=(string)iso'."

请告诉我如何解决这些 "Gstreamer" 和 "No decoder" 问题。

经过大量谷歌搜索后,我可以修复它,这是我的答案。

您必须编辑 /etc/apt/sources.list 以添加新存储库 "deb http://www.deb-multimedia.org jessie main non-free" 然后安装以下软件包

sudo apt-get update
# To fix key error
sudo apt-get install deb-multimedia-keyring
sudo apt-get update
sudo apt-get dist-upgrade 
sudo apt-get install gstreamer0.10-ffmpeg
sudo apt-get install gstreamer0.10-plugins-ugly
sudo apt-get install gstreamer0.10-plugins-bad
sudo apt-get install gstreamer0.10-plugins-good

学分: http://www.deb-multimedia.org/ How to fix gstreamer error in Qt5?