Guide Center Download videos and enjoy them offline!
This business opportunity draws people's attention. And some want to have a try, to make their own video sharing platform. And this tutorial will introduce you a quick way to establish such a platform.
Who may need this article:
Are you planning on running your video hosting services? Have you ever thought creating your own video sharing site on the server with thousands upon thousands of visitors and video clips hosted just like YouTube, iFilm, Break or other famous video sharing sites do? This tutorial will tell you how to make the first step.
More information about Sothink Video Encoder Engine for Adobe Flash (Windows Version)
In this article, you will get to know
- Installation directory and files
- Create an Application Pool
- Site configuration
- Create MIME Map
- Test your site
What are needed:
- Windows 2003 Server
- ASP Environment
- Sothink Video Encoder Engine for Adobe Flash (Windows Version) [fvec for short]
Step I: Installation directory and files
- Log in your server as Administrator.
- Install a grogram which can make batch conversion of video into FLV using command line. Here we take Sothink Video Encoder Engine for Adobe Flash (Windows Version) as an example. After a few “Next”, you can finish your installation.
- Find the file “fvec-asp-demo.zip” under installation directory, and unzip it into folder “wwwroot”. For example, c:inetpubwwwrootfvec.
- If you did not install the program to default directory, you need to change the path in fvec.asp.
- Find“c:inetpubwwwrootfvecfiles”, and set ID “IUSR_COMPUTERNAME” as “Full Control”. Then all video files and converted flash video will be save in this directory by default.
- Find file “c:inetpubwwwrootfvecfvec.mdb”, and set ID “IUSR_COMPUTERNAME” as “Full Control”. Demo in this program adopted Microsoft Access to make configuration easier. You can also adopt other database like SQL Server or Oracle, and then you need to manually change data provider and connection string.
- Open command line window of operating system, and change the path to “c:inetpubwwwrootfvec”, and “call font="regsvr32.exe” for registration of file “MyRequest.dll”. Being successfully registered,it will configure a component dealing with uploading.
Step II: Create an Application Pool
- Launch “Internet Information Service (IIS) Manager”.
- Expand nodes of “Internet Information Service (IIS) Manager”. Right-click on node “ApplicationPools”, and select “New > Application Pool”.
- Name it as “MyAppPool” and click “OK”.
- Expand nodes “ApplicationPools”, right-click on “MyAppPool”, and choose “Properties”.
- In this dialog box, click tab “Identify”, and change “Security Account” from “Network Service” to ”Local System”, then click “OK”.
Step III: Site configuration
- Launch again “Internet Information Service (IIS) Manager”.
- Expand nodes of “Internet Information Service (IIS) Manager”. Right-click on your site, and choose “Properties”.
- In this dialog box, click tab “HomeDirectory”, and change “Executepermissions” to “ScriptsandExecutables”
- Change “Applicationpool” to “MyAppPool”.
- In IIS, files larger than 200KB can not be uploaded by default. You can change it through following steps”
- Launch “Internet Information Service (IIS) Manager”
- Right-click on the node of “Internet Information Service (IIS) Manager”, and and choose “Properties”. Then click “OK”.
- Open “C:WINDOWSsystem32inetsrvMetabase.xml;” in Notepad, find property of “AspMaxRequestEntityAllowed” and specify a proper value.
- Save it and restart IIS.
Step IV: Create MIME Map
- In IIS right-click your site and choose “properties” to configure it.
- In tab of “HTTP Headers”, click button “MIME Types”, and select “New”.
- Input “.flv” as file extension, and “video/x-flv” as MIME Type, and click “OK”.
Step V: Test your site
Now configuration is done, and you can test your site:
Open your browser and visit “http://yourdomain/fvec/upload.htm”. If everything’s going on well, video files can be uploaded to your server smoothly, and encoding and decoding will be automatically completed..
So far a basic video sharing server has been established. And if you like, you can add more relevant functions like a playback of your own style to make your site more characterized.
To help you to build your own video hosting site, we also provide full source code of live demo sites written in ASP, ASP.net and PHP with detailed SDK documents and tutorials.
If you have any questions about this tutorial, please contact us. We will reply as soon as possible.
