找回密码
 立即注册
查看: 611|回复: 0

如何在windows上开发基于gstreamer的QT视频录制

[复制链接]

43

主题

30

回帖

251

积分

管理员

积分
251
发表于 2024-9-17 09:17:31 | 显示全部楼层 |阅读模式
1.下载安装
(1)运行时库
https://gstreamer.freedesktop.org/data/pkg/windows/1.24.7/msvc/gstreamer-1.0-msvc-x86_64-1.24.7.msi
(2)开发库
https://gstreamer.freedesktop.org/data/pkg/windows/1.24.7/msvc/gstreamer-1.0-devel-msvc-x86_64-1.24.7.msi
2.在.pro文件中设置:

  1. QT       += core gui
  2. QT       += sql
  3. QT       += multimedia
  4. QT       += multimediawidgets
  5. QT       += core
  6. QT       += multimedia multimediawidgets
  7. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets


  8. #os_linux below
  9. INCLUDEPATH += /usr/include/gstreamer-1.0
  10. INCLUDEPATH += /usr/include/glib-2.0
  11. INCLUDEPATH += /usr/lib/x86_64-linux-gnu/glib-2.0/include

  12. LIBS += -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lgstvideo-1.0 -lgstapp-1.0
  13. #PKGCONFIG += gstreamer-video-1.0
  14. #os_win below
  15. INCLUDEPATH += "D:\\Program Files\\GStreamer\1.0\\msvc_x86_64\\include\\gstreamer-1.0"
  16. INCLUDEPATH += "D:\\Program Files\\GStreamer\\1.0\\msvc_x86_64\\include\\glib-2.0"
  17. INCLUDEPATH += "D:\\Program Files\\GStreamer\\1.0\\msvc_x86_64\\lib\\glib-2.0\\include"
  18. INCLUDEPATH += "D:\\Program Files\\GStreamer\\1.0\\msvc_x86_64\\lib\\glib-2.0\\include"


  19. LIBS += -L"D:\\Program Files\\gstreamer\\1.0\\msvc_x86_64\\lib" -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0
复制代码



您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|上海录客智能科技 ( 沪ICP备17017717号-8 )|网站地图

GMT+8, 2024-12-22 15:00 , Processed in 1.445075 second(s), 25 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表