通知公告:   网站改版,请多支持

相关新闻 >>更多
产品方案 >>更多
  • 企业邮箱
  • 虚拟主机
  • 域名注册
您当前的位置是 > 软件开发

 

原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://deidara.blog.51cto.com/400447/235562
所需要的 播放器,我用的开源的 JW FLV Media Player 我把我的上传到了blog 大家可以下载。。
做了一点点改动!!
shell $> wget 'http://downloads.sourceforge.net/project/yamdi/yamdi/1.4/yamdi-1.4.tar.gz?use_mirror=nchc'
shell $> wget 'http://sysoev.ru/nginx/nginx-0.7.64.tar.gz'
shell $> tar zxvf nginx-0.7.64.tar.gz
shell $> cd nginx-0.7.64
shell $> groupadd www
shell $> useradd -g www www
shell $> ./configure --prefix=/usr/local/nginx --user=www --group=www --with-http_flv_module --with-http_gzip_static_module --with-http_stub_status_module --with-cc=gcc --with-cc-opt=" -O3"
shell $> make
shell $> make installl
shell $> tar zxvf yamdi-1.4.tar.gz
shell $> cd yamdi-1.4
shell $> gcc yamdi.c -o yamdi -O3 -Wall
shell $> mv yamdi /usr/bin/
注意我们编译的 yamdi 它起着重要的作用,因为一个FLV视频要能够拖拽播放,这个FLV在其 metadata中有关键桢的信息,但大部分FLV 是没有的。所以,我们要甬道开源的yamdi来为视频添加关键帧信息
命令为 
shell $> yamdi -i input.flv -o out.flv
shell $> cd /usr/local/nginx/conf
shell $> cat nginx.conf
user  www;
worker_processes  1;
error_log  logs/error.log;
pid        logs/nginx.pid;
events {
    worker_connections  1024;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;
    server {
        listen       80;
        server_name  localhost;
        root    /var/www;
        index   index.html;
        charset utf-8;
版权所有2011 @ 河北卓越科技信息有限公司 ALL RIGHT RESERVED 冀ICP备11006606号
地址:河北省石家庄市和平西路456号 联系电话:0311-89103021  电子邮箱:87812389@163.com

冀公网安备 13010502001432号