httpd 2.2.15 添加流媒體模組

來源:互聯網
上載者:User

標籤:tar.gz   img   產品   vedio   images   ons   figure   lib   技術分享   

項目中使用的一直都是 httpd  2.2.15  用於播放視頻資源,近期有個新產品上線發現快進視頻會出現卡頓情況,因此添加了流媒體模組。(懷疑是新產品中的播放器進行了更改)

原文:http://liuhongjiang.github.io/tech/blog/2015/06/26/apache-vedio-streaming/ 

安裝mod_h264_streaming

安裝apache httpd的apxs:

yum install httpd-devel

 

下載模組 並編譯安裝

wget http://h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gztar -xzvf apache_mod_h264_streaming-2.2.7.tar.gzcd mod_h264_streaming-2.2.7./configure --with-apxs=‘which apxs‘make && make install

 

配置apache, 在httpd.conf中添加配置, mod_h264_streaming.so的路徑可能不一樣,可以find 一下

 

 
AddType video/mp4 .mp4 .m4vAddType video/ogg .ogvAddType video/webm .webmLoadModule h264_streaming_module /usr/lib64/httpd/modules/mod_h264_streaming.soAddHandler h264-streaming.extensions .mp4

 

重啟apache. 然後測試

 

apachectl -t -D DUMP_MODULES  查看是否載入成功,我這已經可以看到了現在載入成功。

 

httpd 2.2.15 添加流媒體模組

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.