Apple’s Darwin Streaming Server On Centos 5.2

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Submitted by Jam3s (Contact Author) (Forums) on Mon, 2008-09-29 17:28. :: CentOS

Apple’s Darwin Streaming Server On Centos 5.2

Introduction

This tutorial will run you through the installation, configuration and preparation of media for Apple’s Darwin QuickTime Streaming Server on Centos/RHEL 5.2. Darwin QuickTime Streaming Server is capable of serving H.264 and mpeg4 file formats via the RTP/RTSP streaming protocols.

 

Prerequisites

  1. CentOS 5.2 x86 installed
  2. Development tools must be installed (can be installed after install with

    yum groupinstall "Development Tools"

    )
  3. Static IP address and hostname; I used 192.168.0.10 and example.org as my hostname
  4. Disable firewall and SELinux (configure later)

Installing Darwin Streaming Server 6.0.3

Currently there are no official binary packages of the current version so we will grab a source RPM. Apple’s current source package dose not compile on a Linux system without being patched. Enter the following command by command!

su -
wget http://www.abrahamsson.com/DarwinStreamingServer-6.0.3-2.src.rpm
rpm -i DarwinStreamingServer-6.0.3-2.src.rpm
cd /usr/src/redhat/SPECS/
rpmbuild -bb DarwinStreamingServer.spec
cd /usr/src/redhat/RPMS/i386/
yum –y install perl-Net-SSLeay
rpm -U DarwinStreamingServer*

When installing the RPMs the install hangs when trying to start Darwin so wait a few minutes then open another terminal session using Alt + F2 and run the following as root:

killall -9 DarwinStreamingServer

To change the administrator account from the default password of “password” use the following command:

qtpasswd administrator

So DSS starts at boot up run the following:

chkconfig --level 345 dss on

 

Configuring Darwin Streaming Server

Now open a browser and point the address to http://yourserverip:1220 and log in with the username administrator and the password you choose when running qtpasswd.

Login Image

After logging in you will be asked for an mp3 broadcast password:

Mp3 Password Image

Next you are asked if you want to use SSL for the administration web GUI; I used the default, as I didn’t have a certificate to hand.

SSL Option Image

The next question you will be asked if you want to stream on port 80. Do not use this option if you are planning to run or are running a web server on the same machine.

Stream on Port 80 Image

Next you will be asked to specify a path where your media is stored; leave this as the default for now. The current directory has some sample files that are useful for testing your installation.

Path for media image

You should now see the main administrator page as shown below:

Stream on Port 80 Image

You can now test your install by opening QuickTime on a client (either Windows or the Mac) and using one of the sample files installed by Darwin.

File > Open URL and type rtsp://yourip/sample_300kbit.mov

RTSP STREAMING IMAGE

The following video should be streamed with sound:

RTSP STREAMING IMAGE


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by eric (not registered) on Sun, 2009-09-06 07:37.

hi,

working great.  but iphone is not working?  any help please

Submitted by Expert Enterpri... (not registered) on Sat, 2009-04-18 09:17.

Hello.

Thank you for the great tutorial that helped me to successfully install DSS.

Here are my notes for this tutorial adjustment for Cent OS 5.3 :

 1. change 'cd /usr/src/redhat/SPECS/' to 'cd /usr/src/redhat/BUILD/DarwinStreamingSrvr6.0.3-Source'

2. change  'cd /usr/src/redhat/RPMS/i386/' to 'cd /usr/src/redhat/RPMS/x86_64'

 Cheers,

Arthur

 

 

Submitted by RHEL5 user (not registered) on Tue, 2009-02-10 19:14.

I am confused by this instruction:

You can now test your install by opening QuickTime on a client (either Windows or the Mac) and using one of the sample files installed by Darwin.

File > Open URL and type rtsp://yourip/sample_300kbit.mov

 I have tried using 'yourip' aka my client ip, the darwin server IP, and the server name.  All have the same results: Unable to open blahblahblah.

 Darwin installed without errors.  I have access to the admin page - everything looks great. 

 

Submitted by Aimee (not registered) on Mon, 2009-06-08 14:14.

If you answered no to streaming on port 80, you will need to specify the port when connecting, i.e.

rtsp://yourip:554/sample_300kbit.mov

Submitted by Don Peek (not registered) on Thu, 2009-04-09 05:34.

It could be a firewall issue..  

Try adding the next two line to the /etc/sysconfig/iptables file and restart iptables..

 -A INPUT -p tcp -m tcp --dport 1220 -j ACCEPT

-A INPUT -p tcp -m tcp --dport rtsp -j ACCEPT

 

Submitted by Anonymous (not registered) on Fri, 2009-03-27 20:45.
Some more info on this, I'm running centos 5.2 x86_64 for the server, running wireshark on this it looks like the RTSP reply to the initial DESCRIBE has malformed SDP, running the same test against DSS on an xserve the SDP is valid and it works as expected.
Submitted by Anonymous (not registered) on Fri, 2009-03-27 20:32.

I have also followed these instructions and have the same problem.  Everything installed correctly, when I try to connect to a sample movie, nothing happens.  I've checked the dss logs there is nothing in here.   I did notice that the logs seem to show a service startup everytime I try to load a movie.


# Streaming STARTUP 2009-03-27 20:19:52

2009-03-27 20:19:53: INFO: Module Loaded...QTSSRefMovieModule [dynamic]

2009-03-27 20:19:53: INFO: Module Loaded...QTSSRawFileModule [dynamic]

2009-03-27 20:19:53: INFO: Module Loaded...QTSSHomeDirectoryModule [dynamic]

2009-03-27 20:19:53: INFO: Module Loaded...QTSSFileModule [static]

2009-03-27 20:19:53: INFO: Module Loaded...QTSSReflectorModule [static]

2009-03-27 20:19:53: INFO: Module Loaded...QTSSRelayModule [static]

2009-03-27 20:19:53: INFO: Module Loaded...QTSSAccessLogModule [static]

2009-03-27 20:19:53: INFO: Module Loaded...QTSSFlowControlModule [static]

2009-03-27 20:19:53: INFO: Module Loaded...QTSSPosixFileSysModule [static]

2009-03-27 20:19:53: INFO: Module Loaded...QTSSAdminModule [static]

2009-03-27 20:19:53: INFO: Module Loaded...QTSSMP3StreamingModule [static]

2009-03-27 20:19:53: INFO: Module Loaded...QTSSAccessModule [static]

Submitted by Anonymous (not registered) on Sat, 2009-05-16 04:08.
Did you get this error working? I have set up DSS on CentOS using this guide and everything went fine.. Except when I try to stream a video, it doesn't stream at all, I tried a web player, VLC and Quicktime.. But when I try to open the file using a browser, I get to download the file .mp4 with text inside it rtsp://blahblahblah  .. What do you think is wrong with it?
Submitted by Anonymous (not registered) on Thu, 2009-09-03 06:54.

Hi

Anything Issues?

 

Submitted by René (not registered) on Tue, 2008-11-04 13:12.

Thank you for patching and sharing this!

I noticed some errors. I started off from a CentOS 5.2 minimum install. I noticed that rpmbuild is not in "Development Tools" included:

yum install rpm-build

 

Then I run  rpmbuild -bb DarwinStreamingServer.spec  with the following errors:

+ install -d /var/tmp/DarwinStreamingServer-buildroot/usr/share/man/man8
+ install -d /var/tmp/DarwinStreamingServer-buildroot/usr/share/doc/DarwinStreamingServer-6.0.3
+ install -m755 DarwinStreamingServer /var/tmp/DarwinStreamingServer-buildroot/usr/sbin/
install: cannot stat `DarwinStreamingServer': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.52951 (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.52951 (%install)

Please indicate how to proceed.

Submitted by Anonymous (not registered) on Mon, 2009-01-12 01:36.

try

# yum -y install gcc-c++

The error "error: Bad exit status from /var/tmp/rpm-tmp.52951" can be traced to a previous error "error trying to exec 'cc1plus': execvp" because g++ is not installed.

Submitted by Adam (not registered) on Wed, 2009-05-27 19:56.

Never rebuild packages as root.

 Go to the centos wiki and setup a rpmbuild setup for regular users.

 Also, you might need the lzma package from rpmforge to rebuild this source rpm.

 There is another SRPM for mandriva which worked fined for me in CentOS 5.3 x86_64:

ftp://mirror.switch.ch/pool/3/mirror/mandrake/official/2009.0/SRPMS/
contrib/release/darwinstreamingserver-6.0.3-1mdv2009.0.src.rpm
 

Sponsored Links: Unified Communications: Thoughts, Strategies and Predictions
Join the discussion.
www.seamlessenterprise.com

IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com

Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com

Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com

Red Hat Virtual Experience - a free virtual event. Dec. 9th