icecast - 如何使用 Liquidsoap 将单个视频流式传输到 Icecast 服务器
问题描述
我正在尝试按照此处页面顶部的简单示例,使用liquidsoap 将单个视频文件流式传输到icecast 服务器。我正在使用本地.ogg
文件。脚本的完整内容是:
source = single("file_example_OGG_640_2_7mg.ogg")
output.icecast(
%ogg(%theora(quality=25,width=320,height=240),%vorbis),
host="localhost",
port=8000,
password="hackme",
mount="/videostream",
source)
我在端口 8000 上本地运行 icecast 服务器。由于某种原因,脚本根本没有连接到服务器。相反,它只是不断打印出来
2021/04/07 02:12:50 [/videostream:3] Connecting mount /videostream for source@localhost...
2021/04/07 02:12:50 [/videostream:3] Connection setup was successful.
2021/04/07 02:12:55 [/videostream:2] Error while sending data: could not write data to host: Broken pipe in write()!
2021/04/07 02:12:55 [/videostream:3] Closing connection...
到控制台。
icecast 服务器日志显示:
[2021-04-07 02:13:26] INFO connection/_handle_source_request Source logging in at mountpoint "/vide
ostream" from 127.0.0.1
[2021-04-07 02:13:26] INFO format-skeleton/initial_skeleton_page seen initial skeleton header
[2021-04-07 02:13:26] INFO format-vorbis/initial_vorbis_page seen initial vorbis header
[2021-04-07 02:13:26] EROR format-ogg/process_initial_page Seen BOS page with unknown type
[2021-04-07 02:13:26] EROR format-ogg/ogg_get_buffer Problem processing stream
知道如何让它工作吗?我可以使它适用于纯音频文件,但不适用于视频。
解决方案
推荐阅读
- r - 在子集之后保持一组一致的行
- flask - Flask_restx @api.route return 语句导致 TypeError
- ubuntu-server - Raspberry pi 4 上的 Ubuntu Focal 无头设置 - 首次重启前的云初始化 wifi 初始化
- docker - Jenkins Docker 容器中的 Docker 挂载卷
- java - 多态性 - 如何检查超类是否是子类?
- azure-active-directory - 监视 Azure AD 中角色的更改
- java - 如何使用 Bundle() 将值从 1 个片段传递到另一个片段?
- minio - minio 升级问题 xml 无效
- cassandra - 将单个 UDT 对象转换为 Cassandra 表中的 UDT 列表
- google-analytics - 谷歌分析 API 中的细分是什么?