您的位置:首页 > 其它

ffserver的配置及使用

2011-12-07 15:24 169 查看
修改配置文件 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

最后在浏览器地址栏输入http://localhost:8090/test.flv 就可以观看了

come from:http://blog.csdn.net/chinacodec/article/details/5212072

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: