PDA

View Full Version : Web cam server to run on FreeBSD



amorphic8
09-21-2004, 06:37 PM
I am trying to find a professional solution that will allow me to serve a live streaming webcam from my FreeBSD server.

I say professional, because I need to handle an audience of somewhere between 5 and 50 simultaneous visitors; I do not want to stream it off of the machine that has the camera connected to it.

I have scoured the web and found pitifuly more than adult webcam 'communities' and cheap so-called professional web cam software that usually crashes at least once in each 2 hour session.

Here is what I am trying to do:
I have a client for whom I am building a subcription based pay site. On the site we wish to have a live webcam feed that members can tune into. At this point we have no idea how many simultaneous viewers to expect; but until the stats are in, I would like to at least be able to handle 10-20 simultaneous viewers with a possibility of expanding later.

The client will be at home using her DV cam from a win XP box, and the site will be hosted on a FreeBSD server. I want to prevent access to the cam from anyone who is not logged-in to the site as a member.

I have tried:
Surveyor.com's webcam sat and satcam package but they were very slow in returning technical questions and not of much help at all.
webcamXP - works fine, until it crashes, but I can't protect the stream. Since the applet is served off of the computer with the cam, anyone can view the source code, then copy the URL to the applet, effectively building into thier own page.

I have also looked at a few others in the <$200 price range and each had similar 'quirks' or problems.

My 'research' has shown that many sites that are similar in purpose and design to this one use software from Emulive.com that seems to be 'professional.' It is secure, but supporting up to 5 streams is $499 per year; moving up to 10 streams is about $250 more, and up from there.

So it's not cheap, but that's ok becuase it is secure and I have seen it working well in many other places.

Problem is, thier server software is designed for Windows. As I said I am using FreeBSD. The Emulive salesman turned me onto a site called VMware.com that sells software that can run a 'virtual windows machine' on my BSD server, but thier packages are quite expensive; furthermore I don't know which one I would even need.

I am really frustrated. It seems impossible to find any good information regarding streaming webcams on a UNIX server; furthermore, finding any information about how the whole thing is supposed to work is also scant.

I am not afraid to shell out $$ for the right solution, but I don't want to go mucking around with expensive virtual machines or installing unstable cheap server software on my web server as I also host to a significant number of other sites and don't want to screw things up.

If anyone can provide any information about good quality web cam software or information aobut webcam streaming in general so that I can at least have a better idea of how to eveluate commercial products I would appreciate it.

I have been able to teach myself everything from basic HTML to PHP to Flash Actionscript, UNIX, Javascript, etc from books, forums, and websites...but for months now I have been looking for reliable information about web cams and have come up virtually empty.

Even pointing me in the direction of another forum, website, or book would be helpful...


PLEASE help. Anyone.

thanks.

speed
09-22-2004, 05:08 AM
Have you looked at Flash Communications Server (http://www.macromedia.com/software/flashcom/)?

I know there is support for Linux but I don't know about FreeBSD, that's all I can think of at the moment.

amorphic8
10-12-2004, 03:52 PM
thanks for the info..
I have researched the Flash Comm Server and BOY! it is expensive.

Not the solution I was looking for.

paulhiles
10-12-2004, 06:29 PM
Hi amorphic8,

Have you seen the thread in IT Discussion on streaming audio (http://www.webproworld.com/viewtopic.php?t=29845). I posted a few promising looking links in that thread. If you want me to move this thread into IT discussion, just let me know.

Paul

rays2004
12-05-2004, 01:01 PM
I think the quickest solution for you is FTP push. push with a 2 sec. timer jpeg compressed cam frames and let your applet dL it every 2 secs.
But, Trust me this is not going to give you a good frame rate. I am on my 4th webcam project, I have tried ftp push and never got good results. every time I used an intermediate windows service running on w2k+ .

I am not a java programmer . I wonder, If someone can run a program with listening socket(s) on free bsd (with java servelet or some c++ ) it can be achieved. there must be some limits on number of sockets that can be opened . I had a hard time with winsock on windows with 16+ connections until I used async. now I can connect to 200+ chatters and service never fails, it keeps running for months unless I reboot the server.

The job of my windows service is just to forward the packets from source to destiny in real time. my client program(s) are well written and tested .

If somebody knows such a packet forwarding method for linux or free BSD let me also know here.

Ray

amorphic8
01-19-2005, 10:42 PM
Thanks for your helpful comments. I was afraid it may be difficult.

I was considering Push as you suggested, but I quickly see the limitations of this approach.

My client has backed off of the project a bit due to some exteraneous issues so although I posted this long ago, I haven't finished the project yet.

I am probably going to go with some type of service...might I ask how you have done your web cam projects?

Thanks again for your post.