河汉清且浅,牵牛敦而纯

https://blog.csdn.net/aoshilang2249/article/details/50300765
http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Apache-Version2

安装 libtool
apt install -y libtool

修改下面两个文件的第一行
vim /opt/lampp/bin/apxs ==> /opt/lampp/bin/
vim /opt/lampp/build/libtool ==> /bin/bash

rm -rf /opt/lampp/modules/mod_flvx.so
rm -rf /opt/lampp/modules/mod_h264_streaming.so

编译安装
wget http://people.apache.org/~pquerna/modules/mod_flvx.c

/opt/lampp/bin/apxs -i -a -c mod_flvx.c

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
cd mod_h264_streaming-2.2.7/

./configure --with-apxs=/opt/lampp/bin/apxs
make
make install


编辑 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

-------------------------------

windows 直接下载

https://www.apachehaus.net/modules/mod_h264_streaming/

 

posted on 2020-11-24 01:47  伊索  阅读(183)  评论(0编辑  收藏  举报