参考(
http://blog.csdn.net/dj0379/archive/2010/07/21/5753511.aspx
)
QT怎么安装不用说了吧,下面介绍一下安装gstreamer环境的问题。
1, 从
http://code.google.com/p/ossbuild/downloads/list
下载v10.0.7(beta2)版本的gstreamer winbuilds安装包和SDK开发包。之前版本的我没有找到rtph264depay元件。下载后安装,安装路径中不要含有空格,因为QT的包含路径不怎么支持空格,当然有解决办法,但是咱们就不要麻烦了吧。
2, 安装完毕后,重启电脑,使环境变量生效。
3, 打开命令行,输入gst-launch 提示未找到ibgstpython-v2.6.dll,把 python26.dll复制到 <gst程序目录>\v0.10.7\bin 下
4, 再调试gst-launch吧,在命令行下输入:gst-launch filesrc location= C:\\test.avi ! decodebin ! ffmpegcolorspace ! autovideosink。提示libgstffmpeg.dll': 找不到指定的模块。
安装gst-ffmpeg-0.10.2.exe ,
将libgstffmpeg.dll复制到<gst程序目录>\v0.10.7\lib\gstreamer-0.10下,并将avcodec-51.dll,avformat-51.dll,avutil-49.dll复制到 c:\window\system32 下(即系统目录%system32%)。
5, 再在命令行下输入:gst-launch filesrc location= C:\\test.avi ! decodebin ! ffmpegcolorspace ! autovideosink,不出意外的话,会成功的。
正如参考网址中所说的,我很兴奋。但是兴奋是暂时的,接下来又遇到了许许多多的错误。古语云:没有过不去的桥,下面是解决办法。
出现的错误及解决办法:
1, 使用ffdec_h264f元件,在v10.0.5的版本下成功,在v10.0.7的版本下,提示加载libgstffmpeg-gpl.dll错误。(使用gst-launch时未发现此错误)
解决办法:将v10.0.5版本下的libgstffmpeg-lgpl.dll,改改名字,复制到v10.0.7的对应目录下,复制原来的。在我的XP环境下成功。注意一下,我安装的是lgpl,不知道为啥,反正复制后能用,可是lgpl文件大了许多。
2, 在windows环境下的gstreamer没有ximagesink和xvimagesink元件,但是有d3dvideosink和lgimagesink元件,为什么要提到这几个元件呢,autovideosink似乎也不错,但是autovideosink没有xoverlay功能,(虽然在windows环境下使用autovideosink实际上调用的是d3dvideosink.)上面提到的四个元件都有此功能,我用lgimagesink时提示libgstpython-v2.6.dll加载错误,(在这前的v10.0.5/v10.0.6版本中没有此错误,使用之前版本的DLL也未解决此错误)。所以,我使用了d3dvideosink元件,来完成。还算正常。成功的xoverlay到QT的窗口中去。
3, 对,还有设置QT环境变量的问题,可以参考如下的方式设置:
在pro配置文件中加入:
INCLUDEPATH += D:\GStreamer\v0.10.7\sdk\include\gstreamer-0.10
INCLUDEPATH += D:\GStreamer\v0.10.7\sdk\include\GLIB-2.0
INCLUDEPATH += D:\GStreamer\v0.10.7\sdk\include\LIBXML2
INCLUDEPATH += D:\GStreamer\v0.10.7\sdk\include
LIBS += D:\GStreamer\v0.10.7\sdk\lib\gstreamer-0.10.lib
LIBS += D:\GStreamer\v0.10.7\sdk\lib\glib-2.0.lib
LIBS += D:\GStreamer\v0.10.7\sdk\lib\gobject-2.0.lib
LIBS += D:\GStreamer\v0.10.7\sdk\lib\gstinterfaces-0.10.lib
参考(http://blog.csdn.net/dj0379/archive/2010/07/21/5753511.aspx) QT怎么安装不用说了吧,下面介绍一下安装gstreamer环境的问题。 1, 从http://code.google.com/p/ossbuild/downloads/list下载v10.0.7(beta2)版本的gstreamer
QuarkPlayer,声子媒体播放器
QuarkPlayer 是一个基于
Qt
的
多媒体
(音频和视频)播放器。 由于 Phonon 库,QuarkPlayer 可以使用不同的后端(DirectShow、MPlayer、Xine、
GStreamer
、VLC...)。 它还依赖于高级插件系统,可在
Windows
、
Linux
和 Mac OS X 下使用。
2011 年 3 月:项目搁置,从事其他工作
仍然非常有问题,主要在
Windows
下测试。 下一步是添加单元测试和代码覆盖率,以获得坚如磐石的代码库。
又一个媒体播放器
默认 Phonon 后端是因此 QuarkPlayer 获得所有 MPlayer 功能
可以使用任何 Phonon 后端:DirectShow、QuickTime、Xine、
GStreamer
...
在大型音乐库 (320 GB) 上
Building on:
linux
-g++ (x86_64, CPU features: mmx sse sse2)
Building for:
linux
-aarch64-gnu-g++ (arm64, CPU features: neon)
Target compiler: gcc 6.3.1
Configuration: cross_compile use_gold_linker compile_examples enable_new_dtags largefile neon precompile_header shared rpath release c++11 c++14 concurrent dbus reduce_exports stl
Build options:
Mode ................................... release
Optimize release build for size ........ no
Building shared libraries .............. yes
Using C standard ....................... C11
Using C++ standard ..................... C++14
Using ccache ........................... no
Using gold linker ...................... yes
Using new DTAGS ........................ yes
Using precompiled headers .............. yes
Using LTCG ............................. no
Target compiler supports:
NEON ................................. yes
Build parts ............................ libs
Qt
modules and options:
Qt
Concurrent .......................... yes
Qt
D-Bus ............................... yes
Qt
D-Bus directly linked to libdbus .... no
Qt
Gui ................................. yes
Qt
Network ............................. yes
Qt
Sql ................................. yes
Qt
Testlib ............................. yes
Qt
Widgets ............................. yes
Qt
Xml ................................. yes
Support enabled for:
Using pkg-config ....................... yes
udev ................................... no
Using system zlib ...................... yes
Qt
Core:
DoubleConversion ....................... yes
Using system DoubleConversion ........ no
GLib ................................... no
iconv .................................. yes
ICU .................................... no
Tracing backend ........................
Logging backends:
journald ............................. no
syslog ............................... no
slog2 ................................ no
Using system PCRE2 ..................... no
Qt
Network:
getifaddrs() ........................... yes
IPv6 ifname ............................ yes
libproxy ............................... no
Linux
AF_NETLINK ....................... yes
OpenSSL ................................ yes
Qt
directly linked to OpenSSL ........ no
OpenSSL 1.1 ............................ no
DTLS ................................... yes
SCTP ................................... no
Use system proxies ..................... yes
Qt
Gui:
Accessibility .......................... yes
FreeType ............................... yes
Using system FreeType ................ no
HarfBuzz ............................... yes
Using system HarfBuzz ................ no
Fontconfig ............................. no
Image formats:
GIF .................................. yes
ICO .................................. yes
JPEG ................................. yes
Using system libjpeg ............... yes
PNG .................................. yes
Using system libpng ................ no
EGL .................................... no
OpenVG ................................. no
OpenGL:
Desktop OpenGL ....................... no
OpenGL ES 2.0 ........................ no
OpenGL ES 3.0 ........................ no
OpenGL ES 3.1 ........................ no
OpenGL ES 3.2 ........................ no
Vulkan ................................. no
Session Management ..................... yes
Features used by QPA backends:
evdev .................................. yes
libinput ............................... no
INTEGRITY HID .......................... no
mtdev .................................. no
tslib .................................. no
xkbcommon .............................. no
X11 specific:
XLib ................................. no
EGL on X11 ........................... no
QPA backends:
DirectFB ............................... no
EGLFS .................................. no
Linux
FB ................................ yes
VNC .................................... yes
Mir client ............................. no
Qt
Sql:
SQL item models ........................ yes
Qt
Widgets:
GTK+ ................................... no
Styles ................................. Fusion
Windows
Qt
PrintSupport:
CUPS ................................... no
Qt
Sql Drivers:
DB2 (IBM) .............................. no
InterBase .............................. no
MySql .................................. no
OCI (Oracle) ........................... no
ODBC ................................... no
PostgreSQL ............................. no
SQLite2 ................................ no
SQLite ................................. yes
Using system provided SQLite ......... no
TDS (Sybase) ........................... no
Qt
Testlib:
Tester for item models ................. yes
Qt
SerialBus:
Socket CAN ............................. yes
Socket CAN FD .......................... yes
Qt
QML:
QML network support .................... yes
QML debugging and profiling support .... yes
QML sequence object .................... yes
QML list model ......................... yes
QML XML http request ................... yes
QML Locale ............................. yes
QML delegate model ..................... yes
Qt
Quick:
Direct3D 12 ............................ no
AnimatedImage item ..................... yes
Canvas item ............................ yes
Support for
Qt
Quick Designer .......... yes
Flipable item .......................... yes
GridView item .......................... yes
ListView item .......................... yes
TableView item ......................... yes
Path support ........................... yes
PathView item .......................... yes
Positioner items ....................... yes
Repeater item .......................... yes
ShaderEffect item ...................... yes
Sprite item ............................ yes
Qt
Scxml:
ECMAScript data model for
Qt
Scxml ...... yes
Qt
Gamepad:
SDL2 ................................... no
Qt
3D:
Assimp ................................. yes
System Assimp .......................... no
Output
Qt
3D Job traces ................. no
Output
Qt
3D GL traces .................. no
Use SSE2 instructions .................. no
Use AVX2 instructions .................. no
Aspects:
Render aspect ........................ yes
Input aspect ......................... yes
Logic aspect ......................... yes
Animation aspect ..................... yes
Extras aspect ........................ yes
Qt
3D Renderers:
OpenGL Renderer ........................ yes
Qt
3D GeometryLoaders:
Autodesk FBX ........................... no
Qt
Wayland Client ........................ no
Qt
Wayland Compositor .................... no
Qt
Bluetooth:
BlueZ .................................. no
BlueZ Low Energy ....................... no
Linux
Crypto API ....................... no
WinRT Bluetooth API (desktop & UWP) .... no
Qt
Sensors:
sensorfw ............................... no
Qt
Quick Controls 2:
Styles ................................. Default Fusion Imagine Material Universal
Qt
Quick Templates 2:
Hover support .......................... yes
Multi-touch support .................... yes
Qt
Positioning:
Gypsy GPS Daemon ....................... no
WinRT Geolocation API .................. no
Qt
Location:
Qt
.labs.location experimental QML plugin . yes
Geoservice plugins:
OpenStreetMap ........................ yes
HERE ................................. yes
Esri ................................. yes
Mapbox ............................... yes
MapboxGL ............................. no
Itemsoverlay ......................... yes
Qt
XmlPatterns:
XML schema support ..................... yes
Qt
Multimedia:
ALSA ................................... no
GStreamer
1.0 .......................... no
GStreamer
0.10 ......................... no
Video for
Linux
........................ yes
OpenAL ................................. no
PulseAudio ............................. no
Resource Policy (libresource
qt
5) ....... no
Windows
Audio Services ................. no
DirectShow ............................. no
Windows
Media Foundation ............... no
Qt
Tools:
QDoc ................................... no
Qt
WebEngine:
Embedded build ......................... yes
Pepper Plugins ......................... no
Printing and PDF ....................... no
Proprietary Codecs ..................... no
Spellchecker ........................... yes
Native Spellchecker .................... no
WebRTC ................................. no
Use System Ninja ....................... no
Geolocation ............................ yes
WebChannel support ..................... yes
Use v8 snapshot ........................ yes
Kerberos Authentication ................ no
Building v8 snapshot supported ......... yes
Use ALSA ............................... no
Use PulseAudio ......................... no
Optional system libraries used:
re2 .................................. no
icu .................................. no
libwebp, libwebpmux and libwebpdemux . no
opus ................................. no
ffmpeg ............................... no
libvpx ............................... no
snappy ............................... no
glib ................................. no
zlib ................................. yes
minizip .............................. no
libevent ............................. no
jsoncpp .............................. no
protobuf ............................. no
libxml2 and libxslt .................. no
lcms2 ................................ no
png .................................. no
JPEG ................................. no
harfbuzz ............................. no
freetype ............................. no
x11 .................................. no
Required system libraries:
fontconfig ........................... no
dbus ................................. no
nss .................................. no
khr .................................. no
glibc ................................ yes
Required system libraries for qpa-xcb:
libdrm ............................... no
xcomposite ........................... no
xcursor .............................. no
xi ................................... no
xrandr ............................... no
xtst ................................. no
Note: Also available for
Linux
:
linux
-clang
linux
-icc
在很多发行版里面都已经内置了
GStreamer
,可以直接使用,不过有时候为了尝试新特性可以考虑一下新版本,
GStreamer
再
Linux
发行版中安装比较方便再控制终端执行简单的安装命令即可。
程序中使用
GStreamer
库
再gcc中增加参数
如编demo程序中的...
QGroundControl 是一个地面站监控软件, 支持 GPU 渲染与加速, 为无人机提供全飞行控制和任务规划, 提供开源代码, 支持
Linux
,
Windows
, Android, Mac 等多种平台.
QGroundControl provides full flight control and mission planning for any MAVLink enabled dr...
由于实习时上司安排的任务,其中有一项功能就是需要设计一个播放器,我选择了
linux
下的
QT
,在一切准备就绪后,编译,通过UI界面打开mp4文件的时候,播放窗出现黑屏,并出现
于是我就按照网上的教程,一步一步的源码编译安装
gstreamer
及其一大堆依赖库,搞了一天,各种错误,高的我焦头烂额。
期间我也试了下到底Ubuntu16.04本身带的播放器能否播放视频,显然,它也不能,还提示需要安装一大堆...
一,安装环境准备
材料准备:需要建立
gstreamer
的插件环境,用过
gstreamer
的插件都知道这个。可以参考链接:https://blog.csdn.net/u011625775/article/details/81836880
源码下载:http://
gstreamer
.freedesktop.org/src/ 选择
qt
-
gstreamer
编译源码依赖环境的准备:
1,gs...
思勤728:
自动白平衡(AWB)算法---2,色温计算
思勤728: