0%

Voctomix项目介绍

Voctomix项目介绍

简单介绍文档

项目介绍

开源的实时视频混合器

项目名称 项目地址
Voctomix 源码地址

Voctomix是官方项目主要包含三部分代码:

  • Voctocore:实现视频和音频处理的视频处理器核心过程
  • Voctogui:GUI实现,可以控制核心功能,并实时显示视频效果
  • Voctomix Example Scripts:一些脚本实例,包含使用脚本控制视频混合,视音频切换等。
项目名称 项目地址
Voctomix-Outcasts 源码地址

Voctomix-Outcasts是一个快速运行测试的Demo帮我们实现了解Voctomix运行过程。

安装步骤

Voctomix需要一个比较新的GStreamer(至少1.5版本以上,推荐1.6版本)

安装依赖项:

1
2
3
4
5
# Requirements
apt-get install gstreamer1.0-plugins-bad gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-tools libgstreamer1.0-0 python3 python3-gi gir1.2-gstreamer-1.0 gir1.2-gst-plugins-base-1.0

# Optional for the Example-Scripts
apt-get install python3-pyinotify gstreamer1.0-libav rlwrap fbset

如果你想用GUI还需要安装下面的依赖项:

1
apt-get install gstreamer1.0-plugins-bad gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-alsa gstreamer1.0-tools libgstreamer1.0-0 python3 python3-gi python3-gi-cairo gir1.2-gstreamer-1.0 gir1.2-gst-plugins-base-1.0 gir1.2-gtk-3.0

关于cpu的使用情况,如果想用默认配置1920*1080、25fps,建议使用四核cpu,可以根据配置信息中的分辨率和帧率,选择合适的cpu。建议GUI和core运行在同一台机器上。不然会产生很高的流量。

项目使用介绍

voctocore

块级图

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
17000… VSource** (Stream-Blanker) ---\
18000 ASource** (Stream-Blanker) ----\
\
16000 VSource (Background) \
\ \
--> VideoMix \
/ \ -> StreamBlanker** -> StreamOutputPort** 15000
/ \ /
/ ------> OutputPort 11000
/ / \-> Encoder* -> PreviewPort* 12000
/ /
/----- -> AudioMix
/
10000… AVSource --> MirrorPort 13000…
\-> Encoder* -> PreviewPort* 14000…

9999 Control-Server
9998 GstNetTimeProvider Network-Clock

*) only when [previews] enabled=true is configured
**) only when [stream-blanker] enabled=true is configured

网络端口列表

  • 10000,10001,···-主视频源,取决于配置的视频源数量
  • 16000 混音器
  • 17000,17001,···-Stream-Blanker视频输入,取决于配置的Stream-Blanker-Sources的数量
  • 18000 – Stream-Blanker Audio-Input
  • 9999 -接收控制协议连接