如果您想能够使用 Visiontech Kfir 卡进行流式传输,您需要安装其 Linux 驱动程序。从 驱动程序下载页面 下载 LinuxTV 网站 的最新驱动程序版本。
解压缩 tarball 文件,并按照INSTALL文件中的说明编译并安装驱动程序。
![]() | 如果您有 VIA 芯片组,您需要在 BIOS 中禁用 USB。 |
% vlc -vvv kfir:/dev/video --sout udp:192.168.0.42 --ttl 12 |
其中
/dev/video是对应于 Kfir 卡的设备,
192.168.0.42 是
您要单播到的机器的 IP 地址;
或您要单播到的机器的 DNS 名称;
或多播 IP 地址。
12 是您的 IP 数据包的 TTL(生存时间)值(这意味着流将能够跨越 11 个路由器)。
目前此输入没有命令行界面,因此您将必须使用配置文件。
这是一个典型的配置文件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 |