Author |
Message |
jemimah

Joined: 26 Aug 2009 Posts: 4309 Location: Tampa, FL
|
Posted: 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.
 |
Description |
converting from avi to avi will work just fine |
Filesize |
59.62 KB |
Viewed |
9713 Time(s) |

|
Description |
|
Filesize |
52 KB |
Viewed |
10645 Time(s) |

|
Description |
|

Download |
Filename |
libxcb-1.0.pet |
Filesize |
84.72 KB |
Downloaded |
2414 Time(s) |
Description |
|

Download |
Filename |
GConf-dbus-2.16.0-i486.pet |
Filesize |
159.02 KB |
Downloaded |
2386 Time(s) |
|
Back to top
|
|
 |
pri

Joined: 09 Oct 2009 Posts: 344 Location: Bandung Indonesia
|
Posted: Tue 09 Feb 2010, 21:29 Post subject:
|
|
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
|
|
 |
jemimah

Joined: 26 Aug 2009 Posts: 4309 Location: Tampa, FL
|
Posted: 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
|
|
 |
pri

Joined: 09 Oct 2009 Posts: 344 Location: Bandung Indonesia
|
Posted: Tue 09 Feb 2010, 22:11 Post subject:
|
|
working like charming........
do you see the expalined in the box ? it need libc6 on glibc-2.7
owhh its a cool program
_________________ Learning by Doing
|
Back to top
|
|
 |
jemimah

Joined: 26 Aug 2009 Posts: 4309 Location: Tampa, FL
|
Posted: 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
|
|
 |
pri

Joined: 09 Oct 2009 Posts: 344 Location: Bandung Indonesia
|
Posted: 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...... compile not my skill.... i just have fun to play puzzle with puppy
_________________ Learning by Doing
|
Back to top
|
|
 |
pri

Joined: 09 Oct 2009 Posts: 344 Location: Bandung Indonesia
|
Posted: Wed 10 Feb 2010, 01:20 Post subject:
|
|
_________________ Learning by Doing
|
Back to top
|
|
 |
amigo
Joined: 02 Apr 2007 Posts: 2647
|
Posted: 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
|
|
 |
jemimah

Joined: 26 Aug 2009 Posts: 4309 Location: Tampa, FL
|
Posted: 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
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4878 Location: Blue Springs, MO
|
Posted: 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
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
jemimah

Joined: 26 Aug 2009 Posts: 4309 Location: Tampa, FL
|
Posted: 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
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4878 Location: Blue Springs, MO
|
Posted: 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
Description |
|

Download |
Filename |
woo-ff.gz |
Filesize |
4.12 KB |
Downloaded |
1387 Time(s) |
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4878 Location: Blue Springs, MO
|
Posted: 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...... 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)
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
pri

Joined: 09 Oct 2009 Posts: 344 Location: Bandung Indonesia
|
Posted: 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
|
|
 |
JustGreg
Joined: 24 May 2005 Posts: 785 Location: Connecticut USA
|
Posted: 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
|
|
 |
|