Ubuntu 9.10 ffserver的配置及使用

来源:互联网 发布:sql怎么清除数据 编辑:程序博客网 时间:2024/04/29 09:49
修改配置文件 vi /etc/ffserver.conf

Port 8090
BindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 1000

<Feed feed1.ffm>

File /tmp/feed1.ffm
FileMaxSize 2M
ACL allow 127.0.0.1
</Feed>

<Stream test.flv>
Feed feed1.ffm

Format flv

</Stream>

 

对于已经存在的文件而非实时流数据的情况, 配置文件如下

Port 8090
BindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 1000

<Stream test.flv>
File "/tmp/test.flv"

Format flv

</Stream>

 

打开终端,输入 ffserver -f /etc/ffserver.conf  命令启动ffserver

如果是实时流数据还要启动 ffmpeg -i test.flv -an http://localhost:8090/feed1.ffm

0 0