Hello! I'm looking for gstreamer-plugins-bad package configuration to have dtls ON for gstreamer. I'm building custom yocto project distro for specific board.
To enable DTLS on gstreamer-plugins-bad I suppose I have to enable on my local.conf:
...
MAGE_INSTALL:append = " gstreamer1.0-plugins-bad"
...
also on the recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend added:
...
PACKAGECONFIG:append = " dtls"
...
During build it's OK, but on the destination device with yocto NO dtlsenc/dtlsdec occur. I can check it with
gst-inspect-1.0 |grep dtls
Platform: VAR-SOM-i.MX8X
OS version: poky
Kernel: Kirkstone-5.15.2
Can someone support me on this question? And how to predict which packages need to install for another package configuration, does that dependencies described somewhere?
Thanks in advance, Anton Kalistratov
Solved! Go to Solution.
Hi , I've came across the same error and I found a workaround:
In my gstreamer1.0-plugins-bad recipe i see the following:
PACKAGECONFIG_REMOVE ?= " \
dtls vulkan \
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '', 'gl', d)} \
"
PACKAGECONFIG:remove = "${PACKAGECONFIG_REMOVE}"
Which seems to forbid to build the dtls elements.
In a .bbappend file I therefore altered the PACKAGECONFIG_REMOVE variable.
Surely there is a reason why dtls is explicitly disabled but it works for me...
I also had another issue with the element where it couldn't find some srtp element, so I also added srtp to the PACKAGECONFIG which again failed to run as it missed the libsrtp.so on the image.
The reason I found is that PACKAGECONFIG[srtp] = "-Dsrtp=enabled,-Dsrtp=disabled,libsrtp" lists libsrtp in the wrong place.
Should be PACKAGECONFIG[srtp] = "-Dsrtp=enabled,-Dsrtp=disabled,libsrtp,libsrtp" so libsrtp is also listed as a RDEPENDS.
Finally, my gstreamer1.0-plugins-bad_%.bbappend:
PACKAGECONFIG[srtp] = "-Dsrtp=enabled,-Dsrtp=disabled,libsrtp,libsrtp"
PACKAGECONFIG_REMOVE = " \
vulkan \
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '', 'gl', d)} \
"
PACKAGECONFIG:mx8mp-nxp-bsp += "dtls srtp"
(Edit: formatting)
(Edit 26. Sept.: The PACKAGECONFIG was actually wrong as we saw, fixed it)
Hi , I've came across the same error and I found a workaround:
In my gstreamer1.0-plugins-bad recipe i see the following:
PACKAGECONFIG_REMOVE ?= " \
dtls vulkan \
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '', 'gl', d)} \
"
PACKAGECONFIG:remove = "${PACKAGECONFIG_REMOVE}"
Which seems to forbid to build the dtls elements.
In a .bbappend file I therefore altered the PACKAGECONFIG_REMOVE variable.
Surely there is a reason why dtls is explicitly disabled but it works for me...
I also had another issue with the element where it couldn't find some srtp element, so I also added srtp to the PACKAGECONFIG which again failed to run as it missed the libsrtp.so on the image.
The reason I found is that PACKAGECONFIG[srtp] = "-Dsrtp=enabled,-Dsrtp=disabled,libsrtp" lists libsrtp in the wrong place.
Should be PACKAGECONFIG[srtp] = "-Dsrtp=enabled,-Dsrtp=disabled,libsrtp,libsrtp" so libsrtp is also listed as a RDEPENDS.
Finally, my gstreamer1.0-plugins-bad_%.bbappend:
PACKAGECONFIG[srtp] = "-Dsrtp=enabled,-Dsrtp=disabled,libsrtp,libsrtp"
PACKAGECONFIG_REMOVE = " \
vulkan \
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '', 'gl', d)} \
"
PACKAGECONFIG:mx8mp-nxp-bsp += "dtls srtp"
(Edit: formatting)
(Edit 26. Sept.: The PACKAGECONFIG was actually wrong as we saw, fixed it)
UPD. Also after build package config info returns no dtls:
$ bitbake -e gstreamer1.0-plugins-bad | grep PACKAGECONFIG=
PACKAGECONFIG=" orc bluez x11 wayland gl bz2 closedcaption curl dash hls openssl sbc smoothstreaming sndfile ttml uvch264 webp rsvg kms tinycompress gcrypt openjpeg opusparse rtmp sctp srt srtp tinyalsa v4l2codecs webrtc webrtcdsp zbar"