add Gstreamer 1.X for gst-omx support
v7 cover add Gstreamer 1.X for gst-omx support
This patch adds gst-omx support to buildroot. Thus, making it possible to use gstreamer applications which utilize hardware acceleration on OpenMAX supported systems.
To add gst-omx, libglib2 is bumped to 2.36.1 and gstreamer1 is added.
In addition, the patches include the libvpx library and enablement in gstreamer. This is meant to give an example of how to add support in the future.
To test this patch series on the Raspberry Pi, select the eglgles plugin in gst1-plugins-bad and select gst-omx. To decode a 720p h264 encoded .mov file, the following gst-launch pipeline can be used.
Sample file: http://download.blender.org/peach/trailer/trailer_720p.mov
# gst-launch-1.0 filesrc location=/path/to/file \ # ! qtdemux ! h264parse ! omx264dec ! eglglessink
v7 -> v8:
- Incoporate threads patch and rebase on top of master.
v6 -> v7:
- Additional verification complete with both RPi and Bellagio.
- Moved additional includes to the gst-omx and gst-plugins bad packages for openmax and eglgles.
- A patch was added that ensures that the config files point to the correct location.
v5 -> v6:
- Combined libglib patches to allow git-bisect
- added libopenmax virtual package for gst-omx (and future omx packages)
v4 -> v5:
- added gst-omx as a new package
- combined glib bump to 2.36.1 with gstreamer 1.x and gst-omx (libglib 2.32.1 is required for gstreamer 1.X)
v3 -> v4:
- uses new style if/endif syntax and removes depends properties for config elements in gstreamer1
v2 -> v3:
- fixes issues found while building with all/none plugins enabled
- change naming from gst-plugins-<blah>1 to gst1-plugins-<blah>
- options which require currently unpackged libraries are disabled
v1 -> v2:
- completed patch by adding good/bad/ugly plguins.
Spenser Gilliland (10):
libglib2: Bump libglib2 to 2.36.1
gstreamer1: Add gstreamer version 1.0.7 package
gst1-plugins-base: add gstreamer1 base plugins
gst1-plugins-good: add gstreamer1 good plugins
gst1-plugins-bad: add gstreamer1 bad plugins
gst1-plugins-ugly: add gstreamer1 ugly plugins
libvpx: new package libvpx
gst1-plugins-good: add libvpx support
libopenmax: Add libopenmax virtual package
gst-omx: add gst-omx package
package/glib-networking/glib-networking.mk | 4 +- package/glibmm/glibmm.mk | 2 +- ...b2-make-codegen-python2-python3-compliant.patch | 192 ------ package/libglib2/libglib2-no-tests.patch | 117 ---- package/libglib2/libglib2.mk | 10 +- package/multimedia/Config.in | 7 + package/multimedia/gst-omx/Config.in | 11 + package/multimedia/gst-omx/gst-omx.mk | 9 + package/multimedia/gst1-plugins-bad/Config.in | 325 ++++++++++ .../gst1-plugins-bad/gst1-plugins-bad.mk | 654 ++++++++++++++++++++ package/multimedia/gst1-plugins-base/Config.in | 106 ++++ .../gst1-plugins-base/gst1-plugins-base.mk | 201 ++++++ package/multimedia/gst1-plugins-good/Config.in | 217 +++++++ .../gst1-plugins-good/gst1-plugins-good.mk | 406 ++++++++++++ package/multimedia/gst1-plugins-ugly/Config.in | 49 ++ .../gst1-plugins-ugly/gst1-plugins-ugly.mk | 89 +++ package/multimedia/gstreamer1/Config.in | 38 ++ package/multimedia/gstreamer1/gstreamer1.mk | 36 ++ package/multimedia/libvpx/Config.in | 6 + package/multimedia/libvpx/libvpx.mk | 52 ++ package/opengl/Config.in | 3 + package/opengl/libopenmax/libopenmax.mk | 24 + 22 files changed, 2242 insertions(+), 316 deletions(-) delete mode 100644 package/libglib2/libglib2-make-codegen-python2-python3-compliant.patch delete mode 100644 package/libglib2/libglib2-no-tests.patch create mode 100644 package/multimedia/gst-omx/Config.in create mode 100644 package/multimedia/gst-omx/gst-omx.mk create mode 100644 package/multimedia/gst1-plugins-bad/Config.in create mode 100644 package/multimedia/gst1-plugins-bad/gst1-plugins-bad.mk create mode 100644 package/multimedia/gst1-plugins-base/Config.in create mode 100644 package/multimedia/gst1-plugins-base/gst1-plugins-base.mk create mode 100644 package/multimedia/gst1-plugins-good/Config.in create mode 100644 package/multimedia/gst1-plugins-good/gst1-plugins-good.mk create mode 100644 package/multimedia/gst1-plugins-ugly/Config.in create mode 100644 package/multimedia/gst1-plugins-ugly/gst1-plugins-ugly.mk create mode 100644 package/multimedia/gstreamer1/Config.in create mode 100644 package/multimedia/gstreamer1/gstreamer1.mk create mode 100644 package/multimedia/libvpx/Config.in create mode 100644 package/multimedia/libvpx/libvpx.mk create mode 100644 package/opengl/libopenmax/libopenmax.mk
Signature · 1 line
1.7.9.5
PATCH v8 1/10 libglib2: Bump libglib2 to 2.36.1
This patch bumps libglib2 to version 2.36.1. In addition this bumps glibmm and glib-networking to 2.36.1.
--- package/glib-networking/glib-networking.mk | 4 +- package/glibmm/glibmm.mk | 2 +- ...ib2-0004-fix-build-when-no-thread-support.patch | 18 +- ...b2-make-codegen-python2-python3-compliant.patch | 192 -------------------- package/libglib2/libglib2-no-tests.patch | 117 ------------ package/libglib2/libglib2.mk | 10 +- 6 files changed, 19 insertions(+), 324 deletions(-) delete mode 100644 package/libglib2/libglib2-make-codegen-python2-python3-compliant.patch delete mode 100644 package/libglib2/libglib2-no-tests.patch
package/glib-networking/glib-networking.mk +2 -2
@@ -4,8 +4,8 @@ # ############################################################# -GLIB_NETWORKING_MAJOR_VERSION = 2.30 -GLIB_NETWORKING_MINOR_VERSION = 2 +GLIB_NETWORKING_MAJOR_VERSION = 2.36 +GLIB_NETWORKING_MINOR_VERSION = 1 GLIB_NETWORKING_VERSION = $(GLIB_NETWORKING_MAJOR_VERSION).$(GLIB_NETWORKING_MINOR_VERSION) GLIB_NETWORKING_SITE = http://ftp.gnome.org/pub/gnome/sources/glib-networking/$(GLIB_NETWORKING_MAJOR_VERSION) GLIB_NETWORKING_SOURCE = glib-networking-$(GLIB_NETWORKING_VERSION).tar.xz
package/glibmm/glibmm.mk +1 -1
@@ -4,7 +4,7 @@ # ############################################################# -GLIBMM_VERSION_MAJOR = 2.30 +GLIBMM_VERSION_MAJOR = 2.36 GLIBMM_VERSION_MINOR = 1 GLIBMM_VERSION = $(GLIBMM_VERSION_MAJOR).$(GLIBMM_VERSION_MINOR) GLIBMM_LICENSE = LGPLv2.1+ (library), GPLv2+ (tools)
package/libglib2/libglib2-0004-fix-build-when-no-thread-support.patch +10 -8
@@ -1,27 +1,29 @@ Fix gio/gcancellable.c build when thread support is disabled +Changes: + Updated for 2.36.1 + Signed-off-by: "Samuel Martin" <[email protected]> +Signed-off-by: "Spenser Gilliland" <[email protected]> --- ---- a/gio/gcancellable.c 2013-05-14 23:08:25.514461348 +0200 -+++ b/gio/gcancellable.c 2013-05-14 23:10:23.347789625 +0200 -@@ -270,8 +270,10 @@ g_cancellable_reset (GCancellable *cance +--- libglib2-2.36.1.orig/gio/gcancellable.c 2013-03-13 08:39:09.000000000 -0500 ++++ libglib2-2.36.1/gio/gcancellable.c 2013-05-26 10:49:32.366019891 -0500 +@@ -267,7 +267,9 @@ while (priv->cancelled_running) { priv->cancelled_running_waiting = TRUE; +#if defined(G_THREADS_ENABLED) - g_cond_wait (cancellable_cond, - g_static_mutex_get_mutex (& G_LOCK_NAME (cancellable))); + g_cond_wait (&cancellable_cond, &cancellable_mutex); +#endif } if (priv->cancelled) -@@ -619,8 +621,10 @@ g_cancellable_disconnect (GCancellable +@@ -620,7 +622,9 @@ while (priv->cancelled_running) { priv->cancelled_running_waiting = TRUE; +#if defined(G_THREADS_ENABLED) - g_cond_wait (cancellable_cond, - g_static_mutex_get_mutex (& G_LOCK_NAME (cancellable))); + g_cond_wait (&cancellable_cond, &cancellable_mutex); +#endif }
package/libglib2/libglib2-make-codegen-python2-python3-compliant.patch deleted +0 -192
192 lines not on this page · raw message
package/libglib2/libglib2-no-tests.patch deleted +0 -117
117 lines not on this page · raw message
package/libglib2/libglib2.mk +6 -4
@@ -3,8 +3,8 @@ # libglib2 # ############################################################# -LIBGLIB2_VERSION_MAJOR = 2.30 -LIBGLIB2_VERSION_MINOR = 3 +LIBGLIB2_VERSION_MAJOR = 2.36 +LIBGLIB2_VERSION_MINOR = 1 LIBGLIB2_VERSION = $(LIBGLIB2_VERSION_MAJOR).$(LIBGLIB2_VERSION_MINOR) LIBGLIB2_SOURCE = glib-$(LIBGLIB2_VERSION).tar.xz LIBGLIB2_SITE = http://ftp.gnome.org/pub/gnome/sources/glib/$(LIBGLIB2_VERSION_MAJOR)
@@ -44,6 +44,8 @@ LIBGLIB2_CONF_ENV = \ ac_cv_path_GLIB_GENMARSHAL=$(HOST_DIR)/usr/bin/glib-genmarshal ac_cv_prog_F77=no \ ac_cv_func_posix_getgrgid_r=no glib_cv_long_long_format=ll \ ac_cv_func_printf_unix98=yes ac_cv_func_vsnprintf_c99=yes \ + ac_cv_func_newlocale=no ac_cv_func_uselocale=no \ + ac_cv_func_strtod_l=no ac_cv_func_strtoll_l=no ac_cv_func_strtoull_l=no \ gt_cv_c_wchar_t=$(if $(BR2_USE_WCHAR),yes,no) # old uClibc versions don't provide qsort_r
@@ -64,9 +66,9 @@ HOST_LIBGLIB2_CONF_OPT = \ --disable-dtrace \ --disable-systemtap \ --disable-gcov \ - --disable-tests + --disable-modular-tests -LIBGLIB2_CONF_OPT += --disable-tests +LIBGLIB2_CONF_OPT += --disable-modular-tests ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),) LIBGLIB2_CONF_OPT += --with-threads=none --disable-threads endif
Signature · 1 line
1.7.9.5
PATCH v8 2/10 gstreamer1: Add gstreamer version 1.0.7 package
In reply to Spenser GillilandThis patch adds the gstreamer version 1.x series to buildroot.
--- package/multimedia/Config.in | 1 + package/multimedia/gstreamer1/Config.in | 38 +++++++++++++++++++++++++++ package/multimedia/gstreamer1/gstreamer1.mk | 36 +++++++++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 package/multimedia/gstreamer1/Config.in create mode 100644 package/multimedia/gstreamer1/gstreamer1.mk
package/multimedia/Config.in +1 -0
@@ -6,6 +6,7 @@ source "package/multimedia/faad2/Config.in" source "package/multimedia/flac/Config.in" source "package/multimedia/ffmpeg/Config.in" source "package/multimedia/gstreamer/Config.in" +source "package/multimedia/gstreamer1/Config.in" source "package/multimedia/gst-ffmpeg/Config.in" source "package/multimedia/gst-dsp/Config.in" source "package/multimedia/gst-fsl-plugins/Config.in"
package/multimedia/gstreamer1/Config.in new file +38 -0
@@ -0,0 +1,38 @@ +config BR2_PACKAGE_GSTREAMER1 + bool "gstreamer1" + depends on BR2_USE_WCHAR # glib2 + depends on BR2_TOOLCHAIN_HAS_THREADS + select BR2_PACKAGE_LIBGLIB2 + help + GStreamer is an open source multimedia framework. + + http://gstreamer.freedesktop.org/ + +comment "gstreamer requires a toolchain with WCHAR and threads support" + depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS + +if BR2_PACKAGE_GSTREAMER1 + +config BR2_PACKAGE_GSTREAMER1_GST_DEBUG + bool "enable gst-debug trace support" + default y + help + Enable support for the gst-debug tracing functionality in gstreamer. + This has limited CPU overhead, but does increase the rootfs size + somewhat. + +config BR2_PACKAGE_GSTREAMER1_PLUGIN_REGISTRY + bool "enable plugin registry" + default y + help + Enable support for the GStreamer plugin registry. This may increase + the launch-time for a GStreamer application. + +config BR2_PACKAGE_GSTREAMER1_INSTALL_TOOLS + bool "install gst-launch gst-inspect" + default y + help + Install the gst-launch and gst-inspect tools. This will take up + additional space on the target + +endif
package/multimedia/gstreamer1/gstreamer1.mk new file +36 -0
@@ -0,0 +1,36 @@ +############################################################# +# +# gstreamer1 +# +############################################################# + +GSTREAMER1_VERSION = 1.0.7 +GSTREAMER1_SOURCE = gstreamer-$(GSTREAMER1_VERSION).tar.xz +GSTREAMER1_SITE = http://gstreamer.freedesktop.org/src/gstreamer +GSTREAMER1_INSTALL_STAGING = YES + +# Checking if unaligned memory access works correctly cannot be done when cross +# compiling. For the following architectures there is no information available +# in the configure script. +ifeq ($(BR2_avr32),y) +GSTREAMER1_CONF_ENV = as_cv_unaligned_access=no +endif +ifeq ($(BR2_aarch64),y) +GSTREAMER1_CONF_ENV = as_cv_unaligned_access=yes +endif + +GSTREAMER1_CONF_OPT = \ + --disable-examples \ + --disable-tests \ + --disable-failing-tests \ + --disable-debug \ + --disable-valgrind \ + --disable-benchmarks \ + --disable-check \ + $(if $(BR2_PACKAGE_GSTREAMER1_GST_DEBUG),,--disable-gst-debug) \ + $(if $(BR2_PACKAGE_GSTREAMER1_PLUGIN_REGISTRY),,--disable-registry) \ + $(if $(BR2_PACKAGE_GSTREAMER1_INSTALL_TOOLS),,--disable-tools) \ + +GSTREAMER1_DEPENDENCIES = libglib2 host-pkgconf host-bison host-flex + +$(eval $(autotools-package))
Signature · 1 line
1.7.9.5
PATCH v8 3/10 gst1-plugins-base: add gstreamer1 base plugins
In reply to Spenser GillilandAdds gstreamer 1.X base plugins.
--- package/multimedia/Config.in | 1 + package/multimedia/gst1-plugins-base/Config.in | 106 +++++++++++ .../gst1-plugins-base/gst1-plugins-base.mk | 201 ++++++++++++++++++++ 3 files changed, 308 insertions(+) create mode 100644 package/multimedia/gst1-plugins-base/Config.in create mode 100644 package/multimedia/gst1-plugins-base/gst1-plugins-base.mk
package/multimedia/Config.in +1 -0
@@ -12,6 +12,7 @@ source "package/multimedia/gst-dsp/Config.in" source "package/multimedia/gst-fsl-plugins/Config.in" source "package/multimedia/gst-omapfb/Config.in" source "package/multimedia/gst-plugins-base/Config.in" +source "package/multimedia/gst1-plugins-base/Config.in" source "package/multimedia/gst-plugins-good/Config.in" source "package/multimedia/gst-plugins-bad/Config.in" source "package/multimedia/gst-plugins-ugly/Config.in"
package/multimedia/gst1-plugins-base/Config.in new file +106 -0
106 lines not on this page · raw message
package/multimedia/gst1-plugins-base/gst1-plugins-base.mk new file +201 -0
201 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH v8 4/10 gst1-plugins-good: add gstreamer1 good plugins
In reply to Spenser GillilandAdds gstreamer 1.X good plugins.
--- package/multimedia/Config.in | 1 + package/multimedia/gst1-plugins-good/Config.in | 214 +++++++++++ .../gst1-plugins-good/gst1-plugins-good.mk | 400 ++++++++++++++++++++ 3 files changed, 615 insertions(+) create mode 100644 package/multimedia/gst1-plugins-good/Config.in create mode 100644 package/multimedia/gst1-plugins-good/gst1-plugins-good.mk
package/multimedia/Config.in +1 -0
@@ -14,6 +14,7 @@ source "package/multimedia/gst-omapfb/Config.in" source "package/multimedia/gst-plugins-base/Config.in" source "package/multimedia/gst1-plugins-base/Config.in" source "package/multimedia/gst-plugins-good/Config.in" +source "package/multimedia/gst1-plugins-good/Config.in" source "package/multimedia/gst-plugins-bad/Config.in" source "package/multimedia/gst-plugins-ugly/Config.in" source "package/multimedia/lame/Config.in"
package/multimedia/gst1-plugins-good/Config.in new file +214 -0
214 lines not on this page · raw message
package/multimedia/gst1-plugins-good/gst1-plugins-good.mk new file +400 -0
400 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH v8 5/10 gst1-plugins-bad: add gstreamer1 bad plugins
In reply to Spenser GillilandAdds gstreamer 1.X bad plugins
--- package/multimedia/Config.in | 1 + package/multimedia/gst1-plugins-bad/Config.in | 325 ++++++++++ .../gst1-plugins-bad/gst1-plugins-bad.mk | 664 ++++++++++++++++++++ 3 files changed, 990 insertions(+) create mode 100644 package/multimedia/gst1-plugins-bad/Config.in create mode 100644 package/multimedia/gst1-plugins-bad/gst1-plugins-bad.mk
package/multimedia/Config.in +1 -0
@@ -16,6 +16,7 @@ source "package/multimedia/gst1-plugins-base/Config.in" source "package/multimedia/gst-plugins-good/Config.in" source "package/multimedia/gst1-plugins-good/Config.in" source "package/multimedia/gst-plugins-bad/Config.in" +source "package/multimedia/gst1-plugins-bad/Config.in" source "package/multimedia/gst-plugins-ugly/Config.in" source "package/multimedia/lame/Config.in" source "package/multimedia/madplay/Config.in"
package/multimedia/gst1-plugins-bad/Config.in new file +325 -0
325 lines not on this page · raw message
package/multimedia/gst1-plugins-bad/gst1-plugins-bad.mk new file +664 -0
664 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH v8 6/10 gst1-plugins-ugly: add gstreamer1 ugly plugins
In reply to Spenser GillilandAdds gstreamer 1.X ugly plugins
--- package/multimedia/Config.in | 1 + package/multimedia/gst1-plugins-ugly/Config.in | 49 +++++++++++ .../gst1-plugins-ugly/gst1-plugins-ugly.mk | 89 ++++++++++++++++++++ 3 files changed, 139 insertions(+) create mode 100644 package/multimedia/gst1-plugins-ugly/Config.in create mode 100644 package/multimedia/gst1-plugins-ugly/gst1-plugins-ugly.mk
package/multimedia/Config.in +1 -0
@@ -18,6 +18,7 @@ source "package/multimedia/gst1-plugins-good/Config.in" source "package/multimedia/gst-plugins-bad/Config.in" source "package/multimedia/gst1-plugins-bad/Config.in" source "package/multimedia/gst-plugins-ugly/Config.in" +source "package/multimedia/gst1-plugins-ugly/Config.in" source "package/multimedia/lame/Config.in" source "package/multimedia/madplay/Config.in" source "package/multimedia/mpd/Config.in"
package/multimedia/gst1-plugins-ugly/Config.in new file +49 -0
49 lines not on this page · raw message
package/multimedia/gst1-plugins-ugly/gst1-plugins-ugly.mk new file +89 -0
89 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH v8 7/10 libvpx: new package libvpx
In reply to Spenser Gillilandadds webm multimedia support and the VP8 encoder/decoder library.
--- package/multimedia/Config.in | 1 + package/multimedia/libvpx/Config.in | 6 ++++ package/multimedia/libvpx/libvpx.mk | 53 +++++++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 package/multimedia/libvpx/Config.in create mode 100644 package/multimedia/libvpx/libvpx.mk
package/multimedia/Config.in +1 -0
@@ -20,6 +20,7 @@ source "package/multimedia/gst1-plugins-bad/Config.in" source "package/multimedia/gst-plugins-ugly/Config.in" source "package/multimedia/gst1-plugins-ugly/Config.in" source "package/multimedia/lame/Config.in" +source "package/multimedia/libvpx/Config.in" source "package/multimedia/madplay/Config.in" source "package/multimedia/mpd/Config.in" source "package/multimedia/mpg123/Config.in"
package/multimedia/libvpx/Config.in new file +6 -0
@@ -0,0 +1,6 @@ +config BR2_PACKAGE_LIBVPX + bool "libvpx" + help + a high-quality, open video format that's freely available to everyone. + + http://webmproject.org
package/multimedia/libvpx/libvpx.mk new file +53 -0
53 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH v8 8/10 gst1-plugins-good: add libvpx support
In reply to Spenser Gillilandadds libvpx support to gst1-plugins-good
--- package/multimedia/gst1-plugins-good/Config.in | 4 ++++ .../gst1-plugins-good/gst1-plugins-good.mk | 10 ++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-)
package/multimedia/gst1-plugins-good/Config.in +4 -0
@@ -207,6 +207,10 @@ config BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_SPEEX bool "speex" select BR2_PACKAGE_SPEEX +config BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_VPX + bool "vpx (webm)" + select BR2_PACKAGE_LIBVPX + config BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_WAVPACK bool "wavpack (*.wv audio)" select BR2_PACKAGE_WAVPACK
package/multimedia/gst1-plugins-good/gst1-plugins-good.mk +8 -2
@@ -27,8 +27,7 @@ GST1_PLUGINS_GOOD_CONF_OPT += \ --disable-jack \ --disable-libdv \ --disable-dv1394 \ - --disable-taglib \ - --disable-vpx + --disable-taglib GST1_PLUGINS_GOOD_DEPENDENCIES = gstreamer1 gst1-plugins-base
@@ -390,6 +389,13 @@ else GST1_PLUGINS_GOOD_CONF_OPT += --disable-speex endif +ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_VPX),y) +GST1_PLUGINS_GOOD_CONF_OPT += --enable-vpx +GST1_PLUGINS_GOOD_DEPENDENCIES += libvpx +else +GST1_PLUGINS_GOOD_CONF_OPT += --disable-vpx +endif + ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_WAVPACK),y) GST1_PLUGINS_GOOD_CONF_OPT += --enable-wavpack GST1_PLUGINS_GOOD_DEPENDENCIES += wavpack
Signature · 1 line
1.7.9.5
PATCH v8 9/10 libopenmax: Add libopenmax virtual package
In reply to Spenser Gillilandthis adds the libopenmax virtual package for hardware based video acceleration
--- package/multimedia/bellagio/Config.in | 1 + package/opengl/Config.in | 3 +++ package/opengl/libopenmax/libopenmax.mk | 24 ++++++++++++++++++++++++ package/rpi-userland/Config.in | 1 + 4 files changed, 29 insertions(+) create mode 100644 package/opengl/libopenmax/libopenmax.mk
package/multimedia/bellagio/Config.in +1 -0
@@ -2,6 +2,7 @@ config BR2_PACKAGE_BELLAGIO bool "bellagio" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS + select BR2_PACKAGE_HAS_OPENMAX help Bellagio is an opensource implementation of the OpenMAX IL API.
package/opengl/Config.in +3 -0
@@ -6,3 +6,6 @@ config BR2_PACKAGE_HAS_OPENGL_ES config BR2_PACKAGE_HAS_OPENVG bool + +config BR2_PACKAGE_HAS_OPENMAX + bool
package/opengl/libopenmax/libopenmax.mk new file +24 -0
@@ -0,0 +1,24 @@ +############################################################# +# +# Virtual package for libopenmax +# +############################################################# + +LIBOPENMAX_SOURCE = + +ifeq ($(BR2_PACKAGE_RPI_USERLAND),y) +LIBOPENMAX_DEPENDENCIES += rpi-userland +endif + +ifeq ($(BR2_PACKAGE_BELLAGIO),y) +LIBOPENMAX_DEPENDENCIES += bellagio +endif + +ifeq ($(LIBOPENMAX_DEPENDENCIES),y) +define LIBOPENMAX_CONFIGURE_CMDS + echo "No libopenmax implementation selected. Configuration error." + exit 1 +endef +endif + +$(eval $(generic-package))
package/rpi-userland/Config.in +1 -0
@@ -6,6 +6,7 @@ config BR2_PACKAGE_RPI_USERLAND select BR2_PACKAGE_HAS_OPENGL_EGL select BR2_PACKAGE_HAS_OPENGL_ES select BR2_PACKAGE_HAS_OPENVG + select BR2_PACKAGE_HAS_OPENMAX help Raspberry Pi Userland contains the necessary library to use the VideoCore driver.
Signature · 1 line
1.7.9.5
PATCH v8 10/10 gst-omx: add gst-omx package
In reply to Spenser Gillilandgst-omx enables OpenMAX based accelerated video decode.
--- package/multimedia/Config.in | 1 + package/multimedia/gst-omx/Config.in | 11 ++ .../multimedia/gst-omx/gst-omx-config-files.patch | 123 ++++++++++++++++++++ package/multimedia/gst-omx/gst-omx.mk | 37 ++++++ 4 files changed, 172 insertions(+) create mode 100644 package/multimedia/gst-omx/Config.in create mode 100644 package/multimedia/gst-omx/gst-omx-config-files.patch create mode 100644 package/multimedia/gst-omx/gst-omx.mk
package/multimedia/Config.in +1 -0
@@ -11,6 +11,7 @@ source "package/multimedia/gst-ffmpeg/Config.in" source "package/multimedia/gst-dsp/Config.in" source "package/multimedia/gst-fsl-plugins/Config.in" source "package/multimedia/gst-omapfb/Config.in" +source "package/multimedia/gst-omx/Config.in" source "package/multimedia/gst-plugins-base/Config.in" source "package/multimedia/gst1-plugins-base/Config.in" source "package/multimedia/gst-plugins-good/Config.in"
package/multimedia/gst-omx/Config.in new file +11 -0
@@ -0,0 +1,11 @@ +config BR2_PACKAGE_GST_OMX + bool "gst-omx" + depends on BR2_PACKAGE_GSTREAMER1 && BR2_PACKAGE_HAS_OPENMAX + select BR2_PACKAGE_GST1_PLUGINS_BASE + help + GStreamer plug-in to use OpenMAX API. + + http://cgit.freedesktop.org/gstreamer/gst-omx + +comment "gst-omx requires a OpenMAX implementation" + depends on BR2_PACKAGE_GSTREAMER1 && !BR2_PACKAGE_HAS_OPENMAX
package/multimedia/gst-omx/gst-omx-config-files.patch new file +123 -0
123 lines not on this page · raw message
package/multimedia/gst-omx/gst-omx.mk new file +37 -0
@@ -0,0 +1,37 @@ +############################################################# +# +# gst-omx +# +############################################################# + +GST_OMX_VERSION = 1.0.0 +GST_OMX_SOURCE = gst-omx-$(GST_OMX_VERSION).tar.xz +GST_OMX_SITE = http://gstreamer.freedesktop.org/src/gst-omx/ + +GST_OMX_LICENSE = LGPLv2.1 +GST_OMX_LICENSE_FILE = COPYING + +ifeq ($(BR2_PACKAGE_RPI_USERLAND),y) +GST_OMX_CONF_OPT = \ + --with-omx-target=rpi +GST_OMX_CONF_ENV = \ + CFLAGS="$(TARGET_CFLAGS) \ + -I$(STAGING_DIR)/usr/include/IL \ + -I$(STAGING_DIR)/usr/include/interface/vcos/pthreads \ + -I$(STAGING_DIR)/usr/include/interface/vmcs_host/linux" +endif + +ifeq ($(BR2_PACKAGE_BELLAGIO),y) +GST_OMX_CONF_OPT = \ + --with-omx-target=bellagio +GST_OMX_CONF_ENV = \ + CFLAGS="$(TARGET_CFLAGS) \ + -DOMX_VERSION_MAJOR=1 \ + -DOMX_VERSION_MINOR=1 \ + -DOMX_VERSION_REVISION=2 \ + -DOMX_VERSION_STEP=0" +endif + +GST_OMX_DEPENDENCIES = gstreamer1 gst1-plugins-base libopenmax + +$(eval $(autotools-package))
Signature · 1 line
1.7.9.5
PATCH v8 10/10 gst-omx: add gst-omx package
Dear Spenser Gilliland,
package/multimedia/gst-omx/gst-omx-config-files.patch line 2
Quoted 8 lines · Spenser Gilliland
package/multimedia/gst-omx/gst-omx-config-files.patch new file +2
-0@@ -0,0 +1,123 @@ +Index: gst-omx-1.0.0/config/bellagio/gstomx.conf +===================================================================
We want all patches to have a description + signed-off-by line. See all other package patches in Buildroot.
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH v8 10/10 gst-omx: add gst-omx package
Quoted 16 lines · Thomas Petazzoni
Dear Spenser Gilliland,
package/multimedia/gst-omx/gst-omx-config-files.patch line 2
Quoted 8 lines · Spenser Gilliland
package/multimedia/gst-omx/gst-omx-config-files.patch new file +2
-0@@ -0,0 +1,123 @@ +Index: gst-omx-1.0.0/config/bellagio/gstomx.conf +===================================================================We want all patches to have a description + signed-off-by line. See all other package patches in Buildroot.
Quoted 6 lines
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
Fixed in rpi branch of git://github.com/Spenser309/buildroot.git . Will resubmit after further review.
Spenser
--
Spenser Gilliland
Computer Engineer
Doctoral Candidate
v7 cover add Gstreamer 1.X for gst-omx support
In reply to Spenser GillilandDear Spenser Gilliland,
Quoted 5 lines · Spenser Gilliland
This patch adds gst-omx support to buildroot. Thus, making it possible to use gstreamer applications which utilize hardware acceleration on OpenMAX supported systems.
To add gst-omx, libglib2 is bumped to 2.36.1 and gstreamer1 is added.
As explained on IRC, bumping libglib2 to 2.36.1 breaks the build of webkit. Besides that, I've built a number of packages that use libglib2, and I've built gstreamer1 itself, and it was fine here.
So, the webkit problem needs to be fixed, either by adding a patch to the current version of webkit, or by bumping webkit. In the end, bumping webkit is certainly the nicest solution, but it may turn this patch series into a much larger one.
Thanks,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
v7 cover add Gstreamer 1.X for gst-omx support
Quoted 5 lines · Thomas Petazzoni
Dear Spenser Gilliland,
Quoted 1 line · Spenser Gilliland
This patch adds gst-omx support to buildroot. Thus, making it possible
to use
Quoted 1 line
Quoted 1 line
gstreamer applications which utilize hardware acceleration on OpenMAX
supported
Quoted 13 lines
Quoted 3 lines
systems.
To add gst-omx, libglib2 is bumped to 2.36.1 and gstreamer1 is added.
As explained on IRC, bumping libglib2 to 2.36.1 breaks the build of webkit. Besides that, I've built a number of packages that use libglib2, and I've built gstreamer1 itself, and it was fine here.
So, the webkit problem needs to be fixed, either by adding a patch to the current version of webkit, or by bumping webkit. In the end, bumping webkit is certainly the nicest solution, but it may turn this patch series into a much larger one.
Quoted 8 lines
Thanks,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
Thomas,
Im working on the bump to webkit 1.9.6. So far, this requires a libsoup and libgtk2 bump as well.
Due to the tight dependencies between libglib2/webkit, the patch will not be bisectable unless the webkit and libglib2 bump occur atomically. (the libgtk2 and libsoup bumps may or may not be required to occur atomically.) This makes this single patch quite large; therefore, im unsure if I should make this a monolithic patch or a series of non bisectable patches (there may also be a no-ff merge option.)
Im currently working on narrowing down a couple remaining issues but should be able to send out the patches by end of tomm.
Thanks,
Spenser
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130527/a211bb86/attachment.html>
v7 cover add Gstreamer 1.X for gst-omx support
Dear Spenser Gilliland,
Quoted 2 lines · Spenser Gilliland
Im working on the bump to webkit 1.9.6. So far, this requires a libsoup and libgtk2 bump as well.
Ok.
Quoted 6 lines
Due to the tight dependencies between libglib2/webkit, the patch will not be bisectable unless the webkit and libglib2 bump occur atomically. (the libgtk2 and libsoup bumps may or may not be required to occur atomically.) This makes this single patch quite large; therefore, im unsure if I should make this a monolithic patch or a series of non bisectable patches (there may also be a no-ff merge option.)
Send them as separate patches, and make it explicit in your cover e-mail which patches are in fact so closely related together than we might want to apply them all at once.
Peter will then be able to decide whether he'll want to take them as a single patch, or as separate patches.
Quoted 2 lines
Im currently working on narrowing down a couple remaining issues but should be able to send out the patches by end of tomm.
Excellent, thanks!
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
v7 cover add Gstreamer 1.X for gst-omx support
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Hi,
Thomas> Send them as separate patches, and make it explicit in your Thomas> cover e-mail which patches are in fact so closely related Thomas> together than we might want to apply them all at once.
Thomas> Peter will then be able to decide whether he'll want to take Thomas> them as a single patch, or as separate patches.
Yes please, smaller individual patches are easier to review.
Signature · 1 line
Bye, Peter Korsgaard