AnsweredAssumed Answered

Gstreamer1.0 with opencv plugin enabled

Question asked by frenzis on Nov 5, 2014
Latest reply on Nov 6, 2014 by Bio_TICFSL

Hi, I would like to use gstreamer to capture a video from USB camera, process it with opencv and then send it to udpsink. I'm using a freescale's iMX6 BSP Yocto and I downloaded the source code from Freescale/fsl-community-bsp-platform · GitHub (daisy). The local.conf is the following:

 

BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}"

PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}"

MACHINE ??= 'imx6qsabresd'

DISTRO ?= 'poky'

PACKAGE_CLASSES ?= "package_rpm"

EXTRA_IMAGE_FEATURES = "debug-tweaks"

USER_CLASSES ?= "buildstats image-mklibs image-prelink"

PATCHRESOLVE = "noop"

BB_DISKMON_DIRS = "\

    STOPTASKS,${TMPDIR},1G,100K \

    STOPTASKS,${DL_DIR},1G,100K \

    STOPTASKS,${SSTATE_DIR},1G,100K \

    ABORT,${TMPDIR},100M,1K \

    ABORT,${DL_DIR},100M,1K \

    ABORT,${SSTATE_DIR},100M,1K"

PACKAGECONFIG_pn-qemu-native = "sdl"

PACKAGECONFIG_pn-nativesdk-qemu = "sdl"

ASSUME_PROVIDED += "libsdl-native"

CONF_VERSION = "1"

 

BB_NUMBER_THREADS = '4'

PARALLEL_MAKE = '-j 4'

 

DL_DIR ?= "${BSPDIR}/downloads/"

ACCEPT_FSL_EULA = "1"

 

LICENSE_FLAGS_WHITELIST = "commercial"

 

#Opencv

CORE_IMAGE_EXTRA_INSTALL += "gpu-viv-bin-mx6q gpu-viv-bin-mx6q-dev v4l-utils"

CORE_IMAGE_EXTRA_INSTALL += "libopencv-core-dev libopencv-highgui-dev libopencv-imgproc-dev libopencv-objdetect-dev libopencv-ml-dev"

 

#Gstreamer

CORE_IMAGE_EXTRA_INSTALL += "gstreamer1.0 gstreamer1.0-plugins-base-meta gstreamer1.0-libav gstreamer1.0-omx gstreamer1.0-plugins-bad-meta gstreamer1.0-plugins-good-meta gstreamer1.0-plugins-ugly-meta gstreamer1.0-plugins-imx-meta"

 

PACKAGECONFIG_append_pn_gstreamer1.0-plugins-bad = " opencv"

PACKAGECONFIG_pn_gstreamer1.0-plugins-ugly += "x264"

 

EXTRA_IMAGE_FEATURES += "tools-sdk ssh-server-openssh dev-pkgs"

 

Running

bitbake core-image-base

I'm able to create a rootfs with gstreamer and opecv libraries but when I run

gst-inspect-1.0 | grep opencv

I get anything. How can I add opencv plugin for gstreamer? Any ideas?

Thanks

Outcomes