7.2. 使用 Visiontech Kfir 卡进行流式传输

7.2.1. 安装驱动程序

如果您想能够使用 Visiontech Kfir 卡进行流式传输,您需要安装其 Linux 驱动程序。从 驱动程序下载页面 下载 LinuxTV 网站 的最新驱动程序版本。

解压缩 tarball 文件,并按照INSTALL文件中的说明编译并安装驱动程序。

Note

如果您有 VIA 芯片组,您需要在 BIOS 中禁用 USB。

7.2.2. 使用 VLC 进行流式传输

% vlc -vvv kfir:/dev/video --sout udp:192.168.0.42 --ttl 12

其中

7.2.3. 使用 VLS 进行流式传输

目前此输入没有命令行界面,因此您将必须使用配置文件。

这是一个典型的配置文件vls.cfg用于使用 VisionTech Kfir 编码卡运行 VLS

# vls.cfg (VLS configuration file)
# Example of the VideoLAN HOWTO for the Visiontech Kfir encoding card

BEGIN "Inputs"

  kfir       = "video"

END

BEGIN "kfir"

  # Visiontech Kfir device
  Device        = "/dev/video"

  # Stream type (default is "Mpeg2-PS")
  Type          = "Mpeg2-PS"

END

BEGIN "Channels"

  channel1       = "network"

END

BEGIN "channel1"

  # Unicast or multicast IP address
  DstHost = "192.168.0.42"

  # Destination port
  DstPort = "1234"

  # If it's a multicast IP address, uncomment the line below
  #Type    = "multicast"

  # If it's a multicast IP address, set the "Time To Live" below
  #TTL     = "12"

END

BEGIN "LaunchOnStartUp"

  command1 = "start video channel1 kfir"

END

在您调整好上面的配置文件后,运行 VLS

% vls -vv -f vls.cfg