Problems running gstreamer v4l2 on Yocto
Dear all,
I am trying to set up a USB webcam with Yocto using gstreamer. The camera is detected by my Yocto /Poky distro and tested with VLC (build with yocto).
I am using the following build
==
Build Configuration:
BB_VERSION = "1.22.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Ubuntu-14.04" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "odroid-xu" DISTRO = "poky" DISTRO_VERSION = "1.6.1" TUNE_FEATURES = "armv7a vfp neon" TARGET_FPU = "vfp-neon"
meta
meta-yocto = "daisy:87671f72e7459d5d5ddb37691354fab970c557ee"
meta-oe
meta-networking
meta-multimedia
meta-gnome = "daisy:d85b01997ce8cc354ccc53f97fdffc79cf2277d5" meta-odroid = "master:bbdf8273297e310736c48a7c6490c84fe1dea6d9" meta-ros = "master:f6ba83122674a80bc4beb03ebfc60ea003493ec0" meta-gumstix = "daisy:b160dd5ca424e0f8b76871187a76095b06af7d58" meta-dfki = "master:82995e78f5792a91af0a6ca28f2bc63ce0a904a9"
==
I execute the following command
gst-launch v4l2src device=/dev/video0 ! ffmpegcolorspace ! ximagesink
This works perfectly on my Ubuntu 14.04 laptop as well as on my Linaro Image (14.04) for my embedded system (using the same camera).
I have build all gstreamer-plugins-* with Yocto.
The very same command on my Yocto distro produces:
==
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video0' cannot capture at 32768x32768
Additional debug info:
/home/eich/odroid_xu/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gst-plugins-good/0.10.31-r8/gst-plugins-good-0.10.31/sys/v4l2/gstv4l2object.c(2212): gst_v4l2_object_set_format (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Call to S_FMT failed for UYVY @ 32768x32768: Invalid argument
==
Something wrong with the build config of gstreamer with Yocto?
Cheers,
Markus
Signature · 35 lines
Dr.-Ing. Markus Eich Senior Researcher Marine Inspection Robotics Space Robotics Besuchsadresse der Nebengeschäftstelle: DFKI GmbH Robotics Innovation Center Robert-Hooke-Straße 5 28359 Bremen, Germany Postadresse der Hauptgeschäftsstelle Standort Bremen: DFKI GmbH Robotics Innovation Center Robert-Hooke-Straße 1 28359 Bremen, Germany Tel.: +49 421 178 45-4105 Zentrale: +49 421 178 45-0 Fax: +49 421 178 45-4150 (Faxe bitte namentlich kennzeichnen) E-Mail: [email protected] Weitere Informationen: http://www.dfki.de/robotik ----------------------------------------------------------------------- Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes Amtsgericht Kaiserslautern, HRB 2313 Sitz der Gesellschaft: Kaiserslautern (HRB 2313) USt-Id.Nr.: DE 148646973 Steuernummer: 19/673/0060/3 -----------------------------------------------------------------------