使用Liquidsoap的音频 - 视频流

时间:2016-01-15 20:34:21

标签: video stream liquidsoap

使用Liquidsoap我遇到了使用IceCast2服务器的音频视频流问题。 使用JPG格式的使用图片的示例代码 - 它的工作原理!

<code>s = single("/mnt/dysk1/all/test.gif")
output.icecast(
  %ogg(%theora),
  host="localhost",
  port=8000,
  password="*****",
  mount="/test1.ogg",
  name="Test1",
  description="Testing...",
  url=" ",
  s)</code>

示例代码示例使用AVI格式的音频视频和MP4格式的音频视频以及WEBM格式的音频视频 - 不起作用!

<code>s = single("/mnt/dysk1/all/test.avi")
output.icecast(
  %ogg(%theora, %vorbis),
  host="localhost",
  port=8000,
  password="*****",
  mount="/test1.ogg",
  name="Test1",
  description="Testing...",
  url=" ",
  s)</code>

您收到以下错误消息:

Invalid value at line 1, char 12-36: 
Could not get a valid media file of kind {audio=2;video=1;midi=0} from "/mnt/dysk1/all/test.avi".

示例代码示例使用OGV格式的音频视频 - 不起作用!

<code>s = single("/mnt/dysk1/all/test.ogv")
output.icecast(
  %ogg(%theora, %vorbis),
  host="localhost",
  port=8000,
  password="*****",
  mount="/test1.ogg",
  name="Test1",
  description="Testing...",
  url=" ",
  s)</code>

您收到以下错误消息:

notification: Speex header too small
notification: Speex header too small
notification: Speex header too small
notification: Speex header too small

我的发行版是Linux Raspbian。 从存储库中安装Liquidsoap

apt-get install liquidsoap liquidsoap-plugin-all

我为自己的英语水平很低而道歉。 请帮帮我。

0 个答案:

没有答案