After buying the VPS has always wanted to build a streaming service on the above, search for a lot of information on the Internet, most of it is the introduction of Linux installed in Darwin streaming Server 5.5.5, because this version provides installation scripts for Linux. However, since the official website has 6.0.3 version, then decisively try to install the latest version.
1 and what is Darwin streaming Server
The current mainstream streaming servers are Microsoft's Windows Media Server, RealNetworks Helixserver and Apple's Darwin streaming server. Microsoft Windows Media Server can only be used under Windows2000 Server and Windows 2003 server, not in the list of considerations. RealNetworks's Helixserver is a cross-platform software that is also powerful, but not freeware.
Darwin Streaming server is referred to as DSS. DSS is an open source live Streaming server program provided by Apple. The whole program is written in C + +, in the design of high-performance, simple, modular and other program design principles, in order to achieve efficient procedures, scalability is good. And DSS is an open source, standard-based streaming media server that can run on Windows NT and Windows 2000, as well as several UNIX implementations, including Mac OS X,linux,freebsd, and on the Solaris operating system.
2 , in Linux Install Darwin streaming Server in the compilation
Some of the necessary preparations need to be made first:
Prepare the software staging directory and download the software source code from the official website:
mkdir SOFTCD Softwget Http://dss.macosforge.org/downloads/DarwinStreamingSrvr6.0.3-Source.tar
After the source download is complete, you need to unzip the tar package.
Tar xvf Darwinstreamingsrvr6.0.3-source.tar
Install patch files to the source code, enter the Darwinstreamingsrvr6.0.3-source directory, and hit the Patch:
CD Darwinstreamingsrvr6.0.3-sourcewget Http://www.abrahamsson.com/dss-6.0.3.patchpatch-p1 < Dss-6.0.3.patch
Perform
Once the compilation is complete, we will build the DSS installation package under Linux
Generate darwinstreamingsrvr-linux.tar.gz
Unzip
Make changes to the install file
if [$INSTALL _os = "Linux"]; Then/usr/sbin/useradd-m qtss >/dev/null 2>&1 else/usr/sbin/useradd qtss >/dev/null 2>&1 fi
Change-M to-m
Please enter a administrator user name: "New Administrator"
Please enter a new Administrator Password: "Password"
See if the installation was successful
Root .../usr/local/sbin/darwinstreamingserver.
Qtss .../usr/local/sbin/darwinstreamingserver.
Netstat-ntulp | grep Darwin (View the port of the streaming media server)
3 , starting Darwin streaming Server
Sudo/usr/local/sbin/darwinstreamingserver
Start the Web management interface (TCP port 1220)
sudo/usr/local/sbin/streamingadminserver.pl
PS. The above two items will start automatically when they are first installed, and do not need to be executed manually.
Tip: How to automatically start a streaming media server:
It is very simple to run the streaming server sequence automatically, and add the above command to the/etc/rc.d/rc.local script.
Finally, enter HTTP.//your ip:1220/to access Web management at the server
The default media files are stored in the/usr/local/movies
You can modify this path in the Web admin panel.
4. Access to your own streaming media services
You can use the VLC media player software to enter
rtsp://your ip/sample_100kbit.mp4.
To play the default test video. If you have enough speed to force the effect is good:)
Linux compilation install Darwin streaming Server 6.0.3