Solved

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

Posted on 2008-10-07
14
317 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
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
 
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
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
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 61

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

Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

Question has a verified solution.

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

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

920 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

15 Experts available now in Live!

Get 1:1 Help Now