CasparCG Server 使用教程
1. 项目的目录结构及介绍
CasparCG Server 的目录结构如下:
CasparCG/
├── bin/
│ ├── linux/
│ ├── mac/
│ └── win/
├── docs/
├── lib/
├── media/
├── my_channel/
├── resources/
├── server/
├── templates/
├── tools/
└── LICENSE
目录介绍
bin/
:包含不同操作系统的可执行文件。linux/
:Linux 平台的可执行文件。mac/
:Mac 平台的可执行文件。win/
:Windows 平台的可执行文件。
docs/
:项目文档。lib/
:依赖库文件。media/
:媒体文件存储目录。my_channel/
:自定义频道配置文件。resources/
:资源文件。server/
:服务器核心代码。templates/
:模板文件。tools/
:工具脚本。LICENSE
:项目许可证文件。
2. 项目的启动文件介绍
CasparCG Server 的启动文件位于 bin/
目录下,根据不同的操作系统选择相应的可执行文件。
Windows 平台
在 Windows 平台下,启动文件为 casparcg.exe
,位于 bin/win/
目录下。
Linux 平台
在 Linux 平台下,启动文件为 casparcg
,位于 bin/linux/
目录下。
Mac 平台
在 Mac 平台下,启动文件为 casparcg
,位于 bin/mac/
目录下。
3. 项目的配置文件介绍
CasparCG Server 的配置文件主要位于 my_channel/
目录下,主要的配置文件为 casparcg.config
。
配置文件结构
<configuration>
<paths>
<media-path>media/</media-path>
<log-path>log/</log-path>
</paths>
<channels>
<channel>
<name>Channel 1</name>
<framerate>25</framerate>
<outputs>
<output>
<type>decklink</type>
<device>1</device>
</output>
</outputs>
</channel>
</channels>
</configuration>
配置文件介绍
<paths>
:定义媒体文件和日志文件的路径。<media-path>
:媒体文件存储路径。<log-path>
:日志文件存储路径。
<channels>
:定义频道配置。<channel>
:单个频道的配置。<name>
:频道名称。<framerate>
:帧率。<outputs>
:输出配置。<output>
:单个输出配置。<type>
:输出类型,如decklink
。<device>
:设备编号。
通过以上配置文件,可以自定义 CasparCG Server 的运行参数和输出设置。