element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
MaaXBoard Hardware Design How to include vp8enc for gstreamer on Maaxboard using the Kirkstone branch of Yocto?
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 2 replies
  • Answers 1 answer
  • Subscribers 323 subscribers
  • Views 872 views
  • Users 0 members are here
  • yocto
  • Gstreamer
  • maaxboard
Related

How to include vp8enc for gstreamer on Maaxboard using the Kirkstone branch of Yocto?

user1092
user1092 over 1 year ago

Hello,

I am new to Yocto and I am trying to learn how to configure it using the Maaxboard. I am working from the Kirkstone branch as this is the latest supported branch.

I am trying to include the vpx encoders from gstreamer1.0-plugins-good as these are not provided out the box. I have seen that the x264 codec has been included in the local.conf file as follows:

PACKAGECONFIG:pn-gstreamer1.0-plugins-ugly += "x264"

I have seen elsewhere that vp8enc can be included from the good plugins and so i added:

PACKAGECONFIG:pn-gstreamer1.0-plugins-good += "vpx"

However this results in:

ERROR: avnet-image-lite-1.0-r0 do_rootfs: Unable to install packages. Command '/media/user/Linux_Storage/yocto/maaxboard/build/tmp/work/maaxboard-poky-linux/avnet-image-lite/1.0-r0/recipe-sysroot-native/usr/bin/apt-get  install --allow-downgrades --allow-remove-essential --allow-change-held-packages --allow-unauthenticated --no-remove alsa-state apt base-passwd dos2unix dpkg expand-rootfs firmwared git gnupg hostapd inetutils libgpiod libgpiod-tools lrzsz openssh-sftp openssh-sftp-server packagegroup-base-extended packagegroup-base-wifi packagegroup-core-boot packagegroup-core-full-cmdline packagegroup-core-sdk packagegroup-core-ssh-openssh packagegroup-core-standalone-sdk-target packagegroup-core-tools-debug packagegroup-fsl-gstreamer1.0 packagegroup-fsl-gstreamer1.0-commercial packagegroup-fsl-gstreamer1.0-full packagegroup-fsl-tools-audio packagegroup-imx-isp packagegroup-imx-security packagegroup-tools-bluetooth parted powertop pulseaudio-server python3 python3-pip rsync run-postinsts shadow spitools tzdata v4l-utils weston-init weston-timer wireless-tools wpa-conf xz yavta' returned 100:
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 gstreamer1.0-plugins-good-lame : Depends: libmp3lame0 (>= 3.100) but it is not installable
 gstreamer1.0-plugins-good-mpg123 : Depends: mpg123 (>= 1.29.3) but it is not installable
 gstreamer1.0-plugins-good-soup : Depends: libsoup-2.4 but it is not installable
 gstreamer1.0-plugins-good-speex : Depends: libspeex1 (>= 1.2.0) but it is not installable
 gstreamer1.0-plugins-good-taglib : Depends: libtag1 (>= 1.12) but it is not installable
E: Unable to correct problems, you have held broken packages.

ERROR: Logfile of failure stored in: /media/user/Linux_Storage/yocto/maaxboard/build/tmp/work/maaxboard-poky-linux/avnet-image-lite/1.0-r0/temp/log.do_rootfs.467598
ERROR: Task (/media/user/Linux_Storage/yocto/sources/meta-maaxboard/images/avnet-image-lite.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6301 tasks of which 6300 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /media/user/Linux_Storage/yocto/sources/meta-maaxboard/images/avnet-image-lite.bb:do_rootfs
Summary: There was 1 WARNING message.
Summary: There was 1 ERROR message, returning a non-zero exit code.

I am unsure why these other plugins are getting added.

In a attempt to meet the dependencies I added the following to local.conf:

IMAGE_INSTALL:append = " speex"
IMAGE_INSTALL:append = " lame"
IMAGE_INSTALL:append = " mpg123"
IMAGE_INSTALL:append = " taglib"
IMAGE_INSTALL:append = " libsoup-2.4"

This however results in the following error:

ERROR: avnet-image-lite-1.0-r0 do_rootfs: Error executing a python function in exec_func_python() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:license_create_manifest(d)
     0003:
File: '/media/user/Linux_Storage/yocto/sources/poky/meta/classes/license_image.bbclass', lineno: 38, function: license_create_manifest
     0034:    pkg_dic = {}
     0035:    for pkg in sorted(image_list_installed_packages(d)):
     0036:        pkg_info = os.path.join(d.getVar('PKGDATA_DIR'),
     0037:                                'runtime-reverse', pkg)
 *** 0038:        pkg_name = os.path.basename(os.readlink(pkg_info))
     0039:
     0040:        pkg_dic[pkg_name] = oe.packagedata.read_pkgdatafile(pkg_info)
     0041:        if not "LICENSE" in pkg_dic[pkg_name].keys():
     0042:            pkg_lic_name = "LICENSE:" + pkg_name
Exception: FileNotFoundError: [Errno 2] No such file or directory: '/media/user/Linux_Storage/yocto/maaxboard/build/tmp/pkgdata/maaxboard/runtime-reverse/gstreamer1.0-plugins-good-cairo'

ERROR: Logfile of failure stored in: /media/user/Linux_Storage/yocto/maaxboard/build/tmp/work/maaxboard-poky-linux/avnet-image-lite/1.0-r0/temp/log.do_rootfs.469536
ERROR: Task (/media/user/Linux_Storage/yocto/sources/meta-maaxboard/images/avnet-image-lite.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6399 tasks of which 6398 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /media/user/Linux_Storage/yocto/sources/meta-maaxboard/images/avnet-image-lite.bb:do_rootfs
Summary: There was 1 WARNING message.
Summary: There was 1 ERROR message, returning a non-zero exit code.

I am unsure why this will not build or why these additional packages are being added.

Any help would be much appreciated.

  • Sign in to reply
  • Cancel

Top Replies

  • user1092
    user1092 over 1 year ago +2 suggested
    I have managed to include the vp8enc plugin for gstreamer using the following: PACKAGECONFIG:pn-gstreamer1.0-plugins-good += "cairo" PACKAGECONFIG:pn-gstreamer1.0-plugins-good += "flac" PACKAGECONFIG…
  • user1092
    0 user1092 over 1 year ago

    I have managed to include the vp8enc plugin for gstreamer using the following:

    PACKAGECONFIG:pn-gstreamer1.0-plugins-good += "cairo"
    PACKAGECONFIG:pn-gstreamer1.0-plugins-good += "flac"
    PACKAGECONFIG:pn-gstreamer1.0-plugins-good += "speex"
    PACKAGECONFIG:pn-gstreamer1.0-plugins-good += "soup"

    This is instead of the IMAGE_INSTALL:append lines.

    However, for some reason the v4lsrc plugin has now disappeared from the build.

    Comparing the manifest files of the two builds the vpx build adds:

    + gstreamer1.0-plugins-good-vpx

    + libvpx

    However the following were removed:

    - gstreamer1.0-plugins-good-gdkpixbuf

    - gstreamer1.0-plugins-good-jpeg

    - gstreamer1.0-plugins-good-lame

    - gstreamer1.0-plugins-good-mpg123

    - gstreamer1.0-plugins-good-png

    - gstreamer1.0-plugins-good-pulseaudio

    - gstreamer1.0-plugins-good-taglib

    - gstreamer1.0-plugins-good-video4linux2

    - libmp3lame0

    - libpulse-simple0

    - libtag1

    - mpg123

    I am unsure why video4linux2 was removed and even further confused as to why the plugins i had to add to build, due to dependencies, aren't even included.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • user1092
    0 user1092 over 1 year ago in reply to user1092

    Some more head scratching later I have managed to get it working.


    PACKAGECONFIG:pn-gstreamer1.0-plugins-good += "soup speex cairo flac gdkpixbuf jpeg lame mpg123 png pulseaudio taglib v4l2 vpx"

    IMAGE_INSTALL:append = " lame mpg123 libsoup-2.4 speex taglib v4l-utils pulseaudio"

    I had being trying to add v4l2 as video4linux2 as stated in the manifest, this wasn't recognised, but looking at the bb files I found the correct name.

    I'm still unsure why appending to the package configuration resulted in packages getting removed, or why audio plugins were required for a video codec.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube