我正在尝试按照此处页面顶部的简单示例,使用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
知道如何让它工作吗?我可以使它适用于纯音频文件,但不适用于视频。