As Internet and intranet applications are increasing, video on demand is also gradually applied to broadband networks and local area networks. People are no longer satisfied with the browsing text and pictures, more and more people prefer to watch movies on the Internet, listen to music. The implementation of video on demand and audio point broadcast function must rely on streaming service technology. As far as it is, the most popular stream on demand server has only two, namely Windows Media service and REAL Server. Below we are here to discuss how to build a video on demand server in a Windows 2003 Server environment. We know that Windows Media services use streaming media to transfer data. Usually the file in the format must be fully downloaded to the local hard drive to open and run. Since multimedia files are usually relatively large, completely downloaded to local often take longer waiting. The streaming media format file only needs to download some in the local, then you can play it while downloading. Windows Media services support video files in ASF and WMV formats, as well as audio files in WMA and MP3 format.
First, the installation of Windows Media service
WINDOWS Media Services is one of the components of the Windows Server 2003 system, but is not automatically installed by default, but users need to manually add. In the Windows Server 2003 operating system, in addition to the "Windows Component Wizard" installed Windows Media service, you can also be implemented by "Configuring your Server Wizard".
(1) When you just install the Windows Server 2003 operating system and enter Windows, the system automatically runs the Manage Your Server window. Click the "Add or Remove Role" hyperlink, display "Configure your Server Wizard" dialog.
(2) Click the "Next" button in the dialog, the computer will automatically detect all devices, operating systems, and detect all network settings. After the test is complete, the Configuration Options dialog box is displayed, select the Custom Configuration option to customize the network service you need to install yourself.
(3) Click the "Next" button, the Server Role dialog box is displayed, and all the servers that can be installed are listed in the Server Role list box. Most of the services in the system can be selected in this dialog.
(4) Select the "Flow Media Server" option in the list box, and then click the "Next" button, the Select Summary dialog is displayed to view and confirm the selected option.
(5) Click the "Next" button to display the "Configure Component" dialog box and put the Windows Server 2003 installation disc in the optical drive as prompted.
(6) Place the installation CD After clicking the "OK" button, the system starts copying the file from the disc and installs the Windows Media service, and uses the progressbook to represent the current installation progress.
(7) After the installation is complete, the dialog will be displayed, which means that this server has been successfully set to a streaming media server.
(8) Click the "Complete" button to turn off the wizard, return to the Manage Your Server window, and the flow media server has been successfully installed.
In addition, Windows Media services can also be installed in the Control Panel, using traditional "Add / Remove Programs" to add installations. In the Windows Component Wizard dialog box, select the Windows Media Services check box and you can successfully install it according to the system prompts into the Windows installation CD.
After the Windows Media service is installed, the Manage Your Server window will be returned. Click "Manage this Flow Media Server" on the right of "Flow Media Server" to the right, or click Start "-> Control Panel ->" Administrative Tool "-> Windows Media Services option, The Windows Media Services window will appear. All management work on Windows Media services can be done in this window.
Some basic knowledge about streaming media is introduced in this window to understand it as entry. In the Getting Started tab, click on an option in the left basics, you can display the explanation of the item on the right. Second, make streaming documents
Web services can be used to publish HTML files, while video on-demand services are naturally available to issue streaming files. Using the Windows Media encoder, file extensions can be extended as .wma, .wmv, .asf, .avi, .wav, .mpg, .mp3, .bmp, and .jpg to convert stream files used by Windows Media services. .asf, .wma and .wmv file extension representative of the standard Windows Media file format. Where .asf file extensions are often used to use Microsoft Media-based content using Windows Media Tools 4.0. And .WMA and .WMV file extensions are introduced as a standard naming agreement as a Windows Media encoder. The purpose is to make users easily distinguish pure audio (.WMA) file and video (.wmv) file, these three extensions can be Exchange. 1, install Windows Media Encoder
Windows Server 2003 does not bring your Windows Media encoder, you need to download the Simplified Chinese version of the Windows Media Encoder on the Microsoft official website, and then perform the installation process. It should be noted that the encoder can be installed on the Windows Media server and can also be installed on other computers. That is, the encoder only needs to be installed on a computer operating in the encoding (ie, the conversion file format).
(1) Double-click the Windows Media Encoder installation file that runs the download, will display the Installation Wizard dialog, which shows the components that can be installed in this installation wizard.
(2) Click the "Next" button to display the License Agreement dialog box, ask the user to read the end user license agreement, access whether the user accepts the terms in the license agreement, and then click "I accept the terms in the license agreement Single option.
(3) After selecting, click the "Next" button to display the Install Folder dialog box, display the location where the Windows Media encoder will be installed in the Install Folder text box. Of course, you can also type in other installation paths. Click the Browse button to select another installation path.
(4) Click the "Next" button to display the Preparation Installation dialog, indicating that you can now install Windows Media service.
(5) Click the "Install" button, the installation file will start copying the file to the hard disk and perform a Windows Media service installation. After the installation is complete, the installation completion dialog is displayed, prompts the Windows Media Encoder 9 Series Installation Wizard.
(6) Click the "Complete" button to complete the installation and restart your computer based on the system prompt.
Click Start -> Programs -> Windows Media -> "Windows Media Encoder" option, will run the Windows Media encoder and display the Windows Media Encoder window.
2, conversion file format
The standard description of the conversion file format should be "encoding the storage information source", in fact, the multimedia file saved on the hard disk or disc is converted to the streaming file format that the Windows Media service can be used, this file format conversion process is called encoded. Windows Media encoders can encode multimedia files in MPG and AVI formats to WMV format.
(1) Click Start -> "All Programs" -> "Windows Media" -> "Windows Media Encoder" option, the New Session dialog will appear. Select the "Convert File" icon to prepare to convert the video file.
(2) Click the "OK" button to display the New Session Wizard window. Type the folder and file name where you want to convert files in the Source Files, or click the Browse button directly to find the file you want to convert. By default, the output files are saved in the same folder with the source files. Of course, you can also re-specify the saved folder. (3) Click the "Next" button to display the Content Distribution dialog to specify the way the distribution content is displayed. Since the program is made for the Windows Media service, you should choose the "Windows Media Server (Flow Processing" option here.
(4) Click the "Next" button to display the Encoding Options dialog where you can specify audio and video encoding. If the video file is only used for local area network or broadband transmission, high quality video and audio can be selected, and a higher frame rate is specified, thereby obtaining a clear image and realistic sound. Of course, the network bandwidth occupied at this time is also high, and the file storage space is large. Here, each selected a bit rate generates a corresponding WMV file, so usually only one bit rate is required.
(5) Click the "Next" button to display the "Display Information" dialog, you can type related information about the video file in the corresponding text box.
(6) Click the "Next" button to display the Set Check dialog where you can display and check the information about the video file. If you have any errors, you can click the "Previous" button to return to the relevant page to re-perform the relevant settings.
(7) Click the "Finish" button to start the file format. This may take a while to wait patiently.
(8) After the format conversion of the file is completed, the Code Results dialog box is displayed, click the "Close" button to end the format conversion process. To continue to convert the next video file, click the "New Session" button. To check the just converted video file, click the "Play Output File" button.
3, encode live
Coding the live information source is to coding the audio, video, or pictures such as audio, video or pictures such as audio or video devices, to convert them into streams or stream files. The process of encoding the live source is particularly similar to the encoding process of the stored information source.
(1) After starting the Windows Media encoder, in the "Wizard" tab on the New Session dialog box, select the "Capture Audio or Video" icon, then click the "OK" button to run the New Conference Wizard. window. First Display the Device Options dialog where users can use the video and audio devices you can use.
(2) Click the "Next" button, will display the Output File dialog. Since the created file is saved, you need to type the save path in the File Name text box, and customize a file name, of course You can also click the "Browse" button to select the saved folder.
(3) Click the "Next" button, the Content Distribution dialog box will display the distribution method that can be used in the "How to Distribute Content" list box. Since it is a streaming of the live source, Here you should choose the "Windows Media Server" option.
(4) Click the "Next" button to display the Encoding Options dialog. The encoding setting of the selected distribution method is shown here, including video, audio, and bit rates, and the like. If the user does not want to use these default settings, you can also modify it. (5) Click the 'Finish button,' Open Strict Windows Media Encoder "to encode, or click the" Next "button to display the Show Information dialog. Here you can add display information for the encoded file, which will be played using Windows Media Player and can only be seen when there is a startup subtitle.
(6) After clicking the "Complete" button, open the WindowsMedia encoder directly to encode, or click the "Next" button to check the setup information, the Set Check dialog box will appear. (7) If you confirm that the settings performed are correct, click the "Finish" button to complete. It should be noted here that if "Click the 'Finish' Start Capture" multiplex option, you will capture the information immediately after clicking the "Finish" button and encoded. Otherwise, the capture will not be captured immediately, and the window will be displayed.
(8) At this point, you can view or modify the settings for the "Properties" button on the toolbar. If you want to perform encoding, you can click the Start Encoding button. When the encoding is complete, click the "Save" button to open the Save As dialog, save the configuration information of the stream to use or modify the configuration again.
(9) After creating a streaming media file, you can enjoy the file via the Windows Media Player player. You can select the "Open URL" option in the File menu, type the URL where the stream file is located, and click the "OK" button to play.
In the "Open URL" dialog, you need to type the URL, which can be the following URL address:
MMS: // server_name / asfname mms: // server_ipaddress / asfname mms: // Server_domain / asfname
Among them, server_name, server_ipaddress and erver_domain represent the computer name, IP address of the INDOWS Media server, and asfname indicates the file name of the stream. 4, capture screen
The Windows Media encoder can also be used to capture screens, windows, and you can also capture the screens, specific areas or windows in the screen to capture and make a demo file for other users to watch or download.
(1) Start the Windows Media encoder first, and then click the New Session dialog box in the Windows Media Encoder main window to display the New Session dialog. Select the "Capture Screen" option in the Wizard tab, and then click the "OK" button to display the New Session Wizard dialog.
(2) The three ways that can be captured are listed in this dialog, namely a specific window, screen area, and the entire screen. Select "Specific Window" option, then click the "Next" button to display the Window Select dialog. All current activity windows are listed in the "Window" drop-down list of the dialog, and the user can select a window to capture as needed.
If you select the "Screen Area" option in the "Screen Capture Sessions" dialog box, click the "Next" button to display the Screen Area dialog box, then enter the location of the screen area in the Coordinate box. If you are convenient, you can also click the Screen Area Select button and then drag the mouse pointer on the screen area to capture to select the screen area. The Windows Media Encoder main window is minimized when capturing the screen and does not capture at the same time.
If you select the "Whole Screen" option, you will capture all the activity information of the entire screen and make the corresponding stream file.
(3) Select the "Next" button to select the "Next" button, will display the Settings Selection dialog. Here, users are required to choose from based on the balance between the input file size and the quality.
(4) Click the "Next" button, the Display Information dialog is displayed, which is similar to the coding operation step of the storage information source and the live source, and then click the "Finish" button to start encoding. If you don't want to set it, you can immediately encode it, you can cancel the "Set Check" dialog box "Click the 'Finish the' Post Capture" option, then click the "Finish" button and do the corresponding in the encoder main window. modify.
To this end, we have completed the construction of the Windows Media video server in the Windows 2003 Server environment. You can make a video and audio point for video and audio.