The provision of film playback services in Internet cafes is already very common, in fact, the movie server of Internet cafes is the streaming media server that can provide the movie broadcast service, this article will make a introduction to how to build the movie server and so on.
Hardware aspects
Video server hardware selection requires attention to the following points:
1. No need for High-frequency CPU
Video server in the provision of services, mainly reflected in the continuous I/O operations, CPU resources occupy is not large. To the author experience, 50 machines of the Internet café, PIII500 about the CPU can be very good competent.
2. High stability
High stability is very important, the video server will normally run for 10 days in a row-more than 1 months. If you are watching with relish when down machine, the image of their own Internet bar, if your budget is comfortable, you can consider the use of 64-bit bandwidth server board. This is good for continuous and large amount of I/O operations.
But this kind of motherboard is usually more than 2000 yuan, from the budget consideration, this is somewhat expensive. So generally it is considered that the Word-of-mouth is quite good or that you have a very confident of its stability on the general PC motherboard. Don't go chasing new models. I recommend 2 motherboards, Soyo 6ba+iv, AbitBH6. These 2 are the oldest BX motherboard, the price may be at 600-700 yuan or lower. But its stability is impeccable.
3. Storage Subsystem
Storage subsystem is the key to video server
To accommodate a large number of I/O operations for a video server for a long time, System and video file sharing a hard drive method is never desirable. You must use a separate disk or disk array to store the video files. If you choose a motherboard with a SCSI interface, you may consider using a SCSI hard drive. Of course the price is high. A 30G common SCSI hard drive is priced at around 2700. So We chose IDE raid. What about RAID please check the relevant documentation yourself
Highpointtech and promise have all provided us with the right RAID products. The general market value of more than 400 yuan products can be very good for such a working environment. Be careful not to buy some "soft" raid cards, so that, although the purchase price is lower, But its performance is poor and consumes a lot of system resources. Iwill's side RAID100 is a good choice. The hard drive recommends using a 5400-RPM model. Because after using RAID to set up an IDE array, overall disk performance is approximately n times the size of a single hard drive. This depends on the number of your hard drives.
7200 turn hard disk for a long time the heat is too high, and it is higher than the performance of the 5400-drive, after raid amplification is useless. And its price is significantly higher than the 5400 drive. This is the reason for not using a 7200-turn hard drive.
Using IDE RAID requires at least 2 hard drives. Plus a hard drive to install the operating system, the storage subsystem will cost you:
RAID Card ¥480
Hard Drive x3¥1600
If your budget is tight, you can discard IDE RAID and use only one 7200-turn hard drive to store your video files. Note: The author strongly cautions against putting the operating system and video files on the same hard drive.
4. Network Segment
Do not use a cheap 81,391-class NIC. The recommended use of Intel 10/100m pro+. About ¥ 250.
The video server should be connected to the trunk switch in the Internet bar.
If you are still using a 10M network, you should upgrade your network first.
Software section
1. Operating system Win2000 server or Advanced Server Edition. (If you can build a platform using Linux or FreeBSD, you don't need to read this.)
2.Web server IIS5.
3. Streaming media server Realsystem realserver8.0+ and Windows Media Server
Install Win2000, IIS installs W2K by default. You only need to select a Web service, a public document, and a server to manage 3 parts. Media Server does not install by default. Remember to pick it up. Note that the system is installed on the hard disk specially prepared for the system, and the streaming media files are placed on the hard disk or the hard disk array that is specially prepared for streaming media files. Build a directory called media, as a realserver mount point. It's best not to put anything else in here.
Realserver is a lot of places to download. Bring your own 10 user license. When you install it all the way back, you finally need to set the user name and password for the admin interface. 2 icons are generated on the desktop when the installation is complete. Run Realserver 8.0 Administrator
Enter the configuration interface. At this point, you need to enter a user password, is the installation of the user password you set yourself.
Select Configure-->general setup-->connection control to change the Maximum Client connections settings to the maximum number of your license support. Maximum Licensed The Client is your maximum number of licenses.
Configure-->general Setup-->mount Points, in the box below the edit Mount point, fill in the virtual directory name you want to access the video stream, assuming Movie, then fill in the/movie/ Then fill in the box below the basepath the local path of your video file, assuming it is e:\\media, then fill in the E:\\media. Then click the Edit button and click the Apply button. The pop-up noodles tell you that the modification is successful, You need to reboot the Realserver. Click on the top restart server.20 seconds or so, restart completed. Now copy any file in RM format video to e:\\media\\,
Let's assume it's 01.rm. Then assume that your IP address is 192.168.1.118. Start RealPlayer, select Open Location in the File menu, and fill in the rtsp://192.168.1.118/movie/01.rm point to determine.
If it's not an accident, you'll see that the RealPlayer display is buffering and will start playing after a few seconds. Now go back to Realserver's configuration interface and click Monitor to see how realserver is running. Player Connected shows how many users are currently wired, file usage displays the number of different stream files currently on demand. CPU usage Display realservercpu occupancy rate, Memory usage display memory footprint, bandwidth Usage represents bandwidth usage.