How to set up a movie video server
Author:Eve Cole
Update Time:2009-07-24 15:50:29
First is the hardware aspect
When selecting video server hardware, you need to pay attention to the following points:
1. No high-frequency CPU required
When the video server provides services, it is mainly reflected in continuous I/O operations and does not occupy a large amount of CPU resources. Based on the author's experience, in an Internet cafe with 50 machines, a CPU of around PIII500 can be used very well.
2. High stability
High stability is very important. Video servers generally run continuously for 10 days to more than a month. If you shut down your computer when customers are watching with interest, it will be detrimental to the image of your Internet cafe. If you have a generous budget, you may consider choosing a 64-bit bandwidth server motherboard. This is very beneficial for sustained and high-volume I/O operations.
However, this kind of motherboard usually costs more than 2,000 yuan, which is a bit expensive considering the budget. Therefore, generally consider an ordinary PC motherboard that has a good reputation or you are very confident in its stability. Don't chase newly launched models. The author recommends 2 motherboards, Meijie 6BA+IV and AbitBH6. These two models are both The old-fashioned BX motherboard may sell for 600-700 yuan or less. But its stability is impeccable.
3. Storage subsystem
Storage subsystem is the key to video servers
In order to adapt to the large amount of I/O operations of the video server for a long time, it is never advisable to share a hard disk with the system and video files. A separate disk or disk array must be used to store the video files. If you choose a motherboard with a SCSI interface If you have a server motherboard, you can consider using a SCSI hard drive. Of course, the price is high. The price of a 30G ordinary SCSI hard drive is also around 2,700. So we choose IDE RAID. Please check the relevant documents on your own about what RAID is.
Highpointtech and Promise both provide us with suitable RAID products. Generally, products with a market price of more than 400 yuan are well suited for such a working environment. Be careful not to buy some "soft" RAID cards, even though the purchase price is lower, However, its performance is very poor and consumes a lot of system resources. Iwill's SIDE RAID100 is a good choice. It is recommended to use a 5400 rpm hard drive model. Because after using RAID to create an IDE array, the overall disk performance will be close to n times that of a single hard drive. This Depends on the number of hard drives you have.
The 7200 rpm hard drive generates too much heat when running for a long time, and its performance is higher than that of the 5400 rpm hard drive. It is useless after being amplified by RAID. And its price is significantly higher than that of the 5400 rpm hard drive. This is the reason why 7200 rpm hard drive is not used. .
Using IDE Raid requires at least 2 hard drives. Plus one hard drive to install the operating system and the storage subsystem will cost you:
raid card¥480
Hard drive×3¥1600
If you are really on a tight budget, you can abandon IDE RAID and use only a 7200 rpm hard drive to store video files. Note: The author strongly reminds not to put the operating system and video files on the same hard drive.
4. Network part
Do not use cheap 8139 network cards. It is recommended to use Intel 10/100M Pro+. It costs about ¥250.
The video server should be connected to the backbone switch in the Internet cafe.
If you are still using a 10M network, you should upgrade your network first.
Software part
1. Operating system Win2000 Server or Advanced Server Edition. (If you can use Linux or FreeBSD to build the platform, then you do not need to continue reading this article.
2.Web server IIS5.
3. Streaming media server RealSystem’s RealServer8.0+ and Windows Media Server
To install Win2000, IIS is installed by default when installing W2k. You only need to select three components: Web service, public documents and server management. Media Server is not installed by default. Remember to select it. Pay attention to installing the system on the hard disk specially prepared for the system. , put the streaming media files on a hard disk or hard disk array specially prepared for streaming media files. Create a directory called Media as the subsequent RealServer mount point. It is best not to put anything else here.
RealServer can be downloaded from many places. It comes with a 10-user license. Press Enter all the way during installation. Finally, you need to set the user name and password for the management interface. After the installation is completed, 2 icons will be generated on the desktop. Run RealServer 8.0 Administrator
Enter the configuration interface. At this time, you need to enter the user password, which is the user password you set during the installation just now.
Select Configure-->General Setup-->Connection Control and change the Maximum Client Connections setting item to the maximum number supported by your license. Maximum Licensed Client is the maximum number of your license.
Configure-->General Setup-->Mount Points, fill in the virtual directory name you want to access the video stream in the box below Edit Mount Point, assuming it is Movie, then fill in /Movie/ and then fill in the box below BasePath Fill in the local path of your video file, assuming it is E:\Media, then fill in E:\Media. Then click the Edit button, and then click the Apply button. A window will pop up telling you that the modification is successful and you need to restart RealServer. .Restart. Click Restart Server at the top. In about 20 seconds, the restart is completed. Now copy any rm format video file into e:\Media\
Let's assume it is 01.rm. Then assume your IP address is 192.168.1.118. Start RealPlayer, select Open Location in the File menu, fill in rtsp://192.168.1.118/Movie/01.rm and click OK.
If nothing unexpected happens, you will see that RealPlayer is buffering and will start playing after a few seconds. Now please return to the RealServer configuration interface, click Monitor, and you will see the running status of RealServer. Player connected displays how many users are currently there. Connection, File Usage displays the number of different streaming files currently on demand. CPU usage displays Realserver CPU usage, Memory usage displays memory usage, and bandwidth usage represents bandwidth usage.