=====================================================
The simplest example series based on Librtmp is a list of articles:
Simplest LIBRTMP-based example: Receive (rtmp saved as FLV)
Simplest LIBRTMP-based example: Publish (FLV is released via RTMP)
Simplest LIBRTMP-based example: release of H. (H. rtmp Post)
=====================================================
This document records a program that publishes
Document directory
Asp.net converts various video files into. FLV formats
Asp.net converts various video files into. FLV formats
First, deploy the folder. Create Several folders under the project directory, for example:The upfiles folder is the file you uploaded, And the playfiles folder is the file you saved after conversion (used for online playback)The imgfile folder stores the image of the captured
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
"FLV videos that can be played locally using flash media players cannot be uploaded to the Internet ."
In fact, the reason is very simple, because most of the hosts in China are win2003. The FLV format is not specified by default.
Although it can be seen in FTP, it cannot be accessed through HTTP and thus cannot be played.
Two solutions:1. Find the server administrator and add
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
For FLV types:How to: Open Internet Information Services Manager (IIS (Microsoft Web server Platform)), select Local Computer--> user site--> Open Properties--> "HTTP headers"-- > "MIME Type"--> "new". Extension = ". flv" MIME type = "Flv-application/octet-stream", save exit.Method Two: Select "Local Computer"--> user site--> Open "Properties"--> "HTTP Headers"--
Php cannot download flv files or mp4 files. if you want to transmit the flv playback address or mp4 playback address through POST, you can directly download the files. it is easy to download and directly receive POST data. the format of POST data is similar: a. com1.flv, then downloaded through PHP, tested two methods (only...
Php cannot play the
"An FLV video that can be played locally using a flash Media Player will not be uploaded to the Web."
In fact, the reason is very simple, because most of the domestic Win2003 host. The default is to not specify output FLV this format.
Although it can be seen in FTP, but not through HTTP access, it can not be played.
Two kinds of solutions:
1, find the server administrator, add
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.
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
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.