Solved

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

Posted on 2008-10-07
14
321 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 4
  • 2
  • +1
14 Comments
 
LVL 4

Expert Comment

by:Chris James
ID: 22662059
0
 
LVL 4

Expert Comment

by:Chris James
ID: 22662069
There are also probably a bunch of shoutcast streaming server hosts:

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

Author Comment

by:Geesu
ID: 22662081
I need this to be on an internal network.. so I can't use public solutions
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
LVL 4

Expert Comment

by:Chris James
ID: 22662164
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
ID: 22662193
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
ID: 22662867
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
ID: 22662877
You can use the "new session wizard" to broadcast a "live event" and use the webcam :)
0
 
LVL 4

Expert Comment

by:Chris James
ID: 22669148
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
ID: 22669727
I'm looking at a solution which uses VLC (VideoLAN) - have you tried that?
0
 
LVL 2

Expert Comment

by:DavidESL
ID: 22676700
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
ID: 22678216
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
ID: 22678426
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
ID: 22679611
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 62

Accepted Solution

by:
gheist earned 500 total points
ID: 22695330
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

707 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