| Author |
Message |
jemimah

Joined: 26 Aug 2009 Posts: 4309 Location: Tampa, FL
|
Posted: Tue 20 Oct 2009, 01:26 Post subject:
Webcam Snapshot Subject description: Take a picture of yourself with your webcam |
|
This is a tiny application that will probably allow you to take pictures with a UVC webcam such as those that are built into laptops and netbooks. The gui is a ripoff of the Screencap utility and works exactly the same way. It has no preview feature, so each picture is a surprise. The upside is that it has no extra dependencies and doesn't take up much space. I will probably add a time-lapse photography feature later and maybe a script that can phone home with pictures the thief if your laptop gets stolen.
Update: I've uploaded version .2. I changed the backend from uvccapture to fswebcam which should take better pictures and support a wider variety of hardware. It now requires libgd so I'm leaving version 1 up in case you prefer the smaller size.
| Description |
|

Download |
| Filename |
libgd2-2.0.36-i486.pet |
| Filesize |
87.93 KB |
| Downloaded |
537 Time(s) |
| Description |
|

Download |
| Filename |
webcamsnapshot-.2.pet |
| Filesize |
73.81 KB |
| Downloaded |
525 Time(s) |
| Description |
|
| Filesize |
22.01 KB |
| Viewed |
2215 Time(s) |

|
| Description |
|

Download |
| Filename |
webcamsnapshot-.1.pet |
| Filesize |
8.72 KB |
| Downloaded |
406 Time(s) |
Last edited by jemimah on Tue 27 Oct 2009, 00:58; edited 1 time in total
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Tue 20 Oct 2009, 04:30 Post subject:
|
|
| Quote: | | I will probably add a time-lapse photography feature later and maybe a script that can phone home with pictures the thief if your laptop gets stolen |
good plan
tried it on my logitech webcam - the light went on
and then a dialog saying it had failed
May try later with my netbook
Many thanks
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 7037 Location: qld
|
Posted: Tue 20 Oct 2009, 05:56 Post subject:
|
|
jemimah
Thanks for this. Working fine on my 701SD.
Suggestion: Ability to choose the save dir.
Cheers
| Description |
|
| Filesize |
214.66 KB |
| Viewed |
612 Time(s) |

|
_________________ keep the faith .. 
|
|
Back to top
|
|
 |
craftybear

Joined: 16 Jun 2009 Posts: 65 Location: East Coast Oz in God's Country
|
Posted: Tue 20 Oct 2009, 06:39 Post subject:
|
|
Ahhhh! It's an Alienjeff clone!!!!
_________________ I CARE ... I just don't care about you!
|
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 7037 Location: qld
|
Posted: Tue 20 Oct 2009, 06:59 Post subject:
|
|
| craftybear wrote: | Ahhhh! It's an Alienjeff clone!!!!  |
...just prettier..
_________________ keep the faith .. 
|
|
Back to top
|
|
 |
gposil

Joined: 06 Apr 2009 Posts: 1305 Location: Stanthorpe (The Granite Belt), QLD, Australia
|
Posted: Tue 20 Oct 2009, 07:35 Post subject:
|
|
For those using dpup, the webcam snapshot is available in Luvcview Webcam Viewer...
Cheers
_________________
Dpup Home
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3845
|
Posted: Tue 20 Oct 2009, 07:43 Post subject:
|
|
for video:
| Code: | | ffmpeg -y -f oss -i /dev/audio -f video4linux2 -s qvga -i /dev/video0 ~/a.avi |
it will save to a.avi in your home directory (/root)
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
jemimah

Joined: 26 Aug 2009 Posts: 4309 Location: Tampa, FL
|
Posted: Tue 20 Oct 2009, 10:08 Post subject:
|
|
Lobster, you might be able to get it to work by messing with the uvccapture command on the command line. I made the arguments that worked on my EEE to be the defaults but other cameras may work better with different args.
01Micko, you're supposed to choose the save directory by choosing SaveAs from your image viewer once you get a photo you like. Just like the screencap command.
Technosaurus, that is really cool! I think I will add a button for that.
I'm working on porting UCview or at least Unicap with a light frontend. I tried Luvcview, but didn't like the UI, and I wasn't sure what to do with a pnm file on puppy. Guvcview was a lot better but the windows seemed a bit too large to be comfortable on a netbook. I guess I have to find out if SDL or Unicap is a bigger library, though SDL opens up the possibility of adding some cool games. I'll probably post packages for both UCview and Guvcview at some point if nobody has already.
|
|
Back to top
|
|
 |
gposil

Joined: 06 Apr 2009 Posts: 1305 Location: Stanthorpe (The Granite Belt), QLD, Australia
|
Posted: Tue 20 Oct 2009, 10:28 Post subject:
|
|
A couple of points....uvc in any incarnation, Guvcview, Luvcview, Ucview...etc only work for v4l2 compliant devices, a lot of standalone web cams are v4l and will not work...Most if not all laptop built-in webcams are v4l2.
Luvcview, which dpup uses, creates snapshots in pnm format, which all modern flavours of linux(Puppy included) can convert to png, jpg, tiff or ps/pdf with the pnmto???? commands in /usr/bin. Luvcview also captures video/audio very nicely as well.
_________________
Dpup Home
|
|
Back to top
|
|
 |
jemimah

Joined: 26 Aug 2009 Posts: 4309 Location: Tampa, FL
|
Posted: Tue 27 Oct 2009, 00:59 Post subject:
|
|
Version .2 is out. Give it a try if version .1 didn't work well for you.
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Tue 27 Oct 2009, 05:15 Post subject:
|
|
| Quote: | | Technosaurus, that is really cool! I think I will add a button for that. |
[Lobster faints] Worked for me too - not audio though
Even now I am amazed by Puppy included progs
that seem to be Tardis like included . . .
Will you add a ffmpeg button jemimah? Many thanks for suggests
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
jemimah

Joined: 26 Aug 2009 Posts: 4309 Location: Tampa, FL
|
Posted: Tue 27 Oct 2009, 09:50 Post subject:
|
|
I need to do a little research on the ffmpeg options and then I'll probably make a separate webcam-capture UI. I haven't had the chance to see just how large Gucview and dependencies are; that may be a nicer option.
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3845
|
Posted: Tue 27 Oct 2009, 11:21 Post subject:
|
|
if audio doesn't work first check that the mic volume is not turned down or muted and if that doesn't work you may try replacing 'oss' with 'alsa'
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
|