hi list,
Just getting started with gstreamer (but I've used v4l2 directly alot). I read the documentation for the v4l2src plugin and so I tried to run the example gst-launch command: gst-launch-0.10 v4l2src ! xvimagesink and gst-launch-0.10 v4l2src ! jpegdec ! xvimagesink but in both cases I get this error: -------------------------------- (gst-launch-0.10:6900): GLib-WARNING **: g_set_prgname() called multiple times Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video0' cannot capture at 1280x960 Additional debug info: gstv4l2object.c(1854): gst_v4l2_object_set_format (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Call to S_FMT failed for YUYV @ 1280x960: Input/output error ERROR: pipeline doesn't want to preroll. Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... Freeing pipeline ... ------------------------------------ I've tried manually telling it what resolution to use, but they all fail. I know this camera works, because it run with guvciew with no problems. This is what lspci says about the camera: Bus 001 Device 002: ID 046d:08ca Logitech, Inc. Mic (Fusion) uname -a Linux Tool 2.6.31-gentoo-r6 #7 SMP PREEMPT Sat Feb 20 13:32:41 EST 2010 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ AuthenticAMD GNU/Linux [I--] [ ] media-libs/gstreamer-0.10.24 (0.10) [I--] [ ] media-plugins/gst-plugins-v4l2-0.10.16 (0.10) $ zcat /proc/config.gz | grep V4L CONFIG_VIDEO_V4L2_COMMON=y # CONFIG_VIDEO_ALLOW_V4L1 is not set # CONFIG_VIDEO_V4L1_COMPAT is not set CONFIG_VIDEO_V4L2=y CONFIG_V4L_USB_DRIVERS=y I also tried on another computer (OpenSUSE, not gentoo) with gstreamer 0.10.21 and v4l2src 0.10.10-3.22.1 (whatever version that is) and that same camera (plus a few others) work just fine. I'm not sure why this is happening, I installed gstreamer out of package management so I assumed it was setup properly (ie, all kernel settings are there) and if it worked in version 10.21 then 10.24 should also work. I'm trying not to assume anything anymore. If anybody knows what's going on or if more information is needed I can post it or try any ideas. Also, please CC everybody on this message, as this concerns a few people. thanks, Christopher. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Am 05.03.2010 01:55, schrieb Christopher Harvey:
> hi list, > Just getting started with gstreamer (but I've used v4l2 directly alot). I read > the documentation for the v4l2src plugin and so I tried to run the example > gst-launch command: > > gst-launch-0.10 v4l2src ! xvimagesink > and > gst-launch-0.10 v4l2src ! jpegdec ! xvimagesink > > but in both cases I get this error: > -------------------------------- > (gst-launch-0.10:6900): GLib-WARNING **: g_set_prgname() called multiple times > Setting pipeline to PAUSED ... > Pipeline is live and does not need PREROLL ... > ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device > '/dev/video0' cannot capture at 1280x960 > Additional debug info: > gstv4l2object.c(1854): gst_v4l2_object_set_format (): > /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: > Call to S_FMT failed for YUYV @ 1280x960: Input/output error > ERROR: pipeline doesn't want to preroll. > Setting pipeline to PAUSED ... > Setting pipeline to READY ... > Setting pipeline to NULL ... > Freeing pipeline ... > ------------------------------------ > I've tried manually telling it what resolution to use, but they all fail. I > know this camera works, because it run with guvciew with no problems. The output of v4l-info would be interesting. In case of a driver issue you can try your luck with: LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so gst-launch-0.10 v4l2src ! xvimagesink Stefan > > This is what lspci says about the camera: > Bus 001 Device 002: ID 046d:08ca Logitech, Inc. Mic (Fusion) > > uname -a > Linux Tool 2.6.31-gentoo-r6 #7 SMP PREEMPT Sat Feb 20 13:32:41 EST 2010 x86_64 > AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ AuthenticAMD GNU/Linux > > [I--] [ ] media-libs/gstreamer-0.10.24 (0.10) > [I--] [ ] media-plugins/gst-plugins-v4l2-0.10.16 (0.10) > > $ zcat /proc/config.gz | grep V4L > CONFIG_VIDEO_V4L2_COMMON=y > # CONFIG_VIDEO_ALLOW_V4L1 is not set > # CONFIG_VIDEO_V4L1_COMPAT is not set > CONFIG_VIDEO_V4L2=y > CONFIG_V4L_USB_DRIVERS=y > > I also tried on another computer (OpenSUSE, not gentoo) > with gstreamer 0.10.21 > and v4l2src 0.10.10-3.22.1 (whatever version that is) > and that same camera (plus a few others) work just fine. > > I'm not sure why this is happening, I installed gstreamer out of package > management so I assumed it was setup properly (ie, all kernel settings are > there) and if it worked in version 10.21 then 10.24 should also work. I'm > trying not to assume anything anymore. If anybody knows what's going on or if > more information is needed I can post it or try any ideas. > > Also, please CC everybody on this message, as this concerns a few people. > > thanks, > Christopher. > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |