Intermediary transaction SEO diagnosis Taobao guest Cloud host technology Hall
With the development of the Internet, online video and video sharing site has become a well-deserved focus of the popular. More and more netizens are keen to watch online videos, movies and TV dramas on video sites such as potatoes, and they have also led a group of podcasts to create their own "creative" videos and upload them to servers and share them with many netizens.
At the same time, there are more and more stationmaster or grassroots people also notice this business opportunity, have set up their own video sharing site. For now, most online video-sharing sites use FLV-formatted network video files. The FLV format is the Macromedia developed Flash video format. The advantage of using this format is that you can not only easily import flash, but also solve the problem that the other formats of the online video require the client to install different players to play correctly, and reduce the video capacity accordingly. It also supports customizing the personalized Flash Player to make your online video look more hot, cooler and more flashy.
Here's a description of how to build your own video-sharing site in a Windows Server environment. After my test, completely feasible (p.s. Put up my Site address first, you can feel it) first of all, take Windows 2003 server as an example to teach you how to quickly build an online video sharing site in an ASP language environment.
I. Installing on Windows 2003 Server
To quickly build a video-sharing site on a Windows 2003 server (ASP locale), refer to the following steps to implement:
1 Step 1: Installation directory and installation files;
2 Step 2: Create an application pool for the site (creator pool);
3 Step 3: Configure the site;
4 Step 4: Create a MIME Map for the. flv file
5) Step 5: Test Site
Two. installation directory and installation files;
1 Log on to your server using admin privileges (administratorprivilege).
2 Install a program on the server that supports using the command line to bulk convert video files into. flv format. Several related products have been tried in this regard, and the final use is a Fvec program named "The best known FLV video codec server version." You can go to the official website to download this program (said English web site updated faster, like the use of the latest version of people can visit the official English website downloads;). The installation of this program is relatively simple, like the general software, direct click Next can be quickly installed.
3 after the installation of the program, in the installation directory to find a file named "Fvec-asp-demo.zip" package, you can use WinZip to extract the package, the compressed file inside the Wwwroot directory to the next subfolder, such as C:\\inetpub\ Wwwroot\fvec
4 If you do not install the program to the default path but install the program to the other specified directory, then you must open the Fvec.asp page and change the path inside to the directory address you have specified for installation.
5 Set permissions. Locate the file directory "C:\inetpub\wwwroot\fvec\files" and set the permission for the account "IUSR_computername" to complete control. All video files uploaded by the user and the corresponding *.flv files generated by the codec will be stored in this directory by default.
6 Find the file "C" \inetpub\wwwroot\fvec\fvec.mdb "file, to the account" IUSR_computername "Set permissions for Full Control (FullControl). This program's demo file uses Microsoft's Access database to simplify the configuration work, relatively simple. If you want to switch to another database is perfectly OK. For example, if you switch to SQL Server or Oracle, you need to open the Db.aspx file and manually modify your database provider name and connection string.
7 Run the Command Line window provided by the system. Modify the current path shown in to "C:\inetpub\wwwroot\fvec" and invoke the Regsvr32.exe program to register the MyRequest.dll file. After the registration is successful, a build will be installed for the ASP environment to handle the file upload work.
Three. Create an application pool (creator pool);
1 Open internetinformation Service (IIS) Manager.
2 Expand the nodes in the InternetInformation Services (IIS) Manager. Right-click the application pool (applicationpools) node and select the submenu "New" > "Application Pool (creator)" in turn.
3 Name the new application pool, such as "Myapppool", and click OK to confirm.
4 and then expand the "ApplicationPools" node, right click on "Myapppool", select "Properties".
5 in the Properties dialog box, click on the "Identify" tab, the preconfigured security account from the "Receptacle Service" modified to "local Sytem", and click OK OK.
Four. Configure the site;
1 still open "InternetInformation Service Manager".
2 Expand the InternetInformation Service (IIS) Manager node. Right-click your site and choose Properties.
3 in the Open Site Properties dialog box, go to the home directory (homedirectory) tab and change the execution permission (executepermissions) to script and executable (Scripts andexecutables).
4 Change the application pool (ApplicationPool) to "Myapppool".
5 Modify the restrictions on the size of uploaded files in IIS. IIS only allows users to upload files of less than KB by default. To modify this limit, you can use the following steps:
5.1 Open Internet information Service Manager;
5.2 Mail Click the node for Internet information Service Manager (IIS) and select Properties. Then select the option "Allow direct editing of the configuration database (enabled direct Metabase Edit)" and click OK.
5.3 Run the text editor to open the file C:\WINDOWS\system32\inetsrv\Metabase.xml; Locate the AspMaxRequestEntityAllowed property and set its value to an appropriate value.
5.4 Save the MetaBase.xml file and restart IIS.
Five. Create MIME Map;
1. Select a site for configuration in IIS, mail click and select Properties.
2. On the HTTP Headers tab, click the MIME type (MIME Types) button and select New.
3. Enter ". flv" as the suffix name, "video/x-flv" as the MIME type, and click OK OK.
Six. Final step: test Site;
This completes all configurations, and you can then test the site. The test methods are as follows:
Open your browser and visit the http://yourdomain/fvec/upload.htm page. If it's all right, you can successfully upload the video file to your server and automate the codec until it's done.
Ok. A server with the most basic video upload and codec batch processing function is built. If you are willing to, of course, can also add more features for the server, such as their own to do a distinctive website features of the player, in the end of the video playback to add other relevant video referral list, etc., are relatively easy to achieve.