Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 26 Nov 2014, 03:46
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Webcam Snapshot
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Tue 20 Oct 2009, 01:26    Post_subject:  Webcam Snapshot
Sub_title: 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.
libgd2-2.0.36-i486.pet
Description 
pet

 Download 
Filename  libgd2-2.0.36-i486.pet 
Filesize  87.93 KB 
Downloaded  597 Time(s) 
webcamsnapshot-.2.pet
Description 
pet

 Download 
Filename  webcamsnapshot-.2.pet 
Filesize  73.81 KB 
Downloaded  597 Time(s) 
webcam-snapshot.jpg
 Description   
 Filesize   22.01 KB
 Viewed   2468 Time(s)

webcam-snapshot.jpg

webcamsnapshot-.1.pet
Description 
pet

 Download 
Filename  webcamsnapshot-.1.pet 
Filesize  8.72 KB 
Downloaded  467 Time(s) 

Edited_time_total
Back to top
View user's profile Send_private_message Visit_website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: 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 Smile
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 Smile

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: Tue 20 Oct 2009, 05:56    Post_subject:  

jemimah

Thanks for this. Working fine on my 701SD.

Suggestion: Ability to choose the save dir. Smile

Cheers
snap.jpg
 Description   
 Filesize   214.66 KB
 Viewed   856 Time(s)

snap.jpg


_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
craftybear


Joined: 16 Jun 2009
Posts: 65
Location: East Coast Oz in God's Country

PostPosted: Tue 20 Oct 2009, 06:39    Post_subject:  

01micko wrote:
snap
Ahhhh! It's an Alienjeff clone!!!! Twisted Evil
_________________
I CARE ... I just don't care about you!
Back to top
View user's profile Send_private_message 
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: Tue 20 Oct 2009, 06:59    Post_subject:  

craftybear wrote:
01micko wrote:
snap
Ahhhh! It's an Alienjeff clone!!!! Twisted Evil

...just prettier..

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
gposil


Joined: 06 Apr 2009
Posts: 1305
Location: Stanthorpe (The Granite Belt), QLD, Australia

PostPosted: 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
View user's profile Send_private_message Visit_website MSNM 
technosaurus


Joined: 18 May 2008
Posts: 4379

PostPosted: 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)

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: 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
View user's profile Send_private_message Visit_website 
gposil


Joined: 06 Apr 2009
Posts: 1305
Location: Stanthorpe (The Granite Belt), QLD, Australia

PostPosted: 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
View user's profile Send_private_message Visit_website MSNM 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: 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
View user's profile Send_private_message Visit_website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: 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 Laughing
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 Wink

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: 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
View user's profile Send_private_message Visit_website 
technosaurus


Joined: 18 May 2008
Posts: 4379

PostPosted: 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'
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0766s ][ Queries: 12 (0.0084s) ][ GZIP on ]