Skip to contentSkip to conversation

Gstreamer 1.X patch series

PATCH Superseded Spenser Gilliland 3 participants 11 messages May 13, 2013

lore
Share & tools
lore
#0 lore raw

v4 cover Gstreamer 1.X patch series

The subsequent patches add Gstreamer 1.X to Buildroot. Gstreamer has many dependencies which can be disabled or enabled as plugins. For an example fo adding a plugin which requires a dependent library, see patches 6 and 7 of the series.

v3 -> v4:
- uses new style if/endif and removes depends properties on config elements in gstreamer1

v2 -> v3:
- fixes issues found after running a build with all/none plugins enabled
- changed naming from gst-plugins-<blah>1 to gst1-plugins-<blah>
- options which require currently unpackaged libraries are disabled

v1 -> v2:
- completed patch series by adding good, bad, and ugly plugins.

Spenser Gilliland (7):
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

 package/multimedia/Config.in                       |    6 +
 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 ++
 13 files changed, 2185 insertions(+)
 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
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH v4 1/7 gstreamer1: Add gstreamer version 1.0.7 package

This 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
index 931e6d3..f6a5fd7 100644
@@ -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
new file mode 100644
index 0000000..c627eb7
@@ -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
new file mode 100644
index 0000000..7abdc09
@@ -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
#2 lore raw

PATCH v4 2/7 gst1-plugins-base: add gstreamer1 base plugins

In reply to Spenser Gilliland

Adds 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
index f6a5fd7..e851187 100644
@@ -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
#3 lore raw

PATCH v4 3/7 gst1-plugins-good: add gstreamer1 good plugins

In reply to Spenser Gilliland

Adds gstreamer 1.X good plugins.

---
 package/multimedia/Config.in                       |    1 +
 package/multimedia/gst1-plugins-good/Config.in     |  213 +++++++++++
 .../gst1-plugins-good/gst1-plugins-good.mk         |  400 ++++++++++++++++++++
 3 files changed, 614 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
index e851187..725a7b2 100644
@@ -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 +213 -0

213 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
#4 lore raw

PATCH v4 4/7 gst1-plugins-bad: add gstreamer1 bad plugins

In reply to Spenser Gilliland

Adds 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           |  654 ++++++++++++++++++++
 3 files changed, 980 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
index 725a7b2..ecdef5c 100644
@@ -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 +654 -0

654 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#5 lore raw

PATCH v4 5/7 gst1-plugins-ugly: add gstreamer1 ugly plugins

In reply to Spenser Gilliland

Adds 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
index ecdef5c..d0594b9 100644
@@ -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
#6 lore raw

PATCH v4 6/7 libvpx: new package libvpx

In reply to Spenser Gilliland

adds webm multimedia support and the VP8 encoder/decoder library.

http://www.webmproject.org/

---
 package/multimedia/Config.in        |    1 +
 package/multimedia/libvpx/Config.in |    6 ++++
 package/multimedia/libvpx/libvpx.mk |   52 +++++++++++++++++++++++++++++++++++
 3 files changed, 59 insertions(+)
 create mode 100644 package/multimedia/libvpx/Config.in
 create mode 100644 package/multimedia/libvpx/libvpx.mk
package/multimedia/Config.in +1 -0
index d0594b9..a0927e9 100644
@@ -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
new file mode 100644
index 0000000..2327971
@@ -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 +52 -0

52 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#7 lore raw

PATCH v4 7/7 gst1-plugins-good: add libvpx support

In reply to Spenser Gilliland

adds 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
index c339a45..7653ec4 100644
@@ -206,6 +206,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
index 15e3b0e..297bb5e 100644
@@ -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
#8 lore raw

v4 cover Gstreamer 1.X patch series

In reply to Spenser Gilliland

Dear Spenser Gilliland,

Quoted 1 line · Spenser Gilliland

The subsequent patches add Gstreamer 1.X to Buildroot. Gstreamer has many dependencies which can be disabled or enabled as plugins. For an example fo adding a plugin which requires a dependent library, see patches 6 and 7 of the series.

It would be good if your e-mail (including cover letters) were wrapped at ~80 columns.

For patches 1 to 5, could you summarize the difference between those gstreamer1 packages compared to the corresponding gstreamer packages?

Is it just a sed s/GSTREAMER/GSTREAMER1/ everywhere, or have you made some more extensive changes?

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
#9 lore raw

v4 cover Gstreamer 1.X patch series

Quoted 2 lines

It would be good if your e-mail (including cover letters) were wrapped at ~80 columns.

I'll fix this, if another patch re-roll is required.

Quoted 2 lines

Is it just a sed s/GSTREAMER/GSTREAMER1/ everywhere, or have you made some more extensive changes?

As many configure options have changed (added/removed), I went through each of the packages and compared the available configure options to the options listed in <blah>.mk and Config.in. Any options which required additional libraries which were currently not included in Buildroot are explicitly disabled. Additionally, patch 6 & 7 give an example of how to add gstreamer1 support for a newly added library (libvpx/webm).

In addition, the glib patches I have made are a requirement for building gstreamer 1.0.7. The minimum glib version to support gstreamer 1.0.X is 2.32.0. The patch i made is for 2.36.1 (latest stable).

Thanks,
Spenser

--
Spenser Gilliland
Computer Engineer
Doctoral Candidate

#10 lore raw

v4 cover Gstreamer 1.X patch series

On 13/05/13 20:59, Spenser Gilliland wrote:
[snip]

Quoted 4 lines

In addition, the glib patches I have made are a requirement for building gstreamer 1.0.7. The minimum glib version to support gstreamer 1.0.X is 2.32.0. The patch i made is for 2.36.1 (latest stable).

Then you should include the glib patches in this series. Otherwise,
someone who wants to test it will fail and you'll never get an Ack.

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F