Active Topics

 


Reply
Thread Tools
Posts: 224 | Thanked: 107 times | Joined on Aug 2009
#11
thanks folks, ended up going with the facebook effect, but next time...
 
R-R's Avatar
Posts: 739 | Thanked: 242 times | Joined on Sep 2007 @ Montreal
#12
Originally Posted by qole View Post
Code:
sleep 5 s
gst-launch v4l2src ! ffmpegcolorspace ! pngenc ! filesink location=$1.png
.
Funny how sleep 5 s doesn't work on a desktop i thought it was a mistake as it should just read "sleep 5" but works on the n900... weird version :-)
 
Posts: 59 | Thanked: 71 times | Joined on Sep 2009 @ Brazil
#13
I think jpegenc is much faster - sometimes the image is captured in just 2s.

I wrote a small intervalometer for the N900 in Perl - you might take a look if you are interested.
 

The Following User Says Thank You to Ricardo For This Useful Post:
Posts: 486 | Thanked: 251 times | Joined on Oct 2009
#14
Originally Posted by R-R View Post
Funny how sleep 5 s doesn't work on a desktop i thought it was a mistake as it should just read "sleep 5" but works on the n900... weird version :-)
But sleep 5s (or sleep 1m), no space between number and units, does work in destop linux, but not on n900. I think the n900 ignores the second argument. Try sleep 1 m on the n900.
 

The Following User Says Thank You to j.s For This Useful Post:
schettj's Avatar
Posts: 501 | Thanked: 292 times | Joined on Nov 2009
#15
sleep is provided via busybox on the n900, so it's not the standard *nix sleep, it's the busybox version.
 
Posts: 486 | Thanked: 251 times | Joined on Oct 2009
#16
Originally Posted by schettj View Post
sleep is provided via busybox on the n900, so it's not the standard *nix sleep, it's the busybox version.
My point was that the " s" in qole's examples
sleep 1 s
is superfluous at best. The n900 busybox sleep ignores it and it is gratuitously incompatible with standard sleep.

In addition, the busybox sleep for at least one 2008 distribution for the openmoko freerunner handles commands like
sleep 5s
sleep 1m
correctly.
 
Posts: 125 | Thanked: 108 times | Joined on Feb 2010
#17
Originally Posted by qole View Post
So: first rig up some kind of a tripod system. Then take a picture of the scene with the camera app, with the flash disabled. Finally, run a little script that waits 5 or 10 seconds then takes a picture, something like

Code:
sleep 5 
gst-launch v4l2src ! ffmpegcolorspace ! pngenc ! filesink location=$1.png
Ideally, you should add a gstreamer command line at the end to play the shutter sound, so you know the photo has been taken...
I tried this, but got error
erroneous pipeline: no element "pngenc"

what to do?
 
Posts: 89 | Thanked: 6 times | Joined on Feb 2010
#18
Hello,

I'm developing an application that will require to take a picture from the front camera. I'm testing it using the gstreamer on video1, but the picture is completely black. I test my front camera using that Mirror application and it's working great.

How to take a legible picture from front camera using gstreamer?
 
Posts: 89 | Thanked: 6 times | Joined on Feb 2010
#19
No suggestions about how to take a picture legible? My pictures using this command line is completely black....
 
Posts: 172 | Thanked: 170 times | Joined on Jan 2010 @ Sweden
#20
Just a tip: If anyone is getting:

ERROR: pipeline could not be constructed: no element 'v412src'.

(or 'v412camsrc')

you have mistyped an 'l' as a '1' (i.e. you wrote the number '1' when it should have been the small caps letter 'l')

The correct spelling is: v4l2src, where the character after '4' is the letter 'l'
 

The Following 2 Users Say Thank You to stefanmohl For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 09:09.