Setting gstreamer capsfilter with OpenCV in c++
nevixa
guust at idportal.nl
Fri May 18 06:36:33 PDT 2012
With the Microsoft LifeCam Cinema (on Ubuntu) in guvcview I get 30fps on
1280x720. In my OpenCV program, I only get 10fps (only queryframe and
showimage, no image processing is done). I found out that it is a 'problem'
in gstreamer (https://bugzilla.gnome.org/show_bug.cgi?id=676093). A solution
is to set a capsfilter in gstreamer, in terminal I can do it like this:
gst-launch v4l2src device=/dev/video0 !
'video/x-raw-yuv,width=1280,height=720,framerate=30/1' ! xvimagesink
This works! The question is:
- How do I implement this in my c++/OpenCV program?
- Or is it possible to set gstreamer to always use this capsfilter to force
30 fps?
I already found this
http://stackoverflow.com/questions/6022423/mjpeg-streaming-and-decoding Q&A
, but I can't get it working with a webcam.
All ideas/sugestions would be really welcome!
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Setting-gstreamer-capsfilter-with-OpenCV-in-c-tp4644517.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list