Skip to content
/ tblive Public
forked from alibaba/tblive

基于tblive开发于PC上录屏录音直播采集、推流的整体解决方案.

License

GPL-3.0, GPL-2.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-2.0
COPYING
Notifications You must be signed in to change notification settings

lumang/tblive

 
 

Repository files navigation

项目说明

本项目基于tblive 将添加单独录制的功能,可以

  • [√] 一键开始,
  • [√] 结束,
  • 暂停
  • [√] 配置录制文件格式,
  • [√] 保存路径

千牛主播(tblive)

tblive开源项目对应的产品是千牛主播,是一个独立的PC端主播工具,基于开源软件OBS Studio来修改定制.

Windows下开发环境搭建

1、 安装VS2013 + Update4

安装 Qt5.6_vs2013

http://download.qt.io/official_releases/qt/5.6/5.6.0/qt-opensource-windows-x86-msvc2013-5.6.0.exe

并设置环境变量 QTDIR: C:\Qt\Qt5.6.0\5.6\msvc2013

安装qt-vs-addin

http://mirrors.ustc.edu.cn/qtproject/archive/vsaddin/qt-vs-addin-1.2.5.exe

VS2013中,QT5 - [Qt-option],设置qt版本

2、 安装cmake

https://cmake.org/files/v3.5/cmake-3.5.0-rc3-win32-x86.msi

并将cmake的bin路径添加到PATH

3、 使用cmake-gui生成工程编译

设置code source:比如 D:/src/alibaba/tblive

设置build目录:D:/src/alibaba/build

avatar 点击'Configure',然后选中COPY_DEPENDENCIES选项,再点击'Configure',最后点击'Generate'


常见cmake错误

Policy CMP0071

Policy CMP0071 is not set: Let AUTOMOC and AUTOUIC process GENERATED files. Run "cmake --help-policy CMP0071" for policy details. Use the cmake_policy command to set the policy and suppress this warning. 删除HAVE_OBSCONFIG_H avatar

用vs2013打开build目录下的obs-studio.sln,然后生成;生成的可执行程序在rundir目录下。 avatar

运行效果

avatar avatar


常见编译错误

error C2275

错误 1 error C2275: “int64_t”: 将此类型用作表达式非法 D:\src\alibaba\tblive\libobs\util\platform.c 291 1 libobs avatar

修改代码作为录屏软件

1、禁用登录操作,此处可改为自己的登录方式

2、将直播改为录制操作

3、修改配置文件在安装目录下

修改 obs-app.cpp 文件

  static bool portable_mode = true;//false ->true

avatar

obs-studio 模块图

avatar

About

基于tblive开发于PC上录屏录音直播采集、推流的整体解决方案.

Topics

Resources

License

GPL-3.0, GPL-2.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-2.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 58.0%
  • C++ 32.4%
  • Objective-C 5.0%
  • CMake 2.8%
  • Objective-C++ 1.4%
  • CSS 0.3%
  • Other 0.1%