QtQuick:无法在嵌入式Linux上播放任何视频 [英] QtQuick: cannot playback any video on embedded linux

查看:687
本文介绍了QtQuick:无法在嵌入式Linux上播放任何视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用TI提供的工具链及其SDK 6.00.00交叉编译了用于TI AM335x板的Qt 5.2.1.

I cross compiled Qt 5.2.1 for TI AM335x board using the toolchain provided by TI together with their SDK 6.00.00.

不幸的是,我无法以QML复制任何视频...

Unluckily I am not able to reproduce any video in QML...

调试控制台会告知:

defaultServiceProvider::requestService(): no service found for – "org.qt-project.qt.mediaplayer"

在交叉编译中是否缺少某些内容?也许一些依赖? 有人可以帮助我确定我想念的东西吗?

Is there something that I am missing in cross-compilation? maybe some dependencies? Can somebody help me in determining what I am missing?

您可以在我的交叉编译配置此处

You can find here my cross-compilation configuration and here the full trace of messages produced by the application when setting the environment variable QT_DEBUG_PLUGIN

推荐答案

您缺少可以实际播放音频的QtMultimedia后端.它未安装到正确的目录中,或者未构建.由于您的日志输出显示找到了一个后端(一个音频捕获端口),因此我排除了安装问题.

You are missing a QtMultimedia backend that can actually play audio. Either it is not installed into the correct directory, or it was not built. Since your log output says that one backend (an audio capture one) was found, I'd rule out an installation problem.

您需要使用适当的依赖项来重建QtMultimedia.例如,在构建QtMultimedia时找到gstreamer时,将构建一个GStreamer后端插件. Qt文档具有可用后端列表.

You need to rebuild your QtMultimedia with the proper dependencies in place. For example, when gstreamer is found when building QtMultimedia, a GStreamer backend plugin will be built. The Qt documentation has a list of available backends.

构建QtMultimedia时,它实际上会告诉您所找到的库,这表明将构建哪些后端.这是在用于台式机Linux的QtMultimedia上运行qmake时的示例输出-这为我构建了一个gstreamer后端:

When you build QtMultimedia, it will actually tell you what libraries it found, which is an indication of which backends will be built. Here is an example output when running qmake on QtMultimedia for desktop Linux - which built a gstreamer backend for me:

Running qmake /home/thomas/src/qt/qtmultimedia-stable ...
Info: creating cache file /home/thomas/build/qt/qtmultimedia-stable/.qmake.cache
Checking for openal... no
Checking for alsa... yes
Checking for pulseaudio... no
Checking for gstreamer... yes
Checking for gstreamer_photography... no
Checking for gstreamer_encodingprofiles... yes
Checking for gstreamer_appsrc... yes
Checking for resourcepolicy... no

这篇关于QtQuick:无法在嵌入式Linux上播放任何视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆