Linux-CentOS XAMPP Apache 支持mp4与flv拖动播放的功能模块
2015-12-14 21:56
1026 查看
需要两个功能模块的支持mod_flvx.so与mod_h264_streaming.so。
【1】下载地址
1.1 mod_flvx
http://people.apache.org/Epquerna/modules/mod_flvx.c
1.2 mod_h264_streaming
http://h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz
1.3 mod_h264_streaming的介绍
http://h264.code-shop.com/trac/wiki
http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Apache-Version2
【2】编译
2.1 mod_flvx
【3】配置httpd.conf
【4】视频处理
4.1 编码问题
需要是 h.264 编码,不是此编码的在某些Flash版本或OS上会出现放不出来视频的问题;可以用 3GP、MP4视频转换精灵(BRVideoConverter) 转码。
4.2 下载完后才能播放的问题。
mp4视频有metadata,通常在文件尾部,而flash读到这个metadata才开始播放,解决办法是用工具处理一下mp4,把它的metadata移至文件头部。
https://gpac.wp.mines-telecom.fr/mp4box/
处理指令:
【1】下载地址
1.1 mod_flvx
http://people.apache.org/Epquerna/modules/mod_flvx.c
1.2 mod_h264_streaming
http://h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz
1.3 mod_h264_streaming的介绍
http://h264.code-shop.com/trac/wiki
http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Apache-Version2
【2】编译
2.1 mod_flvx
# apxs -cia mod_flvx.c2.2 mod_h264_streaming
./configure --with-apxs=`which apxs` make sudo make install
【3】配置httpd.conf
LoadModule h264_streaming_module modules/mod_h264_streaming.so LoadModule flvx_module modules/mod_flvx.so AddHandler h264-streaming.extensions .mp4 AddHandler flv-stream .flv
【4】视频处理
4.1 编码问题
需要是 h.264 编码,不是此编码的在某些Flash版本或OS上会出现放不出来视频的问题;可以用 3GP、MP4视频转换精灵(BRVideoConverter) 转码。
4.2 下载完后才能播放的问题。
mp4视频有metadata,通常在文件尾部,而flash读到这个metadata才开始播放,解决办法是用工具处理一下mp4,把它的metadata移至文件头部。
https://gpac.wp.mines-telecom.fr/mp4box/
处理指令:
mp4box -isma xx.mp4
相关文章推荐
- Apache Isis 1.4.0 发布,领域驱动开发框架
- Linux快速构建apache web服务器
- Awstats处理多apache日志
- 安装perl模块小窍门
- PHP+Apache在Windows 9x下的安装和配置
- Apache服务器配置全攻略
- Apache Web让JSP“动”起来
- Linux Apache+MySQL+PHP
- 建立Apache+PHP+MySQL数据库驱动的动态网站
- apache 环境下 php 的配置注意事项
- 在RedHat下安装apache jserv 1.1.2方法
- windows8.1下Apache+Php+MySQL配置步骤
- windows中PHP5.2.14以及apache2.2.16安装配置方法第1/2页
- 在Windows XP下安装Apache+MySQL+PHP环境
- 解析阿里云ubuntu12.04环境下配置Apache+PHP+PHPmyadmin+MYsql
- apache rewrite防盗链三例
- Apache 配置详解(最好的APACHE配置教程)
- Apache+php+mysql在windows下的安装与配置(图文)第1/2页
- apache rewrite_module模块使用教程
- Apache rewrite重写规则的常见应用