Take a webcam picture from the command line?

Share uncovered secrets, useful notes, guides and hacks!

Take a webcam picture from the command line?

Postby earobinson » Sat Feb 02, 2008 1:59 pm

Is there any command to take a picture with the webcam? or a python program I can write.

Thanks.
earobinson
 
Posts: 1
Joined: Sat Feb 02, 2008 1:55 pm

Re: Take a webcam picture from the command line?

Postby clash » Tue Feb 05, 2008 11:47 am

clash
 
Posts: 11
Joined: Tue Jan 22, 2008 7:21 pm

Re: Take a webcam picture from the command line?

Postby kenziem » Wed Feb 13, 2008 10:51 pm

I loaded to motion detection and quickly filled /tmp
./go starts it but there doesn't seem to be a way to stop short of

ps aux | grep motion
then kill the process
kenziem
 
Posts: 5
Joined: Sun Feb 10, 2008 10:53 pm

Re: Take a webcam picture from the command line?

Postby BobUgh » Thu Aug 28, 2008 6:38 pm

I know this post is old, but here is a link especially if one wants to take a picture from the terminal process or shell or bash script, using gst Gstreamer.

http://wiki.laptop.org/go/Programming_the_camera

From the web page, I haven't verified that it works or is current:

First, let's see the quickest way we can capture a still image from the camera--using a GStreamer command-line tool:

gst-launch-0.10 v4l2src ! ffmpegcolorspace ! pngenc ! filesink location=foo.png
...


It goes on to explain what is happening, how to do it with python, and more.
BobUgh
 
Posts: 9
Joined: Thu Aug 28, 2008 3:36 pm

Re: Take a webcam picture from the command line?

Postby jchapel » Sat Oct 11, 2008 6:59 am

Hi this is nice discussing about web cam .I am interested to know new things about the web cam.I think it has many advantages and many disadvantages.I use only for advantage my son is in Uk so i used it fro seeing him.I feel very happy as he was with me.
....................................................
James Chapel
jchapel
 
Posts: 2
Joined: Sat Aug 16, 2008 2:29 am


Return to Tips, Tricks & Tutorials

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron