views:

68

answers:

4

Hi,

I was wandering how could capture video from the built-in camera of my netbook, under Linux, ubuntu. The programming language could is not an issue (but I prefer Java or the old school c)

Thanks in advance for your answers, Gian

+1  A: 

You can look into OpenCV, for C/C++. It is very powerful.

Alexander Rafferty
anything in java?
gvalero87
Hey, I took a look over OpenCV and it looks a really big API, more for manipulating images. I just want to capture video from the built-in camera on my gateway netbook which after I would be streaming it over the internet
gvalero87
@gvalero87 OpenCV will do what you want, but from my experience using it in Windows instead of Linux is easier because you can use the EmguCV wrapper and develop in C#.
typoknig
@typoknig Yeah I even found some other libraries for windows. The thing is that I specially need it for Linux
gvalero87
A: 

If you dont mind using flash I would write it in flex, its very easy and you can write it to work on pretty much every Operating System (except ipad). You can use this code as a starting example: http://www.red5-recorder.com/

Also you can use red5 itself as a nice open source streaming server. You shouldnt need to buy anything for any of this, although much easier to code with flex builder, I think you can get a 60 day trial.

Joelio
It says that is for "your website". Actually i don't need it for a website. I just want to capture from the built-in camera and stream over a socket. is red5 going to help me?
gvalero87
@gvalero87, I think not. Also, Flash is evil, didn't you get the memo? ;-)
Amigable Clark Kant
+1  A: 

For Java check out the Java Media Framework. It hasn't been updated in some time, but can be used to capture video. I used it a while ago to write some teleconferencing type stuff.

jay.lee
yeah I got that but isn't it a problem that it hasn't been update for such a long time?
gvalero87
It was still out of development when I was using it and I didn't run into any problems. Everything I used worked properly and was well documented.
jay.lee
A: 

In Linux the canonical way of talking to webcams are via v4l.

Here is a library called libfg for a simple high level C API on top of v4l.

Amigable Clark Kant