pablacho has asked for the wisdom of the Perl Monks concerning the following question:
Hi there!,
I'm trying to capture a picture from a webcam while previewing the video. This is as simple as it sounds: I launch the program, I see myself on the screen, and whenever I see myself the best I capture that frame. Piece of cake.
Now, I could't be more wrong... I seems that there is not that much documentation about GStreamer in Perl, and this issue is giving me a LOT of trouble.
This is what i've tried so far: (I apologise for not pasting the actual code, as not only is a little messy but also I do not have it at hand)
With this translated to my perl program, i obtain a nice window for about 5 seconds (I added a timeout) and a beautifull copy of the first frame. (using multifilesink gives me about 25 pictures per second)v4l2src ! tee ! queue ! xvimagesink tee. ! queue ! videorate ! jpegenc ! filesink location=test.jpg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: GStreamer capturing video frame
by zentara (Cardinal) on Oct 12, 2012 at 15:39 UTC | |
by pablacho (Initiate) on Oct 12, 2012 at 16:12 UTC | |
by zentara (Cardinal) on Oct 12, 2012 at 19:18 UTC |