`
wangxc
  • 浏览: 210536 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

H264 Streaming Module for Apache (version 2)

阅读更多
1.首先需要安装apx2

sudo apt-get install apache2-threaded-dev


2.下载h264stream的tar包

cd ~
wget http://h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz
tar -zxvf apache_mod_h264_streaming-2.2.7.tar.gz


3.创建

cd ~/mod_h264_streaming-2.2.7
./configure --with-apxs=`which apxs2`



make

sudo make install


4. 编辑/etc/apache2/httpd.conf

sudo vim /etc/apache2/httpd.conf


加入内容:
LoadModule h264_streaming_module /usr/lib/apache2/modules/mod_h264_streaming.so
AddHandler h264-streaming.extensions .mp4


5.重启apache

sudo /etc/init.d/apache2 restart


6.下载一个.mp4视频放到apache的web根目录下,我的是在apache的web根目录下(var/www)

wget -O test.mp4 "http://h264.code-shop.com:8080/trailer2.mp4"

这是从h264的官网下载的一个视频,也可以自己上传一个视频到你的apache的web根目录下。

7.测试,输入http://yourip/test.mp4
如果你使用的IE浏览器会出现下载的提示框,最好你是选择使用chrome浏览器。
如果出现:


这种情况的话,说明你的.mp4视频文件下载的有问题,需要重新换一个视频再重试。

安装正确应该与 http://192.168.0.56/input.mp4相同
  • 大小: 22.3 KB
  • 大小: 47.5 KB
1
0
分享到:
评论

相关推荐

    Apache2.4的h264和flvx模块(mod_flvx.so和mod_h264_streaming.so)

    apache+Windows配置flv,mp4视频支持随意拖动 配置成功,亲测可用,注意对应...LoadModule h264_streaming_module modules/mod_h264_streaming.so AddHandler h264-streaming.extensions .mp4 第二步,重启apache服务

    apache视频流插件mod_flvx.so mod_h264_streaming.so两个

    第一步,下载mod_flvx.so和mod_h264_streaming.so并放到apache目录下的modules文件夹下 mod_flvx.so mod_h264_streaming.so 把这两个文件放到,apache的modules目录中,然后查找httpd.conf这个文件,打开编辑,找到...

    apache flv mp4伪流模块mod_flvx.so mod_h264_streaming.so(附教程)

    第一步,下载mod_flvx.so和mod_h264_streaming.so并放到apache目录下的modules文件夹下 mod_flvx.so mod_h264_streaming.so 把这两个文件放到,apache的modules目录中,然后查找httpd.conf这个文件,打开编辑,找到...

    ngwsx-0.8.39 with h264 streaming module

    ngwsx-0.8.39 with h264 streaming module. features: *) native port of nginx on windows. *) single process mode. *) windows service. *) iocp event method. *) file aio. *) zlib-1.2.3. (statically link...

    mod_h264_streaming.rar

    提供以下三个windows版本 apache mod_h264_streaming.so下载 1.Apache/2.2.34 (Win32) 2.Apache/2.4.48 (Win64) 3.Apache/2.4.48 (Win32) 注意:测试过程中,发现httpd.conf配置引用mod_h264_streaming.so后,含有...

    mod_h264_streaming

    编译好的mod_h264_streaming,在redhat6.5,apache2上测试通过,理论上centos6,redhat6全系列都支持 vi httpd.conf LoadModule h264_streaming_module modules/mod_h264_streaming.so AddHandler h264-streaming....

    apache支持MP4,flv模块mod_flvx.so和mod_h264_streaming.so

    apache+Windows配置flv,mp4视频支持随意拖动 解压得到下面二个文件: ...LoadModule h264_streaming_module modules/mod_h264_streaming.so AddHandler h264-streaming.extensions .mp4 重启apache服务

    nginx流媒体安装包(nginx_mod_h264_streaming,yamdi)

    ./configure --add-module=path/to/nginx_mod_h264_streaming make sudo make install ``` 3. 配置Nginx - 在Nginx的配置文件(如/etc/nginx/nginx.conf)中,添加流媒体服务器的相关配置。例如,创建一个新的...

    Building Data Streaming Applications with Apache Kafka azw3

    Building Data Streaming Applications with Apache Kafka 英文azw3 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    h264_streaming.2.2.7.rar

    4. 修改Apache的配置文件(通常是 `httpd.conf`),在其中加载新模块,添加一行 `LoadModule h264_streaming_module modules/mod_h264_streaming.so`。 5. 保存并关闭配置文件,然后重启Apache服务使更改生效。 6. ...

    apache flv mp4伪流模块mod_flvx.so mod_h264_streaming.so

    Apache FLV MP4 伪流模块,如 `mod_flvx.so` 和 `mod_h264_streaming.so`,是针对Apache服务器优化的插件,主要用于实现高效的视频流媒体服务。这两个模块允许服务器动态地传输FLV(Flash Video)和MP4格式的视频流...

    Building Data Streaming Applications with Apache Kafka

    Apache Kafka is a popular distributed streaming platform that acts as a messaging queue or an enterprise messaging system. It lets you publish and subscribe to a stream of records and process them in ...

    apache伪流插件mod_flvx.so mod_h264_streaming.so

    为伪流(pseudo-streaming)提供支持,节省编译代码,使用APXS工具等复杂操作,直接将so文件加入APACHE进行配置即可,支持FLV与MP4文件的操作

    nginx_mod_h264_streaming-2.2.7

    **Nginx_mod_h264_streaming-2.2.7 模块详解** `nginx_mod_h264_streaming-2.2.7` 是一个针对 Nginx 的扩展模块,它专为实现高效的 H264 视频流媒体服务而设计。H264,全称为 High Efficiency Video Coding(高效...

    Building Data Streaming Applications with Apache Kafka_Code 源码

    Building Data Streaming Applications with Apache Kafka_Code 源码 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    apache2.4流媒体支持(2).zip 播放mp4 和flv

    windows + apache2.4 + php 5.5 播放mp4 和flv,亲测可用。...LoadModule h264_streaming_module modules/mod_h264_streaming.so AddHandler h264-streaming.extensions .mp4 第三步,重启apache服务

    Apache2.4支持mp4-flv的插件.zip

    网上大多是支持2.2版本的。这个是亲测可用apache2.4版的支持流媒体服务插件。 把 ...LoadModule h264_streaming_module modules/mod_h264_streaming.so AddHandler h264-streaming.extensions .mp4

    h.264 streaming server

    2. **传输阶段**:编码后的H.264数据以流的形式发送,可以是实时传输协议(RTP)或互联网协议(IP)包裹。服务器会根据网络状况动态调整传输速率,确保视频流畅播放。 3. **解码阶段**:客户端接收到数据流后,由H.264...

    h.264 streaming introduction live555

    2. **RTP/UDP传输**:H.264编码的视频数据通常通过RTP(Real-time Transport Protocol)封装,然后使用UDP(User Datagram Protocol)进行传输。Live555可以作为RTP/UDP的发送端和接收端。 3. **H.264码流解析**:...

    apache实现视频拖动

    第一步,下载mod_flvx.so和mod_h264_streaming.so并放到apache目录下的...LoadModule h264_streaming_module modules/mod_h264_streaming.so AddHandler h264-streaming.extensions .mp4 第三步,重启apache服务

Global site tag (gtag.js) - Google Analytics