标签: qtgstreamer

如何在Visual Studio 2010中使用GStreamer?

我是否必须自己编译GStreamer?我可以使用Visual Studio 2010吗?

我正在努力找到一个很好的分步指南,说明如何做到这一点.有一个好的吗?

我的目标是在VS2010上使用QtGstreamer构建应用程序.

c++ visual-studio-2010 gstreamer qtgstreamer

7
推荐指数
1
解决办法
5941
查看次数

Gstreamer 缺少插件

我试图在命令提示符下运行某些管道来播放视频,并且经常收到这些错误/消息/警告:

WARNING: erroneous pipeline: no element "qtdemux"
WARNING: erroneous pipeline: no element "playbin2"
WARNING: erroneous pipeline: no element "decodebin2"
ERROR: pipeline could not be constructed: no element "playbin".
Run Code Online (Sandbox Code Playgroud)

以下是管道:

gst-launch filesrc location=path to the mp4 file ! playbin2 ! queue ! ffmpegcolorspace ! autovideosink 
Run Code Online (Sandbox Code Playgroud)

或者

gst-launch -v filesrc location=path to the mp4 file ! qtdemux name=demuxer ! { queue ! decodebin ! sdlvideosink } { demuxer. ! queue ! decodebin ! alsasink }
Run Code Online (Sandbox Code Playgroud)

或者

gst-launch -v playbin uri=path to the …
Run Code Online (Sandbox Code Playgroud)

gstreamer python-gstreamer qtgstreamer

5
推荐指数
1
解决办法
2万
查看次数

gstreamermm和Qt编译错误

我是Qt的新手,我正在尝试用Qt运行基本的gstreamermm示例.当我在qt的main.cpp中包含gstreamermm.h时,出现编译错误.我无法理解这个错误说的是什么.我在这个例子中使用Qt创建者.

#include <QApplication>
#include <gstreamermm.h>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    w.show();

    return a.exec();
}
Run Code Online (Sandbox Code Playgroud)

我得到以下编译错误

g++ -c -pipe -g -pthread -Wall -W -D_REENTRANT -fPIE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../Qt5.1.0/5.1.0/gcc_64/mkspecs/linux-g++ -I../PlayerBasic -I/usr/include/giomm-2.4 -I/usr/lib/x86_64-linux-gnu/giomm-2.4/include -I/usr/include/gstreamer-0.10 -I/usr/include/glibmm-2.4 -I/usr/lib/x86_64-linux-gnu/glibmm-2.4/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -I/usr/include/libxml2 -I/usr/include/gstreamermm-0.10 -I/usr/lib/gstreamermm-0.10/include -I/usr/include/libxml++-2.6 -I/usr/lib/libxml++-2.6/include -I../../../../Qt5.1.0/5.1.0/gcc_64/include -I../../../../Qt5.1.0/5.1.0/gcc_64/include/QtWidgets -I../../../../Qt5.1.0/5.1.0/gcc_64/include/QtGui -I../../../../Qt5.1.0/5.1.0/gcc_64/include/QtCore -I. -I. -I. -o main.o ../PlayerBasic/main.cpp
In file included from /usr/include/glibmm-2.4/glibmm.h:92:0,
                 from /usr/include/gstreamermm-0.10/gstreamermm/bin.h:7,
                 from /usr/include/gstreamermm-0.10/gstreamermm.h:65,
                 from ../PlayerBasic/main.cpp:3:
/usr/include/glibmm-2.4/glibmm/balancedtree.h:225:40: error: macro "Q_FOREACH" requires 2 arguments, but …
Run Code Online (Sandbox Code Playgroud)

c++ qt gstreamer qtgstreamer

2
推荐指数
1
解决办法
1210
查看次数