|
Instructions
Instructions for creating a streaming server at home to stream all your videos anywhere.
Featured, Phase-Deploy IntroductionThis document will detail how to setup your own streaming server using Ubuntu 9.10, Apache2, Darwin Streaming Server, and VLC. Install Ubuntu 9.10This document assumes you are using Ubuntu 9.10 (32-bit) Server. Other versions of Linux will most likely work, but I haven't tested them.
Install Needed Softwaresudo wget http://www.medibuntu.org/sources.list.d/`lsb_release -cs`.list --output-document=/etc/apt/sources.list.d/medibuntu.list sudo apt-get -q update sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring sudo apt-get -q update sudo apt-get upgrade sudo aptitude install apache2 openssh-server samba smbfs php5-ffmpeg libapache2-mod-php5 ffmpeg libavcodec-extra-52 vlc build-essential Install Darwin Streaming Serversudo addgroup --system qtss sudo adduser --system --no-create-home --ingroup qtss qtss wget http://streameverything.googlecode.com/files/DarwinStreamingSrvr6.0.3-Source.tar tar -xvf DarwinStreamingSrvr6.0.3-Source.tar wget http://streameverything.googlecode.com/files/dss-6.0.3.patch patch -p0 < dss-6.0.3.patch http://streameverything.googlecode.com/files/dss-hh-20080728-1.patch patch -p0 < dss-hh-20081021-1.patch cd DarwinStreamingSrvr6.0.3-Source mv Install Install.orig wget http://streameverything.googlecode.com/files/Install chmod +x Install ./Buildit sudo ./Install wget http://streameverything.googlecode.com/files/darwin-streaming-server chmod +x darwin-streaming-server sudo cp darwin-streaming-server /etc/init.d/darwin-streaming-server sudo update-rc.d darwin-streaming-server defaults
Testing VLC
vlc /path/to/video --sout='#transcode{soverlay,ab=48,samplerate=44100,channels=1,acodec=mp4a,vcodec=h264,width=512,height=288,vfilter=\"canvas{width=512,height=288,aspect=16:9}\",fps=25,vb=384,venc=x264{vbv-bufsize=200,partitions=all,level=12,no-cabac,subme=7,threads=4,ref=2,mixed-refs=1,bframes=0,min-keyint=1,keyint=50,qpmax=51}}:gather:rtp{mp4a-latm,dst=127.0.0.1,port-audio=20000,port-video=20002,ttl=127,sdp=file:/usr/local/movies/movie.sdp}'These settings work for streaming to the Motorola DROID. You may need to tweak them for your destination device.
Set Up Apache
Try it all out
Limitations
TroubleshootingYour firewall needs the following ports open: TCP 554, UDP 6970:6999. If you are behind a NAT firewall, you need to change the following line in streamingserver.xml: <PREF NAME="alt_transport_src_ipaddr" ></PREF> to (replace 123.45.67.8 with your public IP address): <PREF NAME="alt_transport_src_ipaddr" >123.45.67.8</PREF> The streaming server must be restarted in order for this to take effect. If you do not have a static IP address then the streaming server needs to be reconfigured and restarted every time your IP address changes. |
Set up Apache.
Point 2. Download the index.php file from this site, and place it in /var/www
This file is missing form the download section. Can you please upload it?
This project looks like exactly what I've been working on! Can you post the index.php file? Thanks, I'm excited to build on your work.
Sorry about that. Found it under source. Thanks!
If You use it via DSL/VPN or have another router between the machine running VLC and the Darwin Streaming Server (or also possibly the playing device) and You sometimes see video errors and the audio starts to get off sync after time: I found it useful to set the MTU for vlc via "vlc --mtu 1400 ...".
As samjbobb said, the index.php file is located in the source section of the project.
Excellent project it worked perfect on ubuntu 9.10 x86_64. I am trying to create a live stream from webcam, anyone has managed to do this with darwin streaming server? Thanks!
If anyone here wants to contribute any updates they have, let me know here and I'll add you as a dev on the project.
I am able to play the sample_100kbit.mp4, however when I add a new mp4 file, I get the following error (I have changed the owner of that file to qtss):
live555 error: Failed to connect with rtsp://10.2.2.14/padma.mp4 main error: open of `rtsp://10.2.2.14/padma.mp4' failed: could not create access
Any ideas of how to fix this? Thanks!
hackerjack: It sounds like a permission issue. chmod the file to look the same as the sample.
The following links are broken:
http://dss.macosforge.org/trac/raw-attachment/ticket/6/dss-6.0.3.patch http://dss.macosforge.org/trac/raw-attachment/ticket/6/dss-hh-20081021-1.patch http://dss.macosforge.org/trac/raw-attachment/ticket/6/Install
Is there anyone out there who have alternative source for patch files and install script.
I have added the files to this project and updated the instructions above. The old links no longer work.
Please, the link to the file dss-hh-20081021-1.patch is broken, can you upload this to the project?
Thanks