Comments on Apple’s Darwin Streaming Server On Centos 5.2
Apple’s Darwin Streaming Server On Centos 5.2 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.
20 Comment(s)
Comments
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?
Hi
Anything Issues?
Anyone know how to fix this? Did a brand new install and it won't work. All it does is restarts the service everytime. I even have the firewall off and it makes no difference.
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
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
Dear All,
I'm using Centos 5.4 with the below iptables entries but still can't access the sample_300kbit.move. Wrose than that, I don't even see any activities from the log.
Please help.
--Wo
# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 554 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 1220 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport rtsp -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 554 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 7070 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 8000 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 8001 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 4536 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 554 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 554 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 7070 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 1220 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 8000 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 8001 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 4536 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport rtsp -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
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.
I'm seeing the same error(Malformed Packet: SDP) in RTSP/SDP reply from DSS. If you found any fix.. Please help me ..
Thanks,
JV.
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]
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.
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.
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
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.
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
hi,
working great. but iphone is not working? any help please
iphone do not support rtsp proto by default.
QT player do support mov , .3gp files but streaming as live broadcast is not feasible.
iphone seems more bullish for not being supporting rtsp. but Quick Lime do download n play the file at same time.. still its not streaming !!
correct me if wrong. suggestion welcome.
btw.. how to help is really perfect to start DSS. Need more focus on firewall, iptable rules to get right ports opened in firewall..
below should help u a bit :
-A INPUT -p tcp -m tcp --dport 554 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 7070 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 1220 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 8000 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 8001 -j ACCEPT
-A INPUT -p udp -m udp --dport 554 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 554 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 7070 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 1220 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 8000 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 8001 -j ACCEPT
This guide is great although a few things have changed now in the install.
I have modified the installers etc to work with just about any CentOS install and should work fine with Fedora and Ubuntu server.
http://backtogeek.wordpress.com/2010/07/20/darwin-streaming-server-centos-5-5-x86_64/
Should make it very very easy for those with little experience to work with.
I just installed this on my CentOS 5 VPS (MediaTemple dv 3.5). One detail was that the sample files weren't copied, so there is one extra command required:
cp /usr/src/redhat/BUILD/DarwinStreamingSrvr6.0.3-Source/sample* /var/dss/movies/
It all seems to work for me now! Not sure if anything else should be copied as well.
I just finished the new CentOS installer its on my blog: http://backtogeek.com/2011/09/13/dss-darwin-streaming-server-centos-installer/
Hi,
Thanks for the article.The installation works seamlessly using the above steps.But I have an issue opening the stream in the QTPlayer.I am able to see the movie Info but the stream does not start.The Iptable is OFF on the linux machine and the firewall is also turned off in the local windows machine where the stream is being accessed.
Is there something that need to be configured to make it run smoothly.
Thanks.