Configure FLV streaming media dragging in Apache

Source: Internet
Author: User

Http://www.xsdou.com/1451.html configuration in various environments

Http://blog.rimuhosting.com/2011/05/03/mod_flvx-flv-movies-working-with-apacheapache2/

Http://www.gnutoolbox.com/mod_flvx/

Http://www.ckplayer.com/view.php? Id = 82

Http://zhumeng8337797.blog.163.com/blog/static/10076891420121255441445/

 

Configure FLV drag in Apache

Environment: Debian apache2 ckplayer

1. Install apxs.

Apxs is an Apache extension tool used to compile one or more sources.ProgramOr targetCodeThe file is a dynamic shared object that can be loaded to the Apache server at runtime using the loadmodule command.

As a compilation tool of the Apache module, use it to compile the mod_flvx.c file.

Under Debian and Ubuntu, apxs is placed in the apache2-threaded-dev and apache2-prefork-dev, And you can install either.

Apt-Get install apache2-prefork-dev

View the installation path of whereis apxs2

Man apxs, if you want to see how it works

2. Download mod_flvx.c and compile it.

Wget https://github.com/osantana/mod_flvx/blob/master/mod_flvx.c or

Wget http://people.apache.org /~ Pquerna/modules/mod_flvx.c

Use apxs for compilation. Check the apxs version before compiling. If there is no problem with the new installation

Apxs-c-I-a./mod_flvx.c

3. Add the mod_flvx.so module to the Apache configuration file and add the processing for. FLV.

Create the mod_flvx.conf file in the conf. d directory of Apache and write the following content

Loadmodule flvx_module/usr/lib/apache2/modules/mod_flvx.so

Addhandler FLV-stream. FLV

4. Restart Apache

5. If you cannot drag it

1) FLV does not have metadata key frame data

You can use yamdi or flvtool2 to add a key frame for your FLV video.

Yamdi-I source. FLV-O DeST. FLV or

Flvtool2-u source. FLV

If you do not have yamdi or flvtool2, you can install apt-get first.

Here I used flvtool2 to report an error, so I used yamdi. It is said that yamdi is more efficient.

2) if the player cannot be dragged, configure the player.

Ckplayer is used here.

I found ckplayer configuration: http://www.ckplayer.com/view.php? Id = 82

Ckplayer. js

(1) Whether HTTP Stream Control 1 is/0 is used for the 6th parameters of CK. Setup = '1, ';

(2) H value, H: '1', // The drag method used to play the HTTP video stream. 0 is based on the key frame, and 1 is based on the key time point.

(3) Q: '', // reference function for Video Stream dragging. The default value is start.

For the differences between key frames and key time points, the default value is FLV based on the key time point, while MP4 is based on the key frame to drag freely, however, many websites set the two in a unified manner, either by key frame or by key time point.

Here I executed (1 ).

 

Then, all right... You can drag...

 

 

Related Article

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.