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 16 Apr 2014, 03:59
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
Ucview Webcam Capture
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [38 Posts]   Goto page: 1, 2, 3 Next
Author Message
jemimah


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

PostPosted: Tue 09 Feb 2010, 21:09    Post subject:  Ucview Webcam Capture  

This is a small and nice program for capturing images and video from a webcam. The UI is scalable and well designed - perfect for netbooks.

It has brightness and contrast controls, supports multiple images formats, time lapse capture, and also raw AVI video. Originally it had Ogg Theora encoding support, but the encoder crashed on anything larger than postage stamp size video, so I removed it.

Gxine won't play raw avi, so I've included a really basic ffmpeg front end so you can convert your video into something that will play. To make this work, you need to select UYVY in the ColorFormat Preferences - otherwise Ffmpeg won't know what to do the the raw video either.

Ffmpeg experts, please post any tips you know to convert the video into a usable format. I haven't yet figured out how to specify the frame-rate or how to get the sound to play.

The unicap pet has Ucview with the required unicap libraries. This program depends on gconf. I have included the gconf-dbus pet, packaged by Disciple, here. Ucview should work if you install all attached pets. I've only tested on 4.3.1, so I'm not sure how well it'll work on other versions.
ffmpeg.jpg
 Description   converting from avi to avi will work just fine
 Filesize   59.62 KB
 Viewed   7594 Time(s)

ffmpeg.jpg

ucview.jpg
 Description   
 Filesize   52 KB
 Viewed   7529 Time(s)

ucview.jpg

unicap-0.9.5-i486.pet
Description 
pet

 Download 
Filename  unicap-0.9.5-i486.pet 
Filesize  234.92 KB 
Downloaded  1859 Time(s) 
libxcb-1.0.pet
Description 
pet

 Download 
Filename  libxcb-1.0.pet 
Filesize  84.72 KB 
Downloaded  1510 Time(s) 
GConf-dbus-2.16.0-i486.pet
Description 
pet

 Download 
Filename  GConf-dbus-2.16.0-i486.pet 
Filesize  159.02 KB 
Downloaded  1487 Time(s) 
dbus-glib-0.82-i486.pet
Description 
pet

 Download 
Filename  dbus-glib-0.82-i486.pet 
Filesize  253.37 KB 
Downloaded  1386 Time(s) 
dbus-1.2.6.pet
Description 
pet

 Download 
Filename  dbus-1.2.6.pet 
Filesize  255.54 KB 
Downloaded  1418 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
pri


Joined: 09 Oct 2009
Posts: 330
Location: Bandung Indonesia

PostPosted: Tue 09 Feb 2010, 21:29    Post subject:  

Mr. Green sory.. i passed here and see your post....

i am not expert on ffmpeg, but i have a ffmpeg conventer MMC (Mobile Media Converter) it has a small script to change multimedia.

http://www.miksoft.net/mobileMediaConverter.htm

_________________
Learning by Doing
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
jemimah


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

PostPosted: Tue 09 Feb 2010, 21:46    Post subject:  

That's a nicer ffmpeg frontend than mine for sure. They sure don't make it easy to get the source though. Sadly, it fails to recognize the format in question.
Back to top
View user's profile Send private message Visit poster's website 
pri


Joined: 09 Oct 2009
Posts: 330
Location: Bandung Indonesia

PostPosted: Tue 09 Feb 2010, 22:11    Post subject:  

working like charming........

Mr. Green Mr. Green

do you see the expalined in the box ? it need libc6 on glibc-2.7

Cool owhh its a cool program

_________________
Learning by Doing
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
jemimah


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

PostPosted: Tue 09 Feb 2010, 22:30    Post subject:  

If I can figure out how to get and compile the source code, I will make a pet of it.
Back to top
View user's profile Send private message Visit poster's website 
pri


Joined: 09 Oct 2009
Posts: 330
Location: Bandung Indonesia

PostPosted: Wed 10 Feb 2010, 01:06    Post subject:  

yes... i will be waiting.....

i have pet from debian, but there was a strange thing.... it will be hang if converted media if runnig from menu, but work fine if command directly from command line or folder.

fuhh...... Embarassed compile not my skill.... i just have fun to play puzzle with puppy

_________________
Learning by Doing
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
pri


Joined: 09 Oct 2009
Posts: 330
Location: Bandung Indonesia

PostPosted: Wed 10 Feb 2010, 01:20    Post subject:  


_________________
Learning by Doing
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
amigo

Joined: 02 Apr 2007
Posts: 2165

PostPosted: Wed 10 Feb 2010, 09:35    Post subject:  

The sources for mmediac are in a bazaar repo, so you'll need bazaar to dowmload them. Still, this appears to be a ruby script thingy, so you could manually download the files from here, maybe:
http://bazaar.launchpad.net/~netcyrax/mmediac/v.1.5.0/files
Back to top
View user's profile Send private message 
jemimah


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

PostPosted: Wed 10 Feb 2010, 09:51    Post subject:  

I must admit, I have no idea how to compile ruby. They managed to turn it into a binary somehow, but I don't see a build script in the repo.

I think I can make something at least as nice in gtkdialog. I'm really surprised it hasn't been done already. If nothing suitable can be found, perhaps I'll add it to my ever growing todo list.
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4133

PostPosted: Wed 10 Feb 2010, 23:30    Post subject:  

You could use woo-ff (gtkdialog ffmpeg converter) as a template for the conversions and these:
Here is a cheap way to do webcam shots
Code:
rxvt +sb -bg orange -geometry 80x2 -e ffmpeg -y -f video4linux2 -s qvga -i /dev/video0 ~/stream%d.jpeg


qvga can be vga ...
~/ can be any dir
jpeg can be whatever image format

careful though it will make a LOT of images unless you specify a lower frame rate (not sure the flag for that at the moment)

edit:
to take one image per second
-r 1
to take images for 3 seconds
-t 3

so this will give you 3 jpegs in your root directory at vga resolution
Code:
ffmpeg -y -r 1 -t 3 -f video4linux2 -s vga -i /dev/video0 ~/camshot%d.jpeg


similarly here is a cheap way to capture webcam video
rxvt +sb -bg orange -geometry 80x2 -e ffmpeg -y -f oss -i /dev/audio -f video4linux2 -s qvga -i /dev/video0 ~/a.avi

I think oss can be alsa?
qvga can be vga
recommend using avi as above and converting with woof to prevent lag due to trying to compress

And finally desktop capture (requires ffmpeg compiled with x11grab)
Code:
rxvt +sb -bg orange -geometry 80x2 -e ffmpeg -f oss -i /dev/audio -f x11grab -s 1200x800 -r 5 -i :0.0 x11-session.avi

I forget exactly how to find resolution - maybe grep xorg.conf for PreferredMode

_________________
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: Thu 11 Feb 2010, 00:00    Post subject:  

Woo-ff was exactly what I was looking for - Thank you!

For these other ffmpeg tricks, I don't suppose there's any way to get a live preview? It's nice to be able to see what you're recording...
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4133

PostPosted: Thu 11 Feb 2010, 00:16    Post subject:  

I guess you could open defaultmediaplayer to play the file as it is being recorded

Edit:
the script will stop on ffmpeg unless you use the "&"
ffmpeg .... &
defaultmediaplayer $DIR/$FILE

I was making some changes to woo-ff to fix up some hacks, but haven't tested the changes yet... here it is though if you want it for reference
woo-ff.gz
Description 
gz

 Download 
Filename  woo-ff.gz 
Filesize  4.12 KB 
Downloaded  613 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4133

PostPosted: Thu 11 Feb 2010, 00:40    Post subject:  

pri wrote:
yes... i will be waiting.....

i have pet from debian, but there was a strange thing.... it will be hang if converted media if runnig from menu, but work fine if command directly from command line or folder.

fuhh...... Embarassed compile not my skill.... i just have fun to play puzzle with puppy


when this happens open the .desktop file in /usr/share/applications and delete any % parameters after the executable (jwm does not handle them well)

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
pri


Joined: 09 Oct 2009
Posts: 330
Location: Bandung Indonesia

PostPosted: Thu 11 Feb 2010, 04:14    Post subject:  

technosaurus :

http://www.4shared.com/file/219581609/671b4da/MMC.html

Quote:
[Desktop Entry]
Type=Application
Name=Mobile Media Converter
Comment=ffmpeg GUI for converting between desktop and mobile phone formats.
Exec=MobileMediaConverter
Icon=mmc.png
Categories=AudioVideo;Audio;Video;AudioVideoEditing;
MimeType=audio/vorbis;audio/x-mp3;audio/x-ms-wma;audio/x-vorbis;audio/x-wav;video/x-ms-asf;audio/ogg;audio/3gpp;audio/AMR;audio/AMR-WB;video/3gpp;video/flv;video/mpeg;video/msvideo;video/x-mpeg;video/x-ms-asf;video/x-ms-wmv;video/quicktime;audio/x-realaudio;audio/x-pn-realaudio;video/vnd.rn-realvideo;audio/mp4a-latm;video/x-m4v;video/mp4


i doesnt seem strange thing..

_________________
Learning by Doing
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
JustGreg

Joined: 24 May 2005
Posts: 653
Location: Connecticut USA

PostPosted: Thu 11 Feb 2010, 20:12    Post subject:  

Thanks Jemimah, the Ucview works well on my Acer Aspire One net boot with an Acer Crystal Eye Web Cam. It does work well. Ucview will replace lucview. Your interface is much easier to use and understand. Thank for your efforts!

Yes, technosaurus, oss is the alsa audio stream. I did something similar with the EeePC for audio with ffmpeg. One problem that casue much fustration for me, was the need to turn on the microphone boast in alsamixer. The other headache is those system with an internal microphone have two microphones. Sometimes they are call front and back or internal and external. Getting the correct microphone is a problem.

I did try to record both audio and video and was successful on my Aspire one Here is the code that I used:
Code:
#!/bin/sh
ffmpeg -y -f oss -i /dev/audio -f video4linux2 -s vga -i /dev/video0 /root/test.mpg


I also found the microphone boast in alsamixer need to be increased (to the 50 mark) for good audio. I did use an external microphone also, so, the external microphone had to be selected in alsamixer. I hope this helps.

_________________
Enjoy life, Just Greg
Live Well, Laugh Often, Love Much
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 3 [38 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0774s ][ Queries: 13 (0.0072s) ][ GZIP on ]