Solved

How do I stream a webcam to a server from a client laptop?

Posted on 2008-10-07
14
316 Views
Last Modified: 2013-12-23
Basically I need to have my webcam (live) feed sent to a web-server which can then re-broadcast that feed to other users.  I'm assuming those other users would just go to an HTTP address and it would be displayed.

I need it to be this way because the internet connection will be relatively poor where my laptop will be - but i will be able to upload it to a web server (have enough up-stream) - and this web server has plenty of bandwidth to re-send the feed.

I need this to be a server-type solution.  I can't use a public website which does this for me.  Currently I have access to an ubuntu 8 server running apache and windows 2003 server running apache/IIS.  The client will be running windows, but I could get a laptop running OS X.

Anyone have any solutions?
0
Comment
Question by:Geesu
  • 7
  • 4
  • 2
  • +1
14 Comments
 
LVL 4

Expert Comment

by:Chris James
Comment Utility
0
 
LVL 4

Expert Comment

by:Chris James
Comment Utility
There are also probably a bunch of shoutcast streaming server hosts:

http://www.viastreaming.com/ is one of them.
0
 

Author Comment

by:Geesu
Comment Utility
I need this to be on an internal network.. so I can't use public solutions
0
 
LVL 4

Expert Comment

by:Chris James
Comment Utility
Well, you can create a web server, run windows media encoder and embed an ASX object that contains your web cam/audio stream onto a web page.
0
 

Author Comment

by:Geesu
Comment Utility
Can you provide more details than that? It looks like the encoder is just for files you already have... I'm confused as to how it will stream LIVE
0
 
LVL 4

Expert Comment

by:Chris James
Comment Utility
Basically, you run Windows Media Encoder, you select the video source (via webcam) and the audio source (via your sound card), and you create a server using selected ports of your choice.
When you create the website (ie using apache or IIS) create an index.html file or any web page and embed an ASX object into the webpage so users can simply click on the play button (of windows media player) and see a live stream of your webcam and selected audio source.
0
 
LVL 4

Expert Comment

by:Chris James
Comment Utility
You can use the "new session wizard" to broadcast a "live event" and use the webcam :)
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 4

Expert Comment

by:Chris James
Comment Utility
You mentioned in your question:

I need it to be this way because the internet connection will be relatively poor where my laptop will be - but i will be able to upload it to a web server (have enough up-stream) - and this web server has plenty of bandwidth to re-send the feed.

And in one of your responses

"I need this to be on an internal network.. so I can't use public solutions"

If you aren't looking for a public solution, then you're going to have to stick with your poor connection, and the solution I provided with Windows Media Encoder or ShoutCast is your best bet unless you do want to pay for a streaming hosting provider on a reliable web server.
0
 

Author Comment

by:Geesu
Comment Utility
I'm looking at a solution which uses VLC (VideoLAN) - have you tried that?
0
 
LVL 2

Expert Comment

by:DavidESL
Comment Utility
VLC will do exactly what you want it will act as both your live encoder engine and streaming server.
you can use it to stream the feed from your web cam feed to an embedded player object in a page hosted on your webserver.
are you familiar with the settings/ configuration required to stream from VLC and how to embedd your player object in the webpage?
0
 
LVL 4

Expert Comment

by:Chris James
Comment Utility
I haven't tried it, but I guess that's your decision if you want to use a Microsoft product or an open source project.  I do know that WME works very well and is very customizable to your needs in terms of streaming quality, tags, and identification.

0
 

Author Comment

by:Geesu
Comment Utility
OK I tried WME and windows media server and it works well - there is just a lot of "lag" time in between... and i need it to be live... it's around 15 seconds delayed - I did find a guide here:

http://www.microsoft.com/windows/windowsmedia/howto/articles/BroadcastDelay.aspx

Anyone had experience w/that?
0
 
LVL 2

Expert Comment

by:DavidESL
Comment Utility
you will always get some degree of lag because of the video encoding overheads. you can do what the article says and reduce the buffer times in each stage of the chain but you will take a hit in terms of encoding quality and playback resilience. your end quality with a severely reduced encoder buffer might be unwatchable.

what is your available upstream bandwidth and what bitrate would you be encoding at?



0
 
LVL 61

Accepted Solution

by:
gheist earned 500 total points
Comment Utility
Let me suggest dorgem software.

We should look for some fast encoding solution to not overload our network and cpu.
basically cinepack or mjpeg are fast at encoding. you may succeed with something better from ffmpeg for directshow or smth like that.
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Suggested Solutions

What do we know about Legacy Video Conferencing? - Full IT support needed! - Complicated systems at outrageous prices! - Intense training required! Highfive believes we need to embrace a new alternative.
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now