Http://itindex.NET/detail/48702-nginx-rtmp-httpOne, streaming media playback mode1. HTTP modeThis way to download the FLV video file to local playback, once the FLV video file download is complete, will not consume the server resources and bandwidth, but the drag function is not rtmp/rtmp streaming media powerful, many video sites are implemented in HTTP, such as: YouTube, potatoes, cool 6, etc.2, rtmp/rtmp
FLV video is not the same as flash. The full name is Flash video, and the player used is not the same. In the course of making courseware, we often need to download various resources from the network to enrich the courseware content and improve the classroom effect. Most are favorably cool, potatoes and other video sites to download the FLV format video files, but can not be inserted into our common multime
Skills | Video Playback Everyone good, not long ago I will cenfun Music player to join the FLV video playback function, here alone to give everyone to do a flash FLV player (ActionScript only control, do not use FLVPlayback components), If there is any improper place also to correct.
Let's turn on your Macromedia Flash Player 8 (recommended) Start!
First create a new document, set the background color black
PHP implementation time to get FLV files
This article mainly introduces the PHP implementation to get the FLV file time, this article directly give implementation code and use method, the need for friends can refer to the following
How PHP Gets the flv file time, the answer is fopen file after viewing the FLV file
PHP implementation to obtain the FLV File time ,. How long does PHP obtain the FLV file? How does PHP obtain the FLV file Time? the answer is to view the FLV file is HEX data after the fopen file and convert it to number. Copy the code as follows: phpfunct PHP time for obtaining FL
Summary
Author: Gucci flying e
Blog: www.v246.com
QQ: 28095553
Email: aquaqu (circle. a) gmail.com
This article is original from the ancient brake flying e. For more information, see the source!
The following is the source code:
[Full text]
Author: Gucci flying e
Blog: www.v246.com
QQ: 28095553
Email: aquaqu (circle. a) gmail.com
This article is original from the ancient brake flying e. For more information, see the source!
This method has been verified by practice, is b
1. First download FFMPEG
2. decompress the decompressed ffmpeg.exe and pthreadgc2.dll files to any directory (of course, it can also be a directory in webroot)
3. Create the BAT file convertvideo. BAT and add the following content: (for parameter descriptions, see Appendix 1)
[TXT]View plaincopy
% 1/FFMPEG-I % 2-y-AB 56-ar 22050-B 500-R 15-s 320 * 240% 3
Exit
******************
% 1 is the FFMPEG storage directory
% 2 is the file path to be converted
% 3 is the output directory of the
HTTP protocol implementation of the FLV playback is not complicated, the original implementation of the principle is the use of FlowPlayer plug-in implementation, the effect is good. But there are still two big problems that affect the customer's emotional access:1. The page is stuck when preloaded, and there seems to be no side-down broadcast.2. Occasionally, you cannot drag the timeline to the part that is not downloaded. I believe many people also
The reason is because it is not on Windows Server 2003. This mime-type type of flv, for which Adobe has given its solution. As follows:
for server users:
1. On the 2003 server, locate IIS Manager.
2. Expand the local server name, right-click the select attribute, and on the Internet Information Services tab, click the Edit button below the bottom computer MIME map.
3. Click on the "New Type" button and add the extension.
: This article mainly introduces how to use nginx to build flv and mp4 streaming media servers based on rtmp or http. if you are interested in PHP tutorials, refer to it. Http://itindex.net/detail/48702-nginx-rtmp-http
I. streaming media playback mode1. HTTP
In this way, you need to download the FLV video file and play it locally. Once the FLV video file is dow
Server | solution | upload
FLV format files cannot be played after uploading servers because most of them are Win2003 hosts. Default is not specified output FLV This format, although it can be seen in the FTP, but not through HTTP access, it can not play.
[ Reason:WIN2003 has tightened IIS6 mime verification, and all unregistered extended file formats show 404 errors. Manually add a MIME mapping relationsh
Build an mp4/flv Streaming Media Server Based on tengine in CentOS6 (
Location ~ \. Mp4 $ {Root/mnt/media/vod;Mp4;Limit_conn addr 20;Limit_rate 200 k;}
Location/hls {# Serve HLS fragmentsAlias/mnt/media/app;}
Access_log logs/nginxflv_access.log access;}}---------------- Nginx configuration file --------------
4. Convert your movies into mp4 and flv formats to test the nginx environment.
4.1) Prepare a movie
To prepare the software:
Nginx-1.6.0.tar.gzYamdi-1.9.tar.gz
Yamdi is a progressive flow support module, grasping the video resource key frame to realize the random drag effect when playing
Download Address: http://ncu.dl.sourceforge.net/project/yamdi/yamdi/1.9/yamdi-1.9.tar.gz
FLV video can be published in HTTP or rtmp mode. This is in HTTP mode.
Install Nginx and MP4 support modules and FLV modules:
I made a flvplayer myself. The local test is normal, but it cannot be performed after being uploaded to the server. At first, we suspected the path problem. However, the video is not played after being uploaded several times. It is a problem of the MIME type of IIS on the server. The following describes the solution.
Microsoft changed the way to process streaming media on Microsoft Internet Information Service (IIS) 6.0 web server, instead of using the processing method in earlier versions. Ear
With the FMS/red5 configuration, use flvplayerback to test the rtmp protocol. To further use netstream for development, we found that netstream. Play only supports HTTP and file protocols (refer to the Flash help ).Check the Internet for YouTube, 6rooms, and 56, and find that the playing protocols they use are also HTTP. As the Streaming Media Server, the FMS/red5 has been specially optimized. But why are these websites not using the rtmp protocol.
What are the advantages of rtmp over HTTP? Or:
Most of the hosts in China are win2003. Files in FLV format cannot be played after being uploaded to the server. By default, FLV files are not output. Although they can be seen in FTP, they cannot be accessed through HTTP, it cannot be played. The reason is that win2003 enhanced IIS6 mime verification, and all unregistered extension file formats showed 404 errors. Manually add the mime ing relationship to t
On the win2003 host, files in FLV format cannot be played after being uploaded to the server. By default, FLV files are not output in this format. Although it can be seen in FTP, it cannot be accessed through HTTP and thus cannot be played.
The reason is that win2003 enhanced IIS6 mime verification, and all unregistered extension file formats showed 404 errors.
Manually add the mime ing relationship to th
Two kinds of solutions:
1, to find the server administrator, add FLV file type output support.2, the extension of FLV into SWF to play.
The following tutorial will show you the detailed solution!
1 Open IIS Manager, right-click on your computer name-> property, find "MIME type", as shown in the figure:
What is a MIME type? MIME type is the type of file that sets an extension to open with an applicat
FLV video is already the majority of video sites preferred video type, domestic and foreign famous video sharing station YouTube, Youku, potatoes, Sina Blog, Qiyi and so on are all Flash Player Flv/mp4 video.
FLV has two modes of publishing
One, ordinary HTTP way: This method usually needs to download to the local to play, there is buffering, but the download w
1.headerThe header section records the type of FLV, version and other information, is the beginning of the FLV, generally similar, accounting for 9bytes. The specific format is as follows:
File type
3 bytes
"FLV"
Version
1 byte
Typically 0x01
Flow information
1 byte
The last digit is 1 for the video, the
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.