CentOS 6.4 Apache Configuration flv mp4.h264 Streaming Media drag

Source: Internet
Author: User

http://blog.csdn.net/xst686/article/details/9763995

To restart httpd after adding a streaming media extension

FLV Streaming Media

<textarea style= "Line-height:15px! Important Font-size:12px! Important -moz-tab-size:4; width:548px; height:51px, "class=" Crayon-plain print-no "readonly=" readonly "data-settings=" ">wget http://people.apache.org/~ Pquerna/modules/mod_flvx.c/usr/local/apache/bin/apxs-c-i&nbsp;mod_flvx.c</textarea>
12 wgethttp://people.apache.org/~pquerna/modules/mod_flvx.c /usr/local/Apache/bin/apxs-C-i MOD_FLVX . c

Httpd.conf Join

<textarea style= "Line-height:15px! Important Font-size:12px! Important -moz-tab-size:4; width:507px; height:50px, "class=" Crayon-plain print-no "readonly=" readonly "data-settings=" ">loadmodule flvx_module modules/ mod_flvx.so AddHandler Flv-stream .flv</textarea>
12 LoadModuleflvx_module modules/mod_flvx. soAddHandler flv-stream. FLV

MP4 Streaming Media

<textarea style= "Line-height:15px! Important Font-size:12px! Important -moz-tab-size:4; width:846px; HEIGHT:107PX, "class=" Crayon-plain print-no "readonly=" readonly "data-settings=" ">wget http://h264.code-shop.com /download/apache_mod_h264_streaming-2.2.7.tar.gz TAR-ZXVF apache_mod_h264_streaming-*.tar.gz cd&nbsp;apache_ mod_h264_streaming-*./configure--with-apxs=/usr/local/apache/bin/apxs make make install</textarea>
123456 wgethttp://h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz tar -zxvfapache_mod_h264_streaming-*. Tar. GZ CD apache_mod_h264_streaming-* . /Configure--with-apxs=/usr/local/Apache/Bin /apxs Makemake install

Httpd.conf Join

<textarea style= "Line-height:15px! Important Font-size:12px! Important -moz-tab-size:4; width:602px; height:53px, "class=" Crayon-plain print-no "readonly=" readonly "data-settings=" ">loadmodule h264_streaming_ Module modules/mod_h264_streaming.so AddHandler h264-streaming.extensions .mp4</textarea>
12 LoadModuleh264_streaming_module modules/mod_h264_streaming. soAddHandler h264-streaming. Extensions. MP4

Configure Nginx, Apache server support FLV streaming media drag play

Http://www.php1.cn/article/59985.html

Configuring FLV Drag under nginx

First, download the Nginx source package, take version 0.8.54 For example

wget http://nginx.org/download/nginx-0.8.54.tar.gz

Before recompiling, stop the Nginx service. Check the original compiler parameters of Nginx

/usr/local/nginx/sbin/nginx? V

Add FLV support based on the original parameters

0.8.54 version, for example, to compile

./configure--user=www--group=www--prefix=/usr/local/nginx--with-http_stub_status_module--with-http_ssl_module- -with-http_gzip_static_module--with-ipv6--with-http_flv_module

Make && make install

After compiling, add FLV support to the nginx.conf file.

Location ~ \.flv$ {

flv

}

Start Nginx, use curl? I to see if it was successful.

The main view is the value of the content-length. and add the parameter start after the comparison.

For example:

Curl-i http://video.zhangyuc.com/flv/110718/video.flv

Content-length: 1218888

Contrast

Curl-i http://video.zhangyuc.com/flv/110718/video.flv?<strong>start=12345</strong>

Content-length: 1206556

The above example lists only the values of content-length.

If the Content-length value is still the same as before, then the configuration is not successful

Configure FLV drag under Apache

Configuring drag under Windows Server takes two steps altogether

The first step is to download the mod_flvx.so and put it under the Modules folder in the Apache directory

Http://www.mosalov.com/files/mod_flvx.so

The second step, in the Apache configuration file, add the following, restart the Apache service

LoadModule Flvx_module modules/mod_flvx.so

AddHandler flv-stream. flv

Linux Server configuration drag, need to download the mod_flvx.c file after compiling

The first step is to download the mod_flvx.c and compile it.

wget https://github.com/osantana/mod_flvx/blob/master/mod_flvx.c

Compile with APXS, check the APXS version before compiling

Apxs-c-I./MOD_FLVX.C

The second step is to create the mod_flvx.conf file in the Apache CONF.D directory and write the following content

LoadModule flvx_module/usr/lib/apache2/modules/mod_flvx.so
AddHandler flv-stream. flv

Reboot after configuration is complete

CentOS 6.4 Apache Configuration flv mp4.h264 Streaming Media drag

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.