Darwin Streaming Server
From blag.wiki.aktivix.org
Contents |
Where the Darwin Streaming Server Resides in BLAG
The Darwin Streaming Server is located at /var/streaming. If you have media files (clips and sounds) that are static, place them in /var/streaming/Movies. The configuration files are located in /var/streaming/Config. The daemon binary resides in /usr/sbin/DarwinStreamingServer. The administration tool daemon is in the same spot: /usr/sbin/streamingadminserver.pl
Configuring
Rather than going in and editing the /var/streaming/config/streamingserver.xml configuration file by hand, it's easiest to run the web based admin server. To start up the configuration by issuing the following command at a shell prompt:
/usr/sbin/streamingadminserver.pl.
Then simply launch a local Mozilla browser and enter http://localhost:1220 for the location. I found the configuration interface to be fairly intuitive.
Is Darwin Running? How can I tell?
Pull up system tools->Terminal. In the shell window, Issue the command: ps -ef
If you see something like the following two lines, then you are up. 13600 ? S 0:00 /usr/bin/perl /usr/local/sbin/streamingadminserver.pl 13601 ? S 0:00 /usr/local/sbin/DarwinStreamingServer 13602 ? S 0:00 /usr/local/sbin/DarwinStreamingServer 20195 ? S 0:00 /usr/local/bin/PlaylistBroadcaster -a -f -e /var/streaming/playlists/untitled/untitled.err /var/str
Darwin doesn't seem to be running. How can I get it started?
If you are not up and running you can initially test it out by Running system tools->Terminal and in the shell window type (case is important):
DarwinStreamingServer -c /var/streaming/Config/streamingserver.xml -d -S 60
This command will start up the streaming server and it will print a status line into your shell window every 60 seconds, allowing you to try accessing it from a client. As clients succesfully connect and receive content, you'll see the numbers increase. Here's an example:
RTP-Conns RTSP-Conns HTTP-Conns kBits/Sec Pkts/Sec TotConn TotBytes TotPktsLost
0 0 0 0 0 42 152526115
Here we see that we have connected 42 times and have transfered about 152 MB since starting up the streaming server. Initially these numbers are all zeros.zxcvzxvczxcvzxcv
Starting and Stopping DSS
The following commands need to be run as root. Also, note that "DarwinStreamingServer" is case sensitive. The /sbin/service program runs /etc/rc.d/init.d/DarwinStreamingServer
To start the server using the startup scripts run:
/sbin/service DarwinStreamingServer start
To stop the server run:
/sbin/service DarwinStreamingServer stop
To make the server start automatically on boot run:
/sbin/chkconfig --level 35 DarwinStreamingServer on
To make the server not start on boot run:
/sbin/chkconfig --level 35 DarwinStreamingServer off
whoever posted this: I believe you are assuming there is a startup script called DarwinStreamingServer which you put in /etc/init.d. But as far as I know, there is only one DarwinStreamingServer file, it is an compiled executable, and is not a startup script at all. Without such startup script, /sbin/service would not work as you suggested here. comments?
here you go! Adam Culp wrote an init.d startup script for darwin he calls 'darwinssd', you can call it DarwinStreamingServer if you want:
http://www.geekyboy.com/index.php/home/2006/01/13/automating_startup_of_darwin_streaming_s