Take the 2-minute tour ×
Video Production Stack Exchange is a question and answer site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation. It's 100% free, no registration required.

I've been looking at a million resources and I can't find a definitive answer to this.

I'm looking to do a small scale (max 50 viewers possibly), low quality live video stream, with nothing but my existing equipment (mac and firewire camera), a low end ubuntu vps and free software. Stream from the mac and host the stream on a website on the vps.

I don't want to use services like justin.tv or ustream because the advertising is very intrusive, and I'd also like to learn how to do it myself. I have some server admin skills, but this is a new world to me, and I can't make sense of how all the pieces fit together. I spent all night reading about rtmp, rec5, wowza, ffmpeg and now i don't understand anything at all.

Can someone give me possible workflows to piece the 3 parts together?ie, streaming from local computer, receiving in vps, broadcasting on website.

share|improve this question
    
If you can use .net and wouldnt mind rtsp then check out net7mma.codeplex.com –  Jay 9 hours ago

2 Answers 2

up vote 1 down vote accepted

It varies a little from one server to another, but the basic components are an encoder/streaming client on the local client that takes input from the camera and turns it in to a stream that can be sent to the stream server on the VPS.

The job of the stream server (such as Red5) is then to provide a publishing point that relays the stream to viewers. The streaming server can either pull from the client or the client can push to a target location on the stream server in order to provide content to the publishing point.

Each viewer then connects to the published RTMP stream on the streaming server and is provided with a copy of the stream that is being uploaded. Note that every copy has to be sent out separately unless you are on a private network where you can use multicast, so bandwidth needs rise quickly, though it should be possible to do 50 SD or lower quality streams from a single VPS provided it has a reliable 100Mbps connection.

The website simply contains a viewer that hooks up to the RTMP (or similar) stream and is actually operating client side, not server side.

So to quickly recap, client uploads to back end of streaming server, streaming server replicates out to every viewer requesting to watch it and the web server simply gives users a client side viewer that connects to the video stream.

To briefly hit on what each one of the component you mentioned.

  • RTMP is real time media protocol, which is a common streaming protocol used for actually relaying the video stream content.
  • Red5 is a fairly popular free streaming media server software used for replicating out RTMP and similar media streams to clients.
  • Wowza is another streaming media server software, however it is a commercial, paid software product. If you are limited to free software, Wowza is not an option.
  • FFMpeg is a popular open source video encoder. It runs on the client and can be configured to publish a stream that can be sent to Red5 or similar streaming media server.

Additionally, you will need an end-point viewer capable of consuming the stream. Software like Windows Media Player or Quicktime should be able to view a stream, but it is often best to include an embedded cross platform player in the website that people are going to for the stream. There are many options for this component with different strengths and weaknesses, but any should work for your purposes.

share|improve this answer

There's another free, more lightweight alternative to wowza and red5 - the nginx-rtmp-module, which frees you from messing around with java

https://github.com/arut/nginx-rtmp-module/

and here's a guide to set it up with the free Open Broadcaster Software (which unfortunately is windows only) https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/

For the streaming user end, the only decent free solution I've found for OSX is Adobe Flash Media Live Encoder.

So, a free and relatively lightweight pipeline for streaming from osx would be

Camtwist and Soundflower for capturing

Adobe Flash Media Live Encoder for streaming RTMP to the vps (or Open Broadcaster Software on windows)

An ubuntu vps running nginx with the nginx-rtmp-module (needs to be built from source)

Embed the stream on a website with something like JWPlayer

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.