Skip to contentSkip to conversation

gst1-vaapi: new package

PATCH Superseded Jesper Bækdahl 3 participants 10 messages Dec 15, 2016 – Mar 12, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gst1-vaapi: new package

---
 package/gstreamer1/Config.in                  |  1 +
 package/gstreamer1/gst1-vaapi/Config.in       | 11 +++++++++++
 package/gstreamer1/gst1-vaapi/gst1-vaapi.hash |  2 ++
 package/gstreamer1/gst1-vaapi/gst1-vaapi.mk   | 14 ++++++++++++++
 4 files changed, 28 insertions(+)
 create mode 100644 package/gstreamer1/gst1-vaapi/Config.in
 create mode 100644 package/gstreamer1/gst1-vaapi/gst1-vaapi.hash
 create mode 100644 package/gstreamer1/gst1-vaapi/gst1-vaapi.mk
package/gstreamer1/Config.in +1 -0
index 23862bd..0297851 100644
@@ -9,6 +9,7 @@ source "package/gstreamer1/gst1-plugins-ugly/Config.in"
 source "package/gstreamer1/gst1-imx/Config.in"
 source "package/gstreamer1/gst1-libav/Config.in"
 source "package/gstreamer1/gst1-rtsp-server/Config.in"
+source "package/gstreamer1/gst1-vaapi/Config.in"
 source "package/gstreamer1/gst1-validate/Config.in"
 source "package/gstreamer1/gst-omx/Config.in"
 endif
package/gstreamer1/gst1-vaapi/Config.in new file +11 -0
new file mode 100644
index 0000000..56d63f4
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_GST1_VAAPI
+	bool "gst1-vaapi"
+	select BR2_PACKAGE_GST1_PLUGINS_BASE
+	select BR2_PACKAGE_GST1_PLUGINS_BAD
+	select BR2_PACKAGE_GST1_PLUGINS_LIBVA
+	select BR2_PACKAGE_GST1_PLUGINS_LIBDRM
+	help
+	  gstreamer-vaapi consists in a collection of VA-API based plugins for
+	  GStreamer and helper libraries.
+
+	  http://gstreamer.freedesktop.org/
package/gstreamer1/gst1-vaapi/gst1-vaapi.hash new file +2 -0
new file mode 100644
index 0000000..21032ca
@@ -0,0 +1,2 @@
+# From https://gstreamer.freedesktop.org/src/gstreamer-vaapi/gstreamer-vaapi-1.10.2.tar.xz.sha256sum
+sha256 9e31d2b85b2f30caa6b0cc1c6be10b96e1376668f13faa6a0f577d3693547fa9  gstreamer-vaapi-1.10.2.tar.xz
package/gstreamer1/gst1-vaapi/gst1-vaapi.mk new file +14 -0
new file mode 100644
index 0000000..d66018d
@@ -0,0 +1,14 @@
+################################################################################
+#
+# gst1-vaapi
+#
+################################################################################
+
+GST1_VAAPI_VERSION = 1.10.2
+GST1_VAAPI_SOURCE = gstreamer-vaapi-$(GST1_VAAPI_VERSION).tar.xz
+GST1_VAAPI_SITE = https://gstreamer.freedesktop.org/src/gstreamer-vaapi
+GST1_VAAPI_DEPENDENCIES = gstreamer1 gst1-plugins-base gst1-plugins-bad libva libdrm
+GST1_VAAPI_LICENSE = GPLv2+
+GST1_VAAPI_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 gst1-vaapi: new package

Hello,

Thanks for this contribution!

package/gstreamer1/gst1-vaapi/Config.in line 4

Quoted 7 lines · Jesper B?kdahl
package/gstreamer1/gst1-vaapi/Config.in new file +4 -0
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_GST1_VAAPI
+	bool "gst1-vaapi"
+	select BR2_PACKAGE_GST1_PLUGINS_BASE
+	select BR2_PACKAGE_GST1_PLUGINS_BAD

Are you sure you need those set of plugins to be built to build the gst1-vaapi plugin? I'm not too familiar with GStreamer, so maybe this is correct, but it looks strange.

package/gstreamer1/gst1-vaapi/Config.in line 6

Quoted 2 lines
package/gstreamer1/gst1-vaapi/Config.in new file +2 -0
+	select BR2_PACKAGE_GST1_PLUGINS_LIBVA
+	select BR2_PACKAGE_GST1_PLUGINS_LIBDRM

These two lines however are clearly wrong: those symbols don't exist in Buildroot. And your .mk file has a dependency on libva and libdrm instead. So these should be:

select BR2_PACKAGE_LIBVA
select BR2_PACKAGE_LIBDRM

However, you need to inherit the dependencies of those packages:

depends on BR2_TOOLCHAIN_HAS_THREADS # libdrm/libpthread-stubs depends on !BR2_STATIC_LIBS

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 gst1-vaapi: new package

Quoted 11 lines · Thomas Petazzoni

package/gstreamer1/gst1-vaapi/Config.in line 4

Quoted 7 lines
package/gstreamer1/gst1-vaapi/Config.in new file +4 -0
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_GST1_VAAPI
+     bool "gst1-vaapi"
+     select BR2_PACKAGE_GST1_PLUGINS_BASE
+     select BR2_PACKAGE_GST1_PLUGINS_BAD

Are you sure you need those set of plugins to be built to build the gst1-vaapi plugin? I'm not too familiar with GStreamer, so maybe this is correct, but it looks strange.

I added them based on the requirements section found here:
https://github.com/01org/gstreamer-vaapi

Quoted 9 lines

package/gstreamer1/gst1-vaapi/Config.in line 6

Quoted 2 lines
package/gstreamer1/gst1-vaapi/Config.in new file +2 -0
+     select BR2_PACKAGE_GST1_PLUGINS_LIBVA
+     select BR2_PACKAGE_GST1_PLUGINS_LIBDRM

These two lines however are clearly wrong: those symbols don't exist in Buildroot. And your .mk file has a dependency on libva and libdrm instead. So these should be:

select BR2_PACKAGE_LIBVA
select BR2_PACKAGE_LIBDRM

Will fix this.

Quoted 4 lines

However, you need to inherit the dependencies of those packages:

depends on BR2_TOOLCHAIN_HAS_THREADS # libdrm/libpthread-stubs depends on !BR2_STATIC_LIBS

I will add those as dependencies too.

Best Regards,

Jesper B?kdahl
Hardware/Software Developer
Gamblify

#3 lore raw

PATCH 1/1 gst1-vaapi: new package

Hello,

Quoted 6 lines
Quoted 3 lines

Are you sure you need those set of plugins to be built to build the gst1-vaapi plugin? I'm not too familiar with GStreamer, so maybe this is correct, but it looks strange.

I added them based on the requirements section found here:
https://github.com/01org/gstreamer-vaapi

OK. The configure.ac script indeed checks for plugins-base, but not for plugins-bad.

Could you have a look at the configure.ac script? It seems like it supports multiple renderers, not only DRM. If you don't want to support all of them because you don't use them, that's fine. But you should then use the appropriate --enable/--disable options to enable the right renderer, and disable the other ones.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#4 lore raw

PATCH 1/1 gst1-vaapi: new package

Quoted 2 lines

OK. The configure.ac script indeed checks for plugins-base, but not for plugins-bad.

In configure.ac line 245 we have:
AG_GST_CHECK_MODULES([GST_CODEC_PARSERS],
[gstreamer-codecparsers-$GST_API_VERSION], [$GST_PBADREQ], [yes])

which is checking for gstreamer-codecparsers that is part of plugins-bad?

Quoted 5 lines

Could you have a look at the configure.ac script? It seems like it supports multiple renderers, not only DRM. If you don't want to support all of them because you don't use them, that's fine. But you should then use the appropriate --enable/--disable options to enable the right renderer, and disable the other ones.

I can add conditional CONF_OPTS that adds --enable/--disable based on which renderers can be built e.g.:
ifeq ($(BR2_PACKAGE_LIBDRM),y)
GST1_VAAPI_CONF_OPTS += --enable-drm
else
GST1_VAAPI_CONF_OPTS += --disable-drm
endif

Best Regards,

Jesper B?kdahl
Hardware/Software Developer
Gamblify

#5 lore raw

PATCH 1/1 gst1-vaapi: new package

Hello,

Quoted 8 lines · Jesper B?kdahl
Quoted 2 lines

OK. The configure.ac script indeed checks for plugins-base, but not for plugins-bad.

In configure.ac line 245 we have:
AG_GST_CHECK_MODULES([GST_CODEC_PARSERS],
[gstreamer-codecparsers-$GST_API_VERSION], [$GST_PBADREQ], [yes])

which is checking for gstreamer-codecparsers that is part of plugins-bad?

Hum, ok. I haven't checked myself, but if you say so, fine :-)

Quoted 6 lines
Quoted 5 lines

Could you have a look at the configure.ac script? It seems like it supports multiple renderers, not only DRM. If you don't want to support all of them because you don't use them, that's fine. But you should then use the appropriate --enable/--disable options to enable the right renderer, and disable the other ones.

Quoted 7 lines

I can add conditional CONF_OPTS that adds --enable/--disable based on which renderers can be built e.g.:
ifeq ($(BR2_PACKAGE_LIBDRM),y)
GST1_VAAPI_CONF_OPTS += --enable-drm
else
GST1_VAAPI_CONF_OPTS += --disable-drm
endif

You can do that, *or* if you don't need those renderers, simply disable them unconditionally for now. The next user interested in one renderer or the other can tweak the .mk file and send a follow-up patch.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#6 lore raw

PATCH 1/1 gst1-vaapi: new package

In reply to Jesper Bækdahl
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Jesper" == Jesper B?kdahl <[email protected]> writes:

Thanks for the patch. Besides the feedback Thomas already provided:

package/gstreamer1/gst1-vaapi/gst1-vaapi.mk line 12

Quoted 12 lines
package/gstreamer1/gst1-vaapi/gst1-vaapi.mk new file +12 -0
+################################################################################
+#
+# gst1-vaapi
+#
+################################################################################
+
+GST1_VAAPI_VERSION = 1.10.2
+GST1_VAAPI_SOURCE = gstreamer-vaapi-$(GST1_VAAPI_VERSION).tar.xz
+GST1_VAAPI_SITE = https://gstreamer.freedesktop.org/src/gstreamer-vaapi
+GST1_VAAPI_DEPENDENCIES = gstreamer1 gst1-plugins-base gst1-plugins-bad libva libdrm
+GST1_VAAPI_LICENSE = GPLv2+
+GST1_VAAPI_LICENSE_FILES = COPYING

That is not correct. The tarball doesn't even have a COPYING file. It should be:

GST1_VAAPI_LICENSE = LGPLv2.1+
GST1_VAAPI_LICENSE_FILES = COPYING.LIB

Signature · 1 line
Bye, Peter Korsgaard
#7 lore raw

PATCH 1/1 gst1-vaapi: new package

In reply to Jesper Bækdahl

---
Changes v1 -> v2:
- fix incorrect references to libva and libdrm
- add dependency of threads and dynamic libraries
- fix license information

---
 package/gstreamer1/Config.in                  |  1 +
 package/gstreamer1/gst1-vaapi/Config.in       | 16 ++++++++++++++++
 package/gstreamer1/gst1-vaapi/gst1-vaapi.hash |  2 ++
 package/gstreamer1/gst1-vaapi/gst1-vaapi.mk   | 14 ++++++++++++++
 4 files changed, 33 insertions(+)
 create mode 100644 package/gstreamer1/gst1-vaapi/Config.in
 create mode 100644 package/gstreamer1/gst1-vaapi/gst1-vaapi.hash
 create mode 100644 package/gstreamer1/gst1-vaapi/gst1-vaapi.mk
package/gstreamer1/Config.in +1 -0
index 23862bd..0297851 100644
@@ -9,6 +9,7 @@ source "package/gstreamer1/gst1-plugins-ugly/Config.in"
 source "package/gstreamer1/gst1-imx/Config.in"
 source "package/gstreamer1/gst1-libav/Config.in"
 source "package/gstreamer1/gst1-rtsp-server/Config.in"
+source "package/gstreamer1/gst1-vaapi/Config.in"
 source "package/gstreamer1/gst1-validate/Config.in"
 source "package/gstreamer1/gst-omx/Config.in"
 endif
package/gstreamer1/gst1-vaapi/Config.in new file +16 -0
new file mode 100644
index 0000000..fe60f3c
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_GST1_VAAPI
+	bool "gst1-vaapi"
+	select BR2_PACKAGE_GST1_PLUGINS_BASE
+	select BR2_PACKAGE_GST1_PLUGINS_BAD
+	select BR2_PACKAGE_LIBVA
+	select BR2_PACKAGE_LIBDRM
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on !BR2_STATIC_LIBS
+	help
+	  gstreamer-vaapi consists in a collection of VA-API based plugins for
+	  GStreamer and helper libraries.
+
+	  http://gstreamer.freedesktop.org/
+
+comment "gst1-vaapi needs a toolchain w/ threads, dynamic library"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
package/gstreamer1/gst1-vaapi/gst1-vaapi.hash new file +2 -0
new file mode 100644
index 0000000..21032ca
@@ -0,0 +1,2 @@
+# From https://gstreamer.freedesktop.org/src/gstreamer-vaapi/gstreamer-vaapi-1.10.2.tar.xz.sha256sum
+sha256 9e31d2b85b2f30caa6b0cc1c6be10b96e1376668f13faa6a0f577d3693547fa9  gstreamer-vaapi-1.10.2.tar.xz
package/gstreamer1/gst1-vaapi/gst1-vaapi.mk new file +14 -0
new file mode 100644
index 0000000..3dc4570
@@ -0,0 +1,14 @@
+################################################################################
+#
+# gst1-vaapi
+#
+################################################################################
+
+GST1_VAAPI_VERSION = 1.10.2
+GST1_VAAPI_SOURCE = gstreamer-vaapi-$(GST1_VAAPI_VERSION).tar.xz
+GST1_VAAPI_SITE = https://gstreamer.freedesktop.org/src/gstreamer-vaapi
+GST1_VAAPI_DEPENDENCIES = gstreamer1 gst1-plugins-base gst1-plugins-bad libva libdrm
+GST1_VAAPI_LICENSE = LGPLv2.1+
+GST1_VAAPI_LICENSE_FILES = COPYING.LIB
+
+$(eval $(autotools-package))
Signature · 1 line
2.7.4
#8 lore raw

PATCH v2 1/1 gst1-vaapi: new package

---
Changes v1 -> v2:
- fix incorrect references to libva and libdrm
- add dependency of threads and dynamic libraries
- fix license information

---
 package/gstreamer1/Config.in                  |  1 +
 package/gstreamer1/gst1-vaapi/Config.in       | 16 ++++++++++++++++
 package/gstreamer1/gst1-vaapi/gst1-vaapi.hash |  2 ++
 package/gstreamer1/gst1-vaapi/gst1-vaapi.mk   | 14 ++++++++++++++
 4 files changed, 33 insertions(+)
 create mode 100644 package/gstreamer1/gst1-vaapi/Config.in
 create mode 100644 package/gstreamer1/gst1-vaapi/gst1-vaapi.hash
 create mode 100644 package/gstreamer1/gst1-vaapi/gst1-vaapi.mk
package/gstreamer1/Config.in +1 -0
index 23862bd..0297851 100644
@@ -9,6 +9,7 @@ source "package/gstreamer1/gst1-plugins-ugly/Config.in"
 source "package/gstreamer1/gst1-imx/Config.in"
 source "package/gstreamer1/gst1-libav/Config.in"
 source "package/gstreamer1/gst1-rtsp-server/Config.in"
+source "package/gstreamer1/gst1-vaapi/Config.in"
 source "package/gstreamer1/gst1-validate/Config.in"
 source "package/gstreamer1/gst-omx/Config.in"
 endif
package/gstreamer1/gst1-vaapi/Config.in new file +16 -0
new file mode 100644
index 0000000..fe60f3c
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_GST1_VAAPI
+	bool "gst1-vaapi"
+	select BR2_PACKAGE_GST1_PLUGINS_BASE
+	select BR2_PACKAGE_GST1_PLUGINS_BAD
+	select BR2_PACKAGE_LIBVA
+	select BR2_PACKAGE_LIBDRM
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on !BR2_STATIC_LIBS
+	help
+	  gstreamer-vaapi consists in a collection of VA-API based plugins for
+	  GStreamer and helper libraries.
+
+	  http://gstreamer.freedesktop.org/
+
+comment "gst1-vaapi needs a toolchain w/ threads, dynamic library"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
package/gstreamer1/gst1-vaapi/gst1-vaapi.hash new file +2 -0
new file mode 100644
index 0000000..21032ca
@@ -0,0 +1,2 @@
+# From https://gstreamer.freedesktop.org/src/gstreamer-vaapi/gstreamer-vaapi-1.10.2.tar.xz.sha256sum
+sha256 9e31d2b85b2f30caa6b0cc1c6be10b96e1376668f13faa6a0f577d3693547fa9  gstreamer-vaapi-1.10.2.tar.xz
package/gstreamer1/gst1-vaapi/gst1-vaapi.mk new file +14 -0
new file mode 100644
index 0000000..3dc4570
@@ -0,0 +1,14 @@
+################################################################################
+#
+# gst1-vaapi
+#
+################################################################################
+
+GST1_VAAPI_VERSION = 1.10.2
+GST1_VAAPI_SOURCE = gstreamer-vaapi-$(GST1_VAAPI_VERSION).tar.xz
+GST1_VAAPI_SITE = https://gstreamer.freedesktop.org/src/gstreamer-vaapi
+GST1_VAAPI_DEPENDENCIES = gstreamer1 gst1-plugins-base gst1-plugins-bad libva libdrm
+GST1_VAAPI_LICENSE = LGPLv2.1+
+GST1_VAAPI_LICENSE_FILES = COPYING.LIB
+
+$(eval $(autotools-package))
Signature · 1 line
2.7.4
#9 lore raw

PATCH 1/1 gst1-vaapi: new package

In reply to Jesper Bækdahl

Hello,

Quoted 1 line · Jesper B?kdahl

I have applied a similar patch from Adam Duskett:

https://git.buildroot.org/buildroot/commit/?id=c1e4e8545dad4d587c6739d7f9942c5e21e7490d
https://git.buildroot.org/buildroot/commit/?id=d5c7f009875683a2c310478f846ddeb12d862d0c

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com