# Qt5 Gstreamer Example
## General Instructions
1. Install Qt Gstreamer from the source:
- http://gstreamer.freedesktop.org/modules/qt-gstreamer.html
- Add `-DQT_VERSION=5` compilation flag, as here: http://cgit.freedesktop.org/gstreamer/qt-gstreamer/tree/README#n88
2. Follow the doc here: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/qt-gstreamer/html/build_system_integration.html to link with libraries like here: http://cgit.freedesktop.org/gstreamer/qt-gstreamer/tree/examples/appsink-src/CMakeLists.txt#n21
3. If needed, copy locally folder with `cmake` modules: http://cgit.freedesktop.org/gstreamer/qt-gstreamer/tree/cmake/modules and add them to `CMakeLists.txt` as exmplained here: https://github.com/rpavlik/cmake-modules with `list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")`
4. Profit: `./soundlink mySong.mp3`
## Qt5 Build Instructions
```
drasko@Lenin:~/qt5/qt5GstreamerExample$ mkdir build
drasko@Lenin:~/qt5/qt5GstreamerExample$ cd build/
drasko@Lenin:~/qt5/qt5GstreamerExample/build$ cmake ..
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost hasn't been found yet. Looking...
-- Boost version: 1.55.0
-- GCC 4.5 or later detected. Enabling C++0x support in QTGSTREAMER_FLAGS.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/drasko/qt5/qt5GstreamerExample/build
drasko@Lenin:~/qt5/qt5GstreamerExample/build$ make -j 8
Scanning dependencies of target soundlink
[100%] Building CXX object CMakeFiles/soundlink.dir/main.cpp.o
Linking CXX executable soundlink
[100%] Built target soundlink
drasko@Lenin:~/qt5/qt5GstreamerExample/build$ ./soundlink ~/audio/BobMarley-Jamming.mp3
```
hsjdbdb
- 粉丝: 25
- 资源: 4586
最新资源
- Fluent激光电弧复合焊模拟 UDF包括高斯旋转体热源、双椭球热源(未使用)、VOF梯度计算、反冲压力、磁场力、表面张力,以及熔滴过渡所需的熔滴速度场、熔滴温度场和熔滴VOF
- 智能桌面宠物完整资料.zip
- 基于springboot的实习管理系统源码(java毕业设计完整源码+LW).zip
- Python期末大作业-奶牛疾病预测项目源码+报告(高分项目).zip
- 混合动力汽车simulink模型 P2插电式混合动力系统simulink模型 基于逻辑门限值控制策略 (模型可完美运行 ) ①(工况可自行添加)已有WLTC、UDDS、EUDC、NEDC工况; ②仿真
- 单相PWM整流器两种控制策略实现(交流220V-直流350V整流)仿真,分别采用直接电流控制(PR控制器)与dq控制(PI控制器)实现,两个仿真动稳态性能良好,附带仿真介绍文档,详细讲述仿真搭建过程
- EhLib VCL 10.2 Build 10.2.042 source
- matlab:基于遗传算法的多无人机协同任务分配 - 基于遗传算法的多无人机协同任务分配 - 种群中的每一个个体代表一次完整的任务分配方案,模型目标是找到代价函数的最小值,当作任务分配的最终方案 -
- top250电影资源翻页抓取python代码
- 机械设计走心机自动化step项目全套技术资料.zip
- SpringBoot的体育场馆预约小程序v12.0.1
- 机械设计左右循环倍数链线sw21可编辑项目全套技术资料.zip
- 2024雇佣关系趋势报告:新质职场重构增长路径-智联招聘-2024-24页.pdf
- 2024电商消费趋势年度报告-Flywheel-2024-90页.pdf
- 2024虎啸年度洞察报告—汽车行业-虎啸-2024-86页.pdf
- 2024年12月中国数据库行业分析报告-数据智能,融合创新-墨天轮-2024.12.13-48页.pdf
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
评论1