zoukankan      html  css  js  c++  java
  • 给xampp 或 lampp 添加 mp4 视频模块

    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/

  • 相关阅读:
    selenium登录csdn,urllib抓取数据
    selenium登录12306,requests抓取数据
    加一
    最后一个单词的长度
    最大子序和
    搜索插入位置
    实现strStr()
    二分查找
    内存对齐
    is_pod类型
  • 原文地址:https://www.cnblogs.com/yisuo/p/14028253.html
Copyright © 2011-2022 走看看