How to Set up Video Codecs on Windows Server (ASP)
Video sharing sites are now really hot. To build your own video sharing site is not so hard. Here we will guide you to use ASP to create a video hosting site on Windows 2003 server step by step, and customize a Flash video player for this video sharing site.
Who may need this article:
If you have interest on running your video hosting services, you wanna create your own video sharing site on Linux 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.
What’s needed:
- Flash Video Encoder for Adobe Flash (Command-Line Version)
- Windows 2003 Server
- Internet Information Server
- Active Server Pages
- File uploading component
- ADO (for database accessing)
- JavaScript
- Video Encoder for Adobe Flash
Playersetup your video hosting site on a Windows 2003 Server
Step1 Setup Folders and Files
1. Log on to your server with Administrator privilege.
2. Download Flash Video Encoder for Adobe Flash (Command-Line Version) from our Web site and install it on your Web server.
3. Find the file fvec-asp-demo.zip in the installation folder of Flash Video Encoder for Adobe Flash (Command-Line Version); Open it with WinZip and extract the files to a sub-folder under your wwwroot folder, for example, c:inetpubwwwrootfvec.
4. If you have changed the installation folder of Flash Video Encoder for Adobe Flash (Command-Line Version), you should open file fvec.asp and change the path to the correct one.
5. Assign “full control” permission to account “IUSR_COMPUTERNAME” for folder “c:inetpubwwwrootfvecfiles”. By default, video files uploaded by users and encoded *.flv files will be stored in this folder.
6. Assign “full control” permission to account “IUSR_COMPUTERNAME” for file “c:inetpubwwwrootfvecfvec.mdb”. In this demo, we use Microsoft Access database to simplify the configuration. If you would like to use other databases, for example, SQL Server or Oracle, you can open the file db.aspx and modify the database provider and connection string yourself.
7. Open Command Prompt. Change the current directory to “c:inetpubwwwrootfvec” and register MyRequest.dll using regsvr32.exe. This will install a component for ASP to handle file uploading.
Step2 Create Application Pool for the Web Site
1. Open Internet Information Service Manager.
2. Expand the “Internet Information Services (IIS) Manager” node. Right click the “Application Pools” node and select New > Application Pool.
3. Give a name for the new Application Pool, for example, “MyAppPool” and click OK.
4. Expand the “Application Pools” node, and right click “MyAppPool”, select Properties.
5. Click the “Identify” page, change the predefined security account from “Network Service” to “Local System” and click OK.
Step3 Configure the Web Site
1. Open Internet Information Service Manager.
2. Expand the “Internet Information Services (IIS) Manager” node. Right click your Web site and select “Properties”.
3. Change the Execute permissions to “Scripts and Executables”.
4. Change the Application pool to “MyAppPool”.
5. Change the file uploading limitation of IIS. By default, IIS does not allow users to upload file larger than 200 KB.
1. Open Internet Information Service Manager.
2. Right click the “Internet Information Services (IIS) Manager” node and select “Properties”. Select “Enable Direct Metabase Edit” and click OK.
3. Open C:WINDOWSsystem32inetsrvMetabase.xml with a text editor; Find AspMaxRequestEntityAllowed and change its value to a proper value.
4. Save Metabase.xml and restart IIS.
Step4 Create MIME Map for .flv Files
1. Select the site to configure in IIS, right click and select “Properties”.
2. Under HTTP Headers Tab, click the “MIME Types” button and select “New”.
3. Enter “.flv” as the extension and “video/x-flv” as the MIME type and click OK.
Step5 Test Your Web Site
To test the site, please open your browser and navigate to http://yourdomain/fvec/upload.htm. If everything goes well, you can upload video files to your server and encode them now.
Create a Flash video player
Step1 Installation of Sothink Video Encoder for Adobe Flash
After purchasing Sothink Video Encoder Engine for Adobe Flash (Linux Version), you can get Sothink Video Encoder for Adobe Flash Windows GUI version for free. With the Windows GUI version, you can make customized Flash Video Players for general use on your video hosting and sharing server.
System Requirements: Windows 2000 / XP / 2003 / Vista
How to install
1. Download Sothink Video Encoder for Adobe Flash from our web site.
2. Extract the ZIP file to your hard disk
3. Run Setup.exe and follow the wizard to install the software.
4. Launch Sothink Video Encoder for Adobe Flash by double-clicking the program icon on your desktop.
5. Enter the registration key to register the software. If you have not get the registration key yet, please send your registration information of Sothink Video Encoder Engine for Adobe Flash (Linux Version) to support@sothinkmedia.com and we will send you the registration key then.
Step2 Create a Customized Flash Video Player
1. Launch Sothink Video Encoder for Adobe Flash by double-clicking the program icon on your desktop.
2. Select any video file and click “Next”.
3. In the “Encoding preferences” page, change the “Width” and “Height” to desired values, then click Next.
4. In the “Select output folder and files” page, check “Generate SWF” and uncheck “Generate FLV”, “Generate HTML” and “Generate thumbnail”. Enter “player.swf” as the name of the output SWF file. Select “Get FLV path from a URL variable and play progressively” and enter “flv” as the name of the URL variable. You can also change the playback settings as you like. Click “Next” after done.
5. In the “Select play control skin” page, check “Use a skin” and select a desired skin. You can also specify a color scheme for the skin and adjust the saturation of the color.
6. Click “Next” and a file name “player.swf” will be created in the specified folder.
Step3 Deploy the Flash Video Player
1. Find the file “player.swf” created in the previous steps in Windows Explorer.
2. Copy the file “player.swf” in to the folder of the PHP demo site and overwrite the old one.
3. Now you can upload a video and test the created Flash Video player on your web site.
Screenshots:


To enjoy your own video sharing site like youtube, hulu now,
Free download Flash Video Encoder for Adobe Flash (Command-Line Version) and Video Encoder for Adobe Flash
Tags: batch convert videos, streaming videos, video hosting, video sharing site

April 4th, 2009 at 10:39 am
Great site this http://www.flash-video-soft.com and I am really pleased to see you have what I am actually looking for here and this this post is exactly what I am interested in. I shall be pleased to become a regular visitor
April 8th, 2009 at 8:33 pm
The style of writing is quite familiar to me. Did you write guest posts for other blogs?
April 10th, 2009 at 12:13 pm
FANTASTIC!
April 15th, 2009 at 8:08 am
The style of writing is very familiar to me. Have you written guest posts for other blogs?
May 30th, 2009 at 5:56 am
I was searching for downloads online. Good to read interesting posts on your blog. Thanks.
June 6th, 2009 at 11:52 pm
I bookmarked this site, Thank you for good job!
June 11th, 2009 at 12:21 pm
Thank you very much for given this useful post…
June 12th, 2009 at 6:05 pm
The best information i have found exactly here. Keep going Thank you
June 27th, 2009 at 5:55 am
This seems too good..!
July 7th, 2009 at 2:58 am
I want to learn the history of gambling. Can anybody forward me to a worthy site? Btw - Kudos on a great site
July 25th, 2009 at 2:49 pm
Nice site. go to my favorites. TNx
July 28th, 2009 at 3:34 pm
I bookmarked this link. Thank you for good job!
http://www.flash-video-soft.com - cool!!!!
July 30th, 2009 at 6:20 am
Amazing news, thank you!